115 lines
3.3 KiB
HTML
115 lines
3.3 KiB
HTML
<mg-ajax path="Zones/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
|
<vn-watcher
|
|
vn-id="watcher"
|
|
data="$ctrl.zone"
|
|
form="form"
|
|
save="patch">
|
|
</vn-watcher>
|
|
<form
|
|
name="form"
|
|
ng-submit="$ctrl.onSubmit()"
|
|
class="vn-w-md">
|
|
<vn-card class="vn-pa-lg">
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
label="Name"
|
|
ng-model="$ctrl.zone.name"
|
|
vn-acl="deliveryAssist"
|
|
rule>
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-autocomplete
|
|
vn-one
|
|
ng-model="$ctrl.zone.agencyModeFk"
|
|
url="AgencyModes"
|
|
show-field="name"
|
|
value-field="id"
|
|
label="Agency"
|
|
vn-acl="deliveryAssist"
|
|
rule>
|
|
</vn-autocomplete>
|
|
<vn-input-number
|
|
vn-one
|
|
label="Max m³"
|
|
ng-model="$ctrl.zone.itemMaxSize"
|
|
min="0"
|
|
vn-acl="deliveryAssist"
|
|
rule>
|
|
</vn-input-number>
|
|
<vn-input-number
|
|
vn-one
|
|
label="Maximum m³"
|
|
ng-model="$ctrl.zone.m3Max"
|
|
min="0"
|
|
vn-acl="deliveryAssist"
|
|
rule>
|
|
</vn-input-number>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-input-number
|
|
label="Traveling days"
|
|
ng-model="$ctrl.zone.travelingDays"
|
|
min="0"
|
|
step="1"
|
|
vn-acl="deliveryAssist"
|
|
rule>
|
|
</vn-input-number>
|
|
<vn-input-time
|
|
label="Closing"
|
|
ng-model="$ctrl.zone.hour"
|
|
vn-acl="deliveryAssist"
|
|
rule>
|
|
</vn-input-time>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-input-number
|
|
label="Price"
|
|
ng-model="$ctrl.zone.price"
|
|
min="0"
|
|
step="0.01"
|
|
vn-acl="deliveryAssist"
|
|
rule>
|
|
</vn-input-number>
|
|
<vn-input-number
|
|
label="Bonus"
|
|
ng-model="$ctrl.zone.bonus"
|
|
step="0.01"
|
|
vn-acl="deliveryAssist"
|
|
rule>
|
|
</vn-input-number>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-input-number
|
|
vn-one
|
|
label="Inflation"
|
|
ng-model="$ctrl.zone.inflation"
|
|
min="0"
|
|
step="0.01"
|
|
vn-acl="deliveryAssist"
|
|
rule>
|
|
</vn-input-number>
|
|
<vn-check
|
|
vn-one
|
|
label="Volumetric"
|
|
ng-model="$ctrl.zone.isVolumetric"
|
|
vn-acl="deliveryAssist"
|
|
rule>
|
|
</vn-check>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit
|
|
disabled="!watcher.dataChanged()"
|
|
vn-acl="deliveryAssist"
|
|
label="Save">
|
|
</vn-submit>
|
|
<vn-button
|
|
class="cancel"
|
|
label="Undo changes"
|
|
disabled="!watcher.dataChanged()"
|
|
ng-click="watcher.loadOriginalData()">
|
|
</vn-button>
|
|
</vn-button-bar>
|
|
</form>
|