salix/modules/agency/front/index/index.html

63 lines
2.3 KiB
HTML
Raw Normal View History

2018-09-19 13:05:07 +00:00
<vn-crud-model
vn-id="model"
2018-09-25 06:53:57 +00:00
url="/agency/api/Zones"
2018-09-19 13:05:07 +00:00
filter="::$ctrl.filter"
limit="20"
data="zones"
auto-load="false">
</vn-crud-model>
<div margin-medium>
<div class="vn-list">
<vn-card pad-medium-h>
<vn-searchbar
panel="vn-zone-search-panel"
model="model"
expr-builder="$ctrl.exprBuilder(param, value)"
vn-focus>
</vn-searchbar>
</vn-card>
</div>
<vn-card margin-medium-v pad-medium>
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th field="id" number>Id</vn-th>
<vn-th field="name">Name</vn-th>
<vn-th field="agencyModeFk">Agency</vn-th>
<vn-th field="warehouseFK">Warehouse</vn-th>
<vn-th field="hour">Hour</vn-th>
2018-09-25 07:28:55 +00:00
<vn-th field="price" number>Price</vn-th>
<vn-th></vn-th>
2018-09-19 13:05:07 +00:00
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="zone in zones" ui-sref="zone.card.location({id: zone.id})" class=clickable>
2018-09-19 13:05:07 +00:00
<vn-td number>{{::zone.id}}</vn-td>
<vn-td>{{::zone.name}}</vn-td>
<vn-td>{{::zone.agencyMode.name}}</vn-td>
<vn-td>{{::zone.warehouse.name}}</vn-td>
<vn-td>{{::zone.hour | date: 'HH:mm'}}</vn-td>
<vn-td number>{{::zone.price | currency:'€':2}}</vn-td>
2018-09-25 07:28:55 +00:00
<vn-td>
<vn-icon-button
2018-10-17 10:49:18 +00:00
ng-click="$ctrl.preview(zone)"
2018-09-25 07:28:55 +00:00
vn-tooltip="Preview"
icon="desktop_windows">
</vn-icon-button>
</vn-td>
2018-09-19 13:05:07 +00:00
</vn-tr>
</vn-tbody>
<vn-empty-rows ng-if="!model.data || model.data.length === 0" translate>
Enter a new search
2018-09-19 13:05:07 +00:00
</vn-empty-rows>
</vn-table>
</vn-card>
<vn-pagination
model="model"
scroll-selector="ui-view">
</vn-pagination>
</div>
<a ui-sref="zone.create" vn-tooltip="New zone" vn-bind="+" fixed-bottom-right>
2018-09-25 06:53:57 +00:00
<vn-float-button icon="add"></vn-float-button>
2018-09-19 13:05:07 +00:00
</a>