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

49 lines
1.5 KiB
HTML
Raw Normal View History

2019-12-09 11:15:19 +00:00
<vn-watcher
vn-id="watcher"
url="Travels"
2019-12-09 11:15:19 +00:00
data="$ctrl.travel"
insert-mode="true"
form="form">
2019-12-09 11:15:19 +00:00
</vn-watcher>
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-textfield
label="Reference"
ng-model="$ctrl.travel.ref">
</vn-textfield>
<vn-autocomplete
label="Agency"
2019-12-09 11:15:19 +00:00
ng-model="$ctrl.travel.agencyModeFk"
url="AgencyModes">
2019-12-09 11:15:19 +00:00
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-date-picker
label="Shipped"
ng-model="$ctrl.travel.shipped">
</vn-date-picker>
<vn-date-picker
label="Landed"
ng-model="$ctrl.travel.landed">
</vn-date-picker>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
label="Warehouse Out"
2019-12-09 11:15:19 +00:00
ng-model="$ctrl.travel.warehouseOutFk"
url="Warehouses">
2019-12-09 11:15:19 +00:00
</vn-autocomplete>
<vn-autocomplete
label="Warehouse In"
2019-12-09 11:15:19 +00:00
ng-model="$ctrl.travel.warehouseInFk"
url="Warehouses">
2019-12-09 11:15:19 +00:00
</vn-autocomplete>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
<vn-button label="Undo changes" ng-if="watcher.dataChanged()" ng-click="watcher.loadOriginalData()"></vn-button>
</vn-button-bar>
</form>