2019-11-10 10:08:44 +00:00
|
|
|
<vn-auto-search
|
2020-03-07 12:52:02 +00:00
|
|
|
model="model">
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-auto-search>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
|
|
|
class="vn-w-md vn-mb-xl">
|
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="id" number>Id</vn-th>
|
|
|
|
<vn-th field="name" expand>Name</vn-th>
|
|
|
|
<vn-th field="agencyModeFk">Agency</vn-th>
|
|
|
|
<vn-th field="hour" shrink>Closing</vn-th>
|
|
|
|
<vn-th field="price" number>Price</vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2020-11-12 15:03:23 +00:00
|
|
|
<a
|
2020-03-07 12:52:02 +00:00
|
|
|
ng-repeat="zone in model.data"
|
2019-11-15 06:35:51 +00:00
|
|
|
ui-sref="zone.card.summary({id: zone.id})"
|
2020-11-12 15:03:23 +00:00
|
|
|
class="clickable n-tr search-result">
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-td number>{{::zone.id}}</vn-td>
|
|
|
|
<vn-td expand>{{::zone.name}}</vn-td>
|
2020-04-20 11:49:33 +00:00
|
|
|
<vn-td expand>{{::zone.agencyMode.name}}</vn-td>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-td shrink>{{::zone.hour | date: 'HH:mm'}}</vn-td>
|
|
|
|
<vn-td number>{{::zone.price | currency: 'EUR':2}}</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-horizontal class="buttons">
|
|
|
|
<vn-icon-button
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="clone.show(zone)"
|
2019-11-10 10:08:44 +00:00
|
|
|
vn-tooltip="Clone"
|
|
|
|
icon="icon-clone"
|
|
|
|
vn-acl="deliveryBoss"
|
|
|
|
vn-acl-action="remove">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="$ctrl.preview(zone)"
|
2019-11-10 10:08:44 +00:00
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-td>
|
2020-11-12 15:03:23 +00:00
|
|
|
</a>
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-10-02 17:24:42 +00:00
|
|
|
</vn-card>
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-data-viewer>
|
2019-10-26 23:30:01 +00:00
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-zone-summary zone="$ctrl.selectedZone"></vn-zone-summary>
|
|
|
|
</vn-popup>
|
2019-03-14 14:07:24 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="clone"
|
2020-03-16 17:54:22 +00:00
|
|
|
on-accept="$ctrl.onCloneAccept($data)"
|
2019-03-14 14:07:24 +00:00
|
|
|
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>
|