salix/modules/travel/front/basic-data/index.html

93 lines
2.7 KiB
HTML
Raw Normal View History

2019-10-25 12:06:32 +00:00
<mg-ajax path="Travels/{{patch.params.id}}" options="vnPatch"></mg-ajax>
2019-10-25 11:26:38 +00:00
<vn-watcher
vn-id="watcher"
data="$ctrl.travel"
form="form"
save="patch">
</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>
2019-11-10 10:08:44 +00:00
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
2019-10-25 11:26:38 +00:00
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-textfield
vn-one
label="Reference"
2023-05-05 11:00:45 +00:00
ng-model="$ctrl.travel.ref"
vn-name="reference">
2019-10-25 11:26:38 +00:00
</vn-textfield>
<vn-autocomplete
vn-one
ng-model="$ctrl.travel.agencyModeFk"
2019-10-25 12:06:32 +00:00
url="AgencyModes"
2019-10-25 11:26:38 +00:00
show-field="name"
value-field="id"
2023-05-05 11:00:45 +00:00
label="Agency"
vn-name="agencyMode">
2019-10-25 11:26:38 +00:00
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-date-picker
vn-one
label="Shipped"
2023-05-05 11:00:45 +00:00
ng-model="$ctrl.travel.shipped"
vn-name="shipped">
2019-10-25 11:26:38 +00:00
</vn-date-picker>
<vn-date-picker
vn-one
label="Landed"
2023-05-05 11:00:45 +00:00
ng-model="$ctrl.travel.landed"
vn-name="landed">
2019-10-25 11:26:38 +00:00
</vn-date-picker>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
vn-one
ng-model="$ctrl.travel.warehouseOutFk"
2023-05-05 11:00:45 +00:00
vn-name="warehouseOut"
2020-09-17 18:12:52 +00:00
data="warehouses"
2019-10-25 11:26:38 +00:00
show-field="name"
value-field="id"
label="Warehouse Out">
</vn-autocomplete>
<vn-autocomplete
vn-one
ng-model="$ctrl.travel.warehouseInFk"
2023-05-05 11:00:45 +00:00
vn-name="warehouseIn"
2020-09-17 18:12:52 +00:00
data="warehouses"
2019-10-25 11:26:38 +00:00
show-field="name"
value-field="id"
label="Warehouse In">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-check
vn-one
label="Delivered"
ng-model="$ctrl.travel.isDelivered">
</vn-check>
<vn-check
vn-one
label="Received"
ng-model="$ctrl.travel.isReceived">
</vn-check>
</vn-horizontal>
</vn-card>
<vn-button-bar>
2020-12-15 16:05:15 +00:00
<vn-submit
disabled="!watcher.dataChanged()"
label="Save">
</vn-submit>
<vn-button
class="cancel"
label="Undo changes"
disabled="!watcher.dataChanged()"
ng-click="watcher.loadOriginalData()">
</vn-button>
2019-10-25 11:26:38 +00:00
</vn-button-bar>
</form>