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"
|
2019-10-02 17:24:42 +00:00
|
|
|
auto-load="true">
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-crud-model>
|
2019-10-01 14:48:01 +00:00
|
|
|
<div>
|
2019-10-18 19:54:13 +00:00
|
|
|
<vn-card class="vn-w-sm vn-pa-md">
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-searchbar
|
|
|
|
panel="vn-zone-search-panel"
|
|
|
|
model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)"
|
|
|
|
info="Search zone by id or name"
|
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-card>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
2019-10-04 22:16:57 +00:00
|
|
|
class="vn-w-md vn-mt-md vn-mb-xl">
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-card>
|
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-10-18 23:18:25 +00:00
|
|
|
<vn-td shrink>{{::zone.hour | date: '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>
|
2019-10-02 17:24:42 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
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-10-18 19:36:30 +00:00
|
|
|
<vn-float-button
|
|
|
|
icon="add"
|
2019-06-07 07:09:29 +00:00
|
|
|
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>
|