document empty items mesaage
This commit is contained in:
parent
b10b5144aa
commit
61247dd5ae
1
public/css/custom.css
vendored
1
public/css/custom.css
vendored
@ -1438,6 +1438,7 @@ table .align-items-center td span.badge {
|
|||||||
.item-add-new .btn-link {
|
.item-add-new .btn-link {
|
||||||
color: #55588b;
|
color: #55588b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-columns-edit .btn-aka-link {
|
.item-columns-edit .btn-aka-link {
|
||||||
color: #8688ad;
|
color: #8688ad;
|
||||||
}
|
}
|
6
public/css/print.css
vendored
6
public/css/print.css
vendored
@ -482,3 +482,9 @@ th, td
|
|||||||
}
|
}
|
||||||
/*--Print Reports Finish--*/
|
/*--Print Reports Finish--*/
|
||||||
|
|
||||||
|
.lines .empty-items:hover,
|
||||||
|
.c-lines .empty-items:hover,
|
||||||
|
.m-lines .empty-items:hover {
|
||||||
|
background-color: #f6f9fc;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
@ -629,7 +629,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.aka-error {
|
.aka-error, .aka-error:hover {
|
||||||
border-color: #ef3232 !important;
|
border-color: #ef3232 !important;
|
||||||
background-color: #fb634038;
|
background-color: #fb634038;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
'edit_columns' => 'Edit Columns',
|
'edit_columns' => 'Edit Columns',
|
||||||
|
'empty_items' =>'You have not added any items.',
|
||||||
|
|
||||||
'statuses' => [
|
'statuses' => [
|
||||||
'draft' => 'Draft',
|
'draft' => 'Draft',
|
||||||
|
@ -200,20 +200,28 @@
|
|||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($document->items as $item)
|
@if ($document->items->count())
|
||||||
<x-documents.template.line-item
|
@foreach($document->items as $item)
|
||||||
type="{{ $type }}"
|
<x-documents.template.line-item
|
||||||
:item="$item"
|
type="{{ $type }}"
|
||||||
:document="$document"
|
:item="$item"
|
||||||
hide-items="{{ $hideItems }}"
|
:document="$document"
|
||||||
hide-name="{{ $hideName }}"
|
hide-items="{{ $hideItems }}"
|
||||||
hide-description="{{ $hideDescription }}"
|
hide-name="{{ $hideName }}"
|
||||||
hide-quantity="{{ $hideQuantity }}"
|
hide-description="{{ $hideDescription }}"
|
||||||
hide-price="{{ $hidePrice }}"
|
hide-quantity="{{ $hideQuantity }}"
|
||||||
hide-discount="{{ $hideDiscount }}"
|
hide-price="{{ $hidePrice }}"
|
||||||
hide-amount="{{ $hideAmount }}"
|
hide-discount="{{ $hideDiscount }}"
|
||||||
/>
|
hide-amount="{{ $hideAmount }}"
|
||||||
@endforeach
|
/>
|
||||||
|
@endforeach
|
||||||
|
@else
|
||||||
|
<tr>
|
||||||
|
<td colspan="5" class="text-center empty-items">
|
||||||
|
{{ trans('documents.empty_items') }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -184,20 +184,28 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($document->items as $item)
|
@if ($document->items->count())
|
||||||
<x-documents.template.line-item
|
@foreach($document->items as $item)
|
||||||
type="{{ $type }}"
|
<x-documents.template.line-item
|
||||||
:item="$item"
|
type="{{ $type }}"
|
||||||
:document="$document"
|
:item="$item"
|
||||||
hide-items="{{ $hideItems }}"
|
:document="$document"
|
||||||
hide-name="{{ $hideName }}"
|
hide-items="{{ $hideItems }}"
|
||||||
hide-description="{{ $hideDescription }}"
|
hide-name="{{ $hideName }}"
|
||||||
hide-quantity="{{ $hideQuantity }}"
|
hide-description="{{ $hideDescription }}"
|
||||||
hide-price="{{ $hidePrice }}"
|
hide-quantity="{{ $hideQuantity }}"
|
||||||
hide-discount="{{ $hideDiscount }}"
|
hide-price="{{ $hidePrice }}"
|
||||||
hide-amount="{{ $hideAmount }}"
|
hide-discount="{{ $hideDiscount }}"
|
||||||
/>
|
hide-amount="{{ $hideAmount }}"
|
||||||
@endforeach
|
/>
|
||||||
|
@endforeach
|
||||||
|
@else
|
||||||
|
<tr>
|
||||||
|
<td colspan="5" class="text-center empty-items">
|
||||||
|
{{ trans('documents.empty_items') }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -174,20 +174,28 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($document->items as $item)
|
@if ($document->items->count())
|
||||||
<x-documents.template.line-item
|
@foreach($document->items as $item)
|
||||||
type="{{ $type }}"
|
<x-documents.template.line-item
|
||||||
:item="$item"
|
type="{{ $type }}"
|
||||||
:document="$document"
|
:item="$item"
|
||||||
hide-items="{{ $hideItems }}"
|
:document="$document"
|
||||||
hide-name="{{ $hideName }}"
|
hide-items="{{ $hideItems }}"
|
||||||
hide-description="{{ $hideDescription }}"
|
hide-name="{{ $hideName }}"
|
||||||
hide-quantity="{{ $hideQuantity }}"
|
hide-description="{{ $hideDescription }}"
|
||||||
hide-price="{{ $hidePrice }}"
|
hide-quantity="{{ $hideQuantity }}"
|
||||||
hide-discount="{{ $hideDiscount }}"
|
hide-price="{{ $hidePrice }}"
|
||||||
hide-amount="{{ $hideAmount }}"
|
hide-discount="{{ $hideDiscount }}"
|
||||||
/>
|
hide-amount="{{ $hideAmount }}"
|
||||||
@endforeach
|
/>
|
||||||
|
@endforeach
|
||||||
|
@else
|
||||||
|
<tr>
|
||||||
|
<td colspan="5" class="text-center empty-items">
|
||||||
|
{{ trans('documents.empty_items') }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user