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

88 lines
3.0 KiB
HTML
Raw Normal View History

2018-09-19 13:05:07 +00:00
<vn-crud-model
vn-id="model"
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>
<vn-card class="vn-w-sm vn-px-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"
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-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"
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>
<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>