salix/modules/zone/front/create/index.html

94 lines
2.5 KiB
HTML
Raw Normal View History

2018-09-19 13:05:07 +00:00
<vn-watcher
vn-id="watcher"
url="Zones"
2018-09-19 13:05:07 +00:00
data="$ctrl.zone"
insert-mode="true"
form="form">
2018-09-19 13:05:07 +00:00
</vn-watcher>
2020-09-17 18:12:52 +00:00
<vn-crud-model
auto-load="true"
url="Warehouses"
data="warehouses"
order="name">
</vn-crud-model>
<vn-crud-model
auto-load="true"
url="AgencyModes/isActive"
data="activeAgencyModes"
order="name">
</vn-crud-model>
2019-11-10 10:08:44 +00:00
<form
name="form"
vn-http-submit="$ctrl.onSubmit()"
class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-textfield
label="Name"
ng-model="$ctrl.zone.name"
rule
vn-focus>
2019-11-10 10:08:44 +00:00
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
label="Warehouse"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.zone.warehouseFk"
2020-09-17 18:12:52 +00:00
data="warehouses"
2019-11-10 10:08:44 +00:00
show-field="name"
value-field="id"
label="Warehouse"
rule>
</vn-autocomplete>
<vn-autocomplete
label="Agency"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.zone.agencyModeFk"
2020-09-17 18:12:52 +00:00
data="activeAgencyModes"
2019-11-10 10:08:44 +00:00
show-field="name"
value-field="id"
label="Agency"
rule>
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-input-number
label="Traveling days"
ng-model="$ctrl.zone.travelingDays"
min="0"
step="1"
rule>
</vn-input-number>
<vn-input-time
label="Closing hour"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.zone.hour"
rule>
</vn-input-time>
</vn-horizontal>
<vn-horizontal>
<vn-input-number
label="Price"
ng-model="$ctrl.zone.price"
min="0"
step="0.01"
rule>
</vn-input-number>
<vn-input-number
label="Bonus"
ng-model="$ctrl.zone.bonus"
min="0"
step="0.01"
rule>
</vn-input-number>
</vn-horizontal>
<vn-horizontal>
<vn-check ng-model="$ctrl.zone.isVolumetric" label="Volumetric"></vn-check>
</vn-horizontal>
</vn-card>
<vn-submit
icon="check"
vn-tooltip="Create"
class="round"
fixed-bottom-right>
</vn-submit>
</form>