2018-11-21 07:58:34 +00:00
|
|
|
<mg-ajax path="/ticket/api/TicketRequests" options="vnPost"></mg-ajax>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.ticketRequest"
|
|
|
|
form="form"
|
|
|
|
save="post">
|
|
|
|
</vn-watcher>
|
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" margin-medium>
|
2018-12-14 11:56:21 +00:00
|
|
|
<div compact>
|
2018-11-21 07:58:34 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield vn-one label="Description" field="$ctrl.ticketRequest.description" vn-focus></vn-textfield>
|
2019-01-31 13:14:39 +00:00
|
|
|
<vn-autocomplete
|
2018-11-27 08:10:30 +00:00
|
|
|
vn-one
|
|
|
|
field="$ctrl.ticketRequest.atenderFk"
|
|
|
|
url="/client/api/Clients/activeWorkersWithRole"
|
2019-01-31 13:14:39 +00:00
|
|
|
show-field="nickname"
|
2018-11-27 08:10:30 +00:00
|
|
|
search-function="{firstName: $search}"
|
2019-01-31 13:14:39 +00:00
|
|
|
value-field="id"
|
|
|
|
where="{role: 'buyer'}"
|
2019-01-31 16:01:33 +00:00
|
|
|
label="Buyer">
|
2018-11-21 07:58:34 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield vn-one label="Quantity" field="$ctrl.ticketRequest.quantity"></vn-textfield>
|
|
|
|
<vn-textfield vn-one label="Price" field="$ctrl.ticketRequest.price"></vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Create"></vn-submit>
|
|
|
|
<vn-button ui-sref="ticket.card.request.index" label="Cancel"></vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</div>
|
|
|
|
</form>
|