2019-10-24 22:53:53 +00:00
|
|
|
<mg-ajax path="Zones/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
2019-01-21 10:45:53 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.zone"
|
|
|
|
form="form"
|
|
|
|
save="patch">
|
|
|
|
</vn-watcher>
|
2019-10-02 17:24:42 +00:00
|
|
|
<form
|
|
|
|
name="form"
|
|
|
|
ng-submit="$ctrl.onSubmit()"
|
2019-10-11 15:38:04 +00:00
|
|
|
class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2019-01-21 10:45:53 +00:00
|
|
|
<vn-horizontal>
|
2019-09-25 18:06:42 +00:00
|
|
|
<vn-textfield
|
2023-06-12 12:58:28 +00:00
|
|
|
label="Name"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zone.name"
|
2023-06-12 12:58:28 +00:00
|
|
|
vn-acl="deliveryAssist"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zone.agencyModeFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="AgencyModes"
|
2019-01-21 10:45:53 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2019-06-07 07:09:29 +00:00
|
|
|
label="Agency"
|
2023-06-12 12:58:28 +00:00
|
|
|
vn-acl="deliveryAssist"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-autocomplete>
|
2020-01-27 08:45:13 +00:00
|
|
|
<vn-input-number
|
2023-03-08 12:12:21 +00:00
|
|
|
vn-one
|
2023-03-09 13:24:00 +00:00
|
|
|
label="Max m³"
|
2023-03-08 12:12:21 +00:00
|
|
|
ng-model="$ctrl.zone.itemMaxSize"
|
|
|
|
min="0"
|
2023-06-12 12:58:28 +00:00
|
|
|
vn-acl="deliveryAssist"
|
2023-03-08 12:12:21 +00:00
|
|
|
rule>
|
2023-03-08 08:19:57 +00:00
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number
|
2023-03-08 12:12:21 +00:00
|
|
|
vn-one
|
|
|
|
label="Maximum m³"
|
|
|
|
ng-model="$ctrl.zone.m3Max"
|
|
|
|
min="0"
|
2023-06-12 12:58:28 +00:00
|
|
|
vn-acl="deliveryAssist"
|
2023-03-08 12:12:21 +00:00
|
|
|
rule>
|
2023-03-08 08:19:57 +00:00
|
|
|
</vn-input-number>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-09-25 18:06:42 +00:00
|
|
|
<vn-input-number
|
2019-01-21 10:45:53 +00:00
|
|
|
label="Traveling days"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zone.travelingDays"
|
2019-09-25 18:06:42 +00:00
|
|
|
min="0"
|
|
|
|
step="1"
|
2023-06-12 12:58:28 +00:00
|
|
|
vn-acl="deliveryAssist"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-input-number>
|
2019-09-25 18:06:42 +00:00
|
|
|
<vn-input-time
|
|
|
|
label="Closing"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zone.hour"
|
2023-06-12 12:58:28 +00:00
|
|
|
vn-acl="deliveryAssist"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-input-time>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-09-25 18:06:42 +00:00
|
|
|
<vn-input-number
|
2019-01-21 10:45:53 +00:00
|
|
|
label="Price"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zone.price"
|
2019-09-25 18:06:42 +00:00
|
|
|
min="0"
|
|
|
|
step="0.01"
|
2023-06-12 12:58:28 +00:00
|
|
|
vn-acl="deliveryAssist"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-input-number>
|
2019-09-25 18:06:42 +00:00
|
|
|
<vn-input-number
|
2019-01-21 10:45:53 +00:00
|
|
|
label="Bonus"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zone.bonus"
|
2019-09-25 18:06:42 +00:00
|
|
|
step="0.01"
|
2023-06-12 12:58:28 +00:00
|
|
|
vn-acl="deliveryAssist"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2023-06-12 12:58:28 +00:00
|
|
|
</vn-input-number>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-horizontal>
|
2019-03-13 10:27:45 +00:00
|
|
|
<vn-horizontal>
|
2019-09-25 18:11:14 +00:00
|
|
|
<vn-input-number
|
2019-09-25 18:14:43 +00:00
|
|
|
vn-one
|
2019-09-02 09:25:31 +00:00
|
|
|
label="Inflation"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zone.inflation"
|
2019-09-25 18:11:14 +00:00
|
|
|
min="0"
|
|
|
|
step="0.01"
|
2023-06-12 12:58:28 +00:00
|
|
|
vn-acl="deliveryAssist"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-09-02 09:25:31 +00:00
|
|
|
</vn-input-number>
|
2019-09-25 18:06:42 +00:00
|
|
|
<vn-check
|
2019-09-25 18:14:43 +00:00
|
|
|
vn-one
|
2019-09-25 18:06:42 +00:00
|
|
|
label="Volumetric"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zone.isVolumetric"
|
2023-06-12 12:58:28 +00:00
|
|
|
vn-acl="deliveryAssist"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-06-07 07:09:29 +00:00
|
|
|
</vn-check>
|
2019-03-13 10:27:45 +00:00
|
|
|
</vn-horizontal>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2020-12-16 10:22:13 +00:00
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
2023-06-12 12:58:28 +00:00
|
|
|
vn-acl="deliveryAssist"
|
2020-12-16 10:22:13 +00:00
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-button
|
2020-12-16 10:22:13 +00:00
|
|
|
class="cancel"
|
2019-10-02 17:24:42 +00:00
|
|
|
label="Undo changes"
|
2020-12-16 10:22:13 +00:00
|
|
|
disabled="!watcher.dataChanged()"
|
2019-10-02 17:24:42 +00:00
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|