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

83 lines
3.1 KiB
HTML
Raw Normal View History

2020-01-10 10:52:35 +00:00
<vn-auto-search
2020-03-13 19:33:12 +00:00
model="model">
2020-01-10 10:52:35 +00:00
</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-21 11:48:34 +00:00
<vn-th shrink></vn-th>
2020-01-10 10:52:35 +00:00
<vn-th field="id" number>Id</vn-th>
<vn-th field="landed" center expand>Landed</vn-th>
2020-01-10 10:52:35 +00:00
<vn-th>Reference</vn-th>
<vn-th field="supplierFk">Supplier</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>
2021-01-19 11:50:11 +00:00
<vn-th shrink></vn-th>
2020-01-10 10:52:35 +00:00
</vn-tr>
</vn-thead>
<vn-tbody>
2020-03-13 19:33:12 +00:00
<a ng-repeat="entry in model.data"
2020-01-10 10:52:35 +00:00
class="clickable vn-tr search-result"
ui-sref="entry.card.summary({id: {{::entry.id}}})">
2020-02-21 11:48:34 +00:00
<vn-td shrink>
2020-02-18 09:33:17 +00:00
<vn-icon
ng-show="entry.isInventory"
class="bright"
vn-tooltip="Inventory entry"
2020-03-11 07:02:58 +00:00
icon="icon-inventory">
2020-02-18 09:33:17 +00:00
</vn-icon>
<vn-icon
ng-show="entry.isRaid"
class="bright"
vn-tooltip="Virtual entry"
2020-02-21 11:48:34 +00:00
icon="icon-net">
2020-02-18 09:33:17 +00:00
</vn-icon>
</vn-td>
2020-01-10 10:52:35 +00:00
<vn-td number>{{::entry.id}}</vn-td>
<vn-td center expand>
2020-02-18 09:33:17 +00:00
<span
class="link"
vn-click-stop="travelDescriptor.show($event, entry.travelFk)">
2020-02-18 09:33:17 +00:00
{{::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>
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>
2021-01-19 11:50:11 +00:00
<vn-horizontal class="buttons">
<vn-icon-button
vn-click-stop="$ctrl.preview(entry)"
vn-tooltip="Preview"
icon="preview">
</vn-icon-button>
</vn-horizontal>
2020-01-10 10:52:35 +00:00
</a>
</vn-tbody>
</vn-table>
</vn-card>
</vn-data-viewer>
2020-02-18 09:33:17 +00:00
<vn-travel-descriptor-popover
vn-id="travelDescriptor">
2020-09-02 12:08:56 +00:00
</vn-travel-descriptor-popover>
2021-01-19 11:50:11 +00:00
<vn-popup vn-id="summary">
<vn-entry-summary
entry="$ctrl.entrySelected">
</vn-entry-summary>
</vn-popup>
2020-09-02 12:08:56 +00:00
<div fixed-bottom-right>
<vn-vertical style="align-items: center;">
<a ui-sref="entry.create" vn-bind="+">
<vn-button class="round md vn-mb-sm"
icon="add"
vn-tooltip="New entry"
tooltip-position="left">
</vn-button>
</a>
</vn-vertical>
</div>