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>
|
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Reference"
|
|
|
|
ng-model="$ctrl.travel.ref">
|
|
|
|
</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"
|
|
|
|
label="Agency">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="Shipped"
|
|
|
|
ng-model="$ctrl.travel.shipped">
|
|
|
|
</vn-date-picker>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="Landed"
|
|
|
|
ng-model="$ctrl.travel.landed">
|
|
|
|
</vn-date-picker>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
ng-model="$ctrl.travel.warehouseOutFk"
|
2019-10-25 12:06:32 +00:00
|
|
|
url="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"
|
2019-10-25 12:06:32 +00:00
|
|
|
url="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>
|
|
|
|
<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>
|