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"
|
2019-10-08 21:57:02 +00:00
|
|
|
save="post"
|
|
|
|
rule="Zone">
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-watcher>
|
2019-01-30 22:47:06 +00:00
|
|
|
<div class="content-block">
|
2019-06-20 11:50:58 +00:00
|
|
|
<form name="form" vn-http-submit="$ctrl.onSubmit()" compact>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-09-19 13:05:07 +00:00
|
|
|
<vn-horizontal>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
vn-focus
|
2018-09-19 13:05:07 +00:00
|
|
|
label="Name"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zone.name"
|
|
|
|
rule>
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$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"
|
2019-10-08 21:57:02 +00:00
|
|
|
label="Warehouse"
|
|
|
|
rule>
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-autocomplete>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$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"
|
2019-10-08 21:57:02 +00:00
|
|
|
label="Agency"
|
|
|
|
rule>
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
|
|
|
vn-two
|
2018-09-19 13:05:07 +00:00
|
|
|
label="Traveling days"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zone.travelingDays"
|
2019-10-08 21:57:02 +00:00
|
|
|
min="0"
|
|
|
|
step="1"
|
|
|
|
rule>
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-input-number>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-time
|
|
|
|
vn-two
|
2018-09-19 13:05:07 +00:00
|
|
|
label="Estimated hour (ETD)"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zone.hour"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-input-time>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
|
|
|
vn-one
|
2018-09-19 13:05:07 +00:00
|
|
|
label="Price"
|
2019-04-11 05:29:41 +00:00
|
|
|
model="$ctrl.zone.price"
|
2019-10-08 21:57:02 +00:00
|
|
|
min="0"
|
|
|
|
step="0.01"
|
|
|
|
rule>
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-input-number>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
|
|
|
vn-one
|
2018-09-19 13:05:07 +00:00
|
|
|
label="Bonus"
|
2019-04-11 05:29:41 +00:00
|
|
|
model="$ctrl.zone.bonus"
|
2019-10-08 21:57:02 +00:00
|
|
|
min="0"
|
|
|
|
step="0.01"
|
|
|
|
rule>
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-input-number>
|
|
|
|
</vn-horizontal>
|
2019-03-13 10:27:45 +00:00
|
|
|
<vn-horizontal>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-check ng-model="$ctrl.zone.isVolumetric" label="Volumetric"></vn-check>
|
2019-03-13 10:27:45 +00:00
|
|
|
</vn-horizontal>
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Create"></vn-submit>
|
|
|
|
<vn-button ui-sref="zone.index" label="Cancel"></vn-button>
|
|
|
|
</vn-button-bar>
|
2019-01-30 22:47:06 +00:00
|
|
|
</form>
|
|
|
|
</div>
|