50 lines
2.5 KiB
HTML
50 lines
2.5 KiB
HTML
|
<vn-vertical>
|
||
|
<vn-card pad-large>
|
||
|
<vn-vertical>
|
||
|
<vn-title>Item diary</vn-title>
|
||
|
<vn-horizontal>
|
||
|
<vn-autocomplete
|
||
|
vn-focus
|
||
|
url="/item/api/Warehouses"
|
||
|
show-field="name"
|
||
|
value-field="id"
|
||
|
initial-data="$ctrl.warehouseFk"
|
||
|
field="$ctrl.warehouseFk"
|
||
|
label="Select warehouse">
|
||
|
</vn-autocomplete>
|
||
|
</vn-horizontal>
|
||
|
<table class="vn-grid">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th number translate>Date</th>
|
||
|
<th number translate>State</th>
|
||
|
<th number translate>Origin</th>
|
||
|
<th number translate>Reference</th>
|
||
|
<th style="text-align: center" translate>Name</th>
|
||
|
<th number translate>In</th>
|
||
|
<th number translate>Out</th>
|
||
|
<th number translate>Balance</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr ng-repeat="diary in $ctrl.diary">
|
||
|
<td number>{{diary.date | date:'dd/MM/yyyy HH:mm' }}</td>
|
||
|
<td number>{{diary.alertLevel | dashIfEmpty}}</td>
|
||
|
<td number>{{diary.origin | dashIfEmpty}}</td>
|
||
|
<td number>{{diary.reference | dashIfEmpty}}</td>
|
||
|
<td style="text-align: center">{{diary.name | dashIfEmpty}}</td>
|
||
|
<td number>{{diary.in | dashIfEmpty}}</td>
|
||
|
<td number>{{diary.out | dashIfEmpty}}</td>
|
||
|
<td number>{{diary.balance | dashIfEmpty}}</td>
|
||
|
</tr>
|
||
|
<tr ng-if="$ctrl.diary.length === 0" class="list list-element">
|
||
|
<td colspan="8" style="text-align: center" translate>No results</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</vn-vertical>
|
||
|
</vn-card>
|
||
|
<vn-paging margin-large-top vn-one index="$ctrl.diary" total="$ctrl.diary.count"></vn-paging>
|
||
|
<!-- <vn-auto-paging margin-large-top vn-one index="index" total="index.model.count" items="$ctrl.instances"></vn-auto-paging> -->
|
||
|
</vn-vertical>
|