salix/modules/ticket/front/tracking/edit/index.html

39 lines
1.2 KiB
HTML

<mg-ajax path="TicketTrackings/changeState" options="vnPost"></mg-ajax>
<vn-watcher
vn-id="watcher"
data="$ctrl.params"
form="form">
</vn-watcher>
<vn-crud-model
auto-load="true"
url="States"
data="states">
</vn-crud-model>
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-autocomplete
vn-one
ng-model="$ctrl.stateFk"
data="states"
label="State"
vn-focus>
</vn-autocomplete>
<vn-autocomplete
vn-one
url="Clients/activeWorkersWithRole"
ng-if="$ctrl.isPickerDesignedState"
ng-model="$ctrl.workerFk"
show-field="nickname"
search-function="{firstName: $search}"
value-field="id"
where="{role: 'employee'}"
label="Worker">
</vn-autocomplete>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
<vn-button ui-sref="ticket.card.tracking.index" label="Cancel"></vn-button>
</vn-button-bar>
</form>