salix/modules/entry/front/index/index.html

86 lines
3.2 KiB
HTML
Raw Normal View History

2020-01-10 10:52:35 +00:00
<vn-crud-model
vn-id="model"
url="Entries/filter"
limit="20"
params="::$ctrl.params"
data="entries"
auto-load="true">
</vn-crud-model>
<vn-auto-search
on-search="$ctrl.onSearch($params)">
</vn-auto-search>
<vn-data-viewer
model="model"
class="vn-mb-xl vn-w-xl">
<vn-card>
<vn-table model="model">
<vn-thead>
<vn-tr>
2020-02-18 09:33:17 +00:00
<vn-th></vn-th>
2020-01-10 10:52:35 +00:00
<vn-th field="id" number>Id</vn-th>
2020-02-18 09:33:17 +00:00
<vn-th field="landed" center>Landed</vn-th>
2020-01-10 10:52:35 +00:00
<vn-th>Reference</vn-th>
<vn-th field="supplierFk">Supplier</vn-th>
<vn-th field="currencyFk" center>Currency</vn-th>
<vn-th field="companyFk" center>Company</vn-th>
2020-02-18 09:33:17 +00:00
<vn-th field="isBooked" center>Booked</vn-th>
<vn-th field="isConfirmed" center>Confirmed</vn-th>
<vn-th field="isOrdered" center>Ordered</vn-th>
<vn-th>Notes</vn-th>
2020-01-10 10:52:35 +00:00
</vn-tr>
</vn-thead>
<vn-tbody>
<a ng-repeat="entry in entries"
class="clickable vn-tr search-result"
ui-sref="entry.card.summary({id: {{::entry.id}}})">
2020-02-18 09:33:17 +00:00
<vn-td>
<vn-icon
ng-show="entry.isInventory"
class="bright"
vn-tooltip="Inventory entry"
icon="icon-unavailable">
</vn-icon>
<vn-icon
ng-show="entry.isRaid"
class="bright"
vn-tooltip="Virtual entry"
icon="icon-100">
</vn-icon>
</vn-td>
2020-01-10 10:52:35 +00:00
<vn-td number>{{::entry.id}}</vn-td>
2020-02-18 09:33:17 +00:00
<vn-td center>
<span
class="link"
ng-click="$ctrl.showTravelDescriptor($event, entry.travelFk)">
{{::entry.landed | date:'dd/MM/yyyy'}}
</span>
</vn-td>
2020-01-10 10:52:35 +00:00
<vn-td expand>{{::entry.ref}}</vn-td>
<vn-td expand>{{::entry.supplierName}}</vn-td>
<vn-td center expand>{{::entry.currencyCode}}</vn-td>
<vn-td center expand>{{::entry.companyCode}}</vn-td>
2020-02-18 09:33:17 +00:00
<vn-td center><vn-check ng-model="entry.isBooked" disabled="true"></vn-check></vn-td>
<vn-td center><vn-check ng-model="entry.isConfirmed" disabled="true"></vn-check></vn-td>
<vn-td center><vn-check ng-model="entry.isOrdered" disabled="true"></vn-check></vn-td>
<vn-td shrink>
<vn-icon
ng-if="entry.notes.length"
vn-tooltip="{{::entry.notes}}"
icon="insert_drive_file">
</vn-icon>
</vn-td>
2020-01-10 10:52:35 +00:00
</a>
</vn-tbody>
</vn-table>
</vn-data-viewer>
</vn-card>
2020-02-18 09:33:17 +00:00
<vn-travel-descriptor-popover
vn-id="travelDescriptor"
2020-02-18 10:07:55 +00:00
travel-id="$ctrl.selectedTravel">
2020-02-18 09:33:17 +00:00
</vn-travel-descriptor-popover>
2020-01-10 10:52:35 +00:00
<vn-popup vn-id="summary">
<vn-entry-summary
entry="$ctrl.entrySelected">
</vn-entry-summary>
</vn-popup>
<vn-scroll-up></vn-scroll-up>