2019-03-23 15:16:47 +00:00
|
|
|
<mg-ajax path="/api/Routes/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.route"
|
|
|
|
form="form"
|
|
|
|
save="patch">
|
|
|
|
</vn-watcher>
|
2019-09-30 06:26:51 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2019-03-23 15:16:47 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.workerFk"
|
2019-03-23 15:16:47 +00:00
|
|
|
url="/api/Clients/activeWorkersWithRole"
|
|
|
|
show-field="nickname"
|
|
|
|
search-function="{firstName: $search}"
|
|
|
|
value-field="id"
|
|
|
|
where="{role: 'employee'}"
|
|
|
|
label="Worker">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.vehicleFk"
|
2019-03-23 15:16:47 +00:00
|
|
|
url="/api/Vehicles"
|
|
|
|
show-field="numberPlate"
|
|
|
|
value-field="id"
|
|
|
|
label="Vehicle">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="Created"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.created">
|
2019-03-23 15:16:47 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.agencyModeFk"
|
2019-03-23 15:16:47 +00:00
|
|
|
url="/api/AgencyModes"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Agency">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-04-04 09:53:13 +00:00
|
|
|
<vn-input-number
|
2019-03-23 15:16:47 +00:00
|
|
|
vn-one
|
|
|
|
label="Km start"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.kmStart"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-04-04 09:53:13 +00:00
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number
|
2019-03-23 15:16:47 +00:00
|
|
|
vn-one
|
|
|
|
label="Km end"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.kmEnd"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-04-04 09:53:13 +00:00
|
|
|
</vn-input-number>
|
2019-03-23 15:16:47 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-09-30 06:26:51 +00:00
|
|
|
<vn-input-time
|
|
|
|
label="Hour started"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.started">
|
2019-09-30 06:26:51 +00:00
|
|
|
</vn-input-time>
|
|
|
|
<vn-input-time
|
|
|
|
label="Hour finished"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.finished">
|
2019-09-30 06:26:51 +00:00
|
|
|
</vn-input-time>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-10-14 04:58:02 +00:00
|
|
|
<vn-textArea
|
2019-03-23 15:16:47 +00:00
|
|
|
vn-one
|
2019-09-30 06:26:51 +00:00
|
|
|
label="Description"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.description"
|
|
|
|
rule
|
2019-10-08 21:57:02 +00:00
|
|
|
vn-focus>
|
2019-09-30 06:26:51 +00:00
|
|
|
</vn-textfield>
|
2019-03-23 15:16:47 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
2019-09-18 07:41:25 +00:00
|
|
|
<vn-button label="Undo changes" ng-if="watcher.dataChanged()" ng-click="watcher.loadOriginalData()"></vn-button>
|
2019-03-23 15:16:47 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|