82 lines
2.7 KiB
HTML
82 lines
2.7 KiB
HTML
<mg-ajax path="/agency/api/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()" compact>
|
|
<vn-card pad-large>
|
|
<vn-horizontal>
|
|
<vn-textfield vn-two vn-focus
|
|
label="Name"
|
|
field="$ctrl.zone.name"
|
|
vn-acl="deliveryBoss">
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-autocomplete
|
|
vn-one
|
|
field="$ctrl.zone.warehouseFk"
|
|
url="/agency/api/Warehouses"
|
|
show-field="name"
|
|
value-field="id"
|
|
label="Warehouse"
|
|
vn-acl="deliveryBoss">
|
|
</vn-autocomplete>
|
|
<vn-autocomplete
|
|
vn-one
|
|
field="$ctrl.zone.agencyModeFk"
|
|
url="/agency/api/AgencyModes"
|
|
show-field="name"
|
|
value-field="id"
|
|
label="Agency"
|
|
vn-acl="deliveryBoss">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-input-number vn-two
|
|
label="Traveling days"
|
|
model="$ctrl.zone.travelingDays"
|
|
min="0" step="1"
|
|
vn-acl="deliveryBoss">
|
|
</vn-input-number>
|
|
<vn-input-time vn-two
|
|
label="Estimated hour (ETD)"
|
|
model="$ctrl.zone.hour"
|
|
vn-acl="deliveryBoss">
|
|
</vn-input-time>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-input-number vn-one
|
|
label="Price"
|
|
model="$ctrl.zone.price"
|
|
min="0" step="0.01"
|
|
vn-acl="deliveryBoss">
|
|
</vn-input-number>
|
|
<vn-input-number vn-one
|
|
label="Bonus"
|
|
model="$ctrl.zone.bonus"
|
|
min="0" step="0.01"
|
|
vn-acl="deliveryBoss">
|
|
</vn-input-number>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-input-number vn-one
|
|
label="Inflation"
|
|
model="$ctrl.zone.inflation"
|
|
min="0" step="0.01"
|
|
vn-acl="deliveryBoss">
|
|
</vn-input-number>
|
|
<vn-check label="Volumetric" vn-one
|
|
field="$ctrl.zone.isVolumetric"
|
|
vn-acl="deliveryBoss">
|
|
</vn-check>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit label="Save" vn-acl="deliveryBoss"></vn-submit>
|
|
<vn-button label="Undo changes" ng-if="watcher.dataChanged()" ng-click="watcher.loadOriginalData()"></vn-button>
|
|
</vn-button-bar>
|
|
</form>
|