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

78 lines
3.0 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>
2019-01-30 22:47:06 +00:00
<div class="content-block">
2018-09-19 13:05:07 +00:00
<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>
2019-02-10 21:52:35 +00:00
<vn-card margin-medium-v>
2018-09-19 13:05:07 +00:00
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th field="id" number>Id</vn-th>
2019-03-14 14:07:24 +00:00
<vn-th field="name" expand>Name</vn-th>
2018-09-19 13:05:07 +00:00
<vn-th field="agencyModeFk">Agency</vn-th>
<vn-th field="warehouseFK">Warehouse</vn-th>
2019-03-14 14:07:24 +00:00
<vn-th field="hour" shrink vn-tooltip="ETD">Hour</vn-th>
<vn-th field="price" number shrink>Price</vn-th>
<vn-th shrink></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 searchResult">
2018-09-19 13:05:07 +00:00
<vn-td number>{{::zone.id}}</vn-td>
2019-03-14 14:07:24 +00:00
<vn-td expand>{{::zone.name}}</vn-td>
2018-09-19 13:05:07 +00:00
<vn-td>{{::zone.agencyMode.name}}</vn-td>
<vn-td>{{::zone.warehouse.name}}</vn-td>
2019-03-14 14:07:24 +00:00
<vn-td shrink>{{::zone.hour | dateTime: 'HH:mm'}}</vn-td>
<vn-td number shrink>{{::zone.price | currency: 'EUR':2}}</vn-td>
<vn-td shrink>
<vn-horizontal class="buttons">
<vn-icon-button
ng-click="$ctrl.clone($event, zone)"
vn-tooltip="Clone"
icon="icon-clone">
</vn-icon-button>
<vn-icon-button
ng-click="$ctrl.preview($event, zone)"
vn-tooltip="Preview"
icon="desktop_windows">
</vn-icon-button>
</vn-horizontal>
2018-09-25 07:28:55 +00:00
</vn-td>
2018-09-19 13:05:07 +00:00
</vn-tr>
</vn-tbody>
</vn-table>
</vn-card>
2019-01-20 17:48:03 +00:00
<vn-pagination model="model"></vn-pagination>
2018-09-19 13:05:07 +00:00
</div>
2019-01-21 10:45:53 +00:00
<vn-dialog
vn-id="summary"
class="dialog-summary">
<tpl-body>
2019-03-14 14:07:24 +00:00
<vn-zone-summary zone="$ctrl.selectedZone"></vn-zone-summary>
2019-01-21 10:45:53 +00:00
</tpl-body>
</vn-dialog>
2019-03-14 14:07:24 +00:00
<!-- Clone confirmation -->
<vn-confirm
vn-id="clone"
on-response="$ctrl.onCloneAccept(response)"
question="Do you want to clone this zone?"
message="All it's properties will be copied">
</vn-confirm>
<!-- End clone confirmation -->
2018-09-19 13:05:07 +00:00
<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>