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

50 lines
1.5 KiB
HTML
Raw Normal View History

2019-03-22 15:47:20 +00:00
<vn-watcher
vn-id="watcher"
url="Routes"
2019-03-22 15:47:20 +00:00
data="$ctrl.route"
insert-mode="true"
form="form">
2019-03-22 15:47:20 +00:00
</vn-watcher>
2019-11-10 10:08:44 +00:00
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-autocomplete
label="Worker"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.route.workerFk"
url="Clients/activeWorkersWithRole"
show-field="nickname"
search-function="{firstName: $search}"
where="{role: 'employee'}">
2019-11-10 10:08:44 +00:00
</vn-autocomplete>
<vn-date-picker
label="Created"
ng-model="$ctrl.route.created">
</vn-date-picker>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
label="Vehicle"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.route.vehicleFk"
url="Vehicles"
show-field="numberPlate">
2019-11-10 10:08:44 +00:00
</vn-autocomplete>
<vn-autocomplete
label="Agency"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.route.agencyModeFk"
url="AgencyModes">
2019-11-10 10:08:44 +00:00
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
label="Description"
ng-model="$ctrl.route.description"
rule>
</vn-textfield>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Create"></vn-submit>
<vn-button ui-sref="route.index" label="Cancel"></vn-button>
</vn-button-bar>
</form>