2018-09-25 06:53:57 +00:00
|
|
|
<mg-ajax path="/agency/api/Zones" options="vnPost"></mg-ajax>
|
2018-09-19 13:05:07 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.zone"
|
2018-09-24 12:51:27 +00:00
|
|
|
form="form"
|
|
|
|
save="post">
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-watcher>
|
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" margin-medium>
|
|
|
|
<div style="max-width: 50em; margin: 0 auto;">
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-title>New zone</vn-title>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield vn-two vn-focus
|
|
|
|
label="Name"
|
|
|
|
field="$ctrl.zone.name">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
field="$ctrl.zone.warehouseFk"
|
2018-09-25 06:53:57 +00:00
|
|
|
url="/agency/api/Warehouses"
|
2018-09-19 13:05:07 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Warehouse">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
field="$ctrl.zone.agencyModeFk"
|
2019-01-07 15:28:18 +00:00
|
|
|
url="/agency/api/AgencyModes/isActive"
|
2018-09-19 13:05:07 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Agency">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-number
|
|
|
|
vn-two
|
|
|
|
min="0"
|
|
|
|
value="$ctrl.zone.travelingDays"
|
|
|
|
step="1"
|
|
|
|
label="Traveling days"
|
|
|
|
field="$ctrl.zone.travelingDays">
|
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-time
|
|
|
|
vn-two
|
|
|
|
label="Estimated hour (ETD)"
|
|
|
|
field="$ctrl.zone.hour">
|
|
|
|
</vn-input-time>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-number vn-one
|
|
|
|
label="Price"
|
|
|
|
field="$ctrl.zone.price"
|
|
|
|
min="0.00"
|
|
|
|
step="0.50">
|
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number vn-one
|
|
|
|
label="Bonus"
|
|
|
|
field="$ctrl.zone.bonus"
|
|
|
|
min="0.00"
|
|
|
|
step="0.50">
|
|
|
|
</vn-input-number>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Create"></vn-submit>
|
|
|
|
<vn-button ui-sref="zone.index" label="Cancel"></vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</div>
|
|
|
|
</form>
|