2018-09-19 13:05:07 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-05-20 13:04:33 +00:00
|
|
|
url="/api/Zones"
|
2018-09-19 13:05:07 +00:00
|
|
|
filter="::$ctrl.filter"
|
|
|
|
limit="20"
|
|
|
|
data="zones"
|
|
|
|
auto-load="false">
|
|
|
|
</vn-crud-model>
|
2019-10-01 14:48:01 +00:00
|
|
|
<div>
|
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)"
|
2019-04-12 12:33:08 +00:00
|
|
|
info="Search zone by id or name"
|
2018-09-19 13:05:07 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-card>
|
|
|
|
</div>
|
2019-09-25 18:06:42 +00:00
|
|
|
<vn-card margin-medium-v margin-huge-bottom compact>
|
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>
|
2019-09-25 18:06:42 +00:00
|
|
|
<vn-th field="hour" shrink>Closing</vn-th>
|
|
|
|
<vn-th field="price" number>Price</vn-th>
|
2019-03-14 14:07:24 +00:00
|
|
|
<vn-th shrink></vn-th>
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2019-09-25 18:06:42 +00:00
|
|
|
<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>
|
2019-03-14 14:07:24 +00:00
|
|
|
<vn-td shrink>{{::zone.hour | dateTime: 'HH:mm'}}</vn-td>
|
2019-09-25 18:06:42 +00:00
|
|
|
<vn-td number>{{::zone.price | currency: 'EUR':2}}</vn-td>
|
2019-03-14 14:07:24 +00:00
|
|
|
<vn-td shrink>
|
|
|
|
<vn-horizontal class="buttons">
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.clone($event, zone)"
|
|
|
|
vn-tooltip="Clone"
|
2019-06-07 07:09:29 +00:00
|
|
|
icon="icon-clone"
|
|
|
|
vn-acl="deliveryBoss"
|
|
|
|
vn-acl-action="remove">
|
2019-03-14 14:07:24 +00:00
|
|
|
</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
|
|
|
<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>
|
2019-09-25 18:06:42 +00:00
|
|
|
<a ui-sref="zone.create"
|
|
|
|
vn-tooltip="New zone"
|
|
|
|
vn-bind="+"
|
|
|
|
fixed-bottom-right>
|
2019-06-07 07:09:29 +00:00
|
|
|
<vn-float-button icon="add"
|
|
|
|
vn-acl="deliveryBoss"
|
|
|
|
vn-acl-action="remove">
|
|
|
|
</vn-float-button>
|
2019-09-05 11:06:40 +00:00
|
|
|
</a>
|
|
|
|
<vn-scroll-up></vn-scroll-up>
|