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>
|
2019-10-04 22:16:57 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-ma-md">
|
2018-12-14 11:56:21 +00:00
|
|
|
<div compact>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-11-21 07:58:34 +00:00
|
|
|
<vn-horizontal>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Description"
|
|
|
|
ng-model="$ctrl.ticketRequest.description"
|
|
|
|
rule
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
2019-01-31 13:14:39 +00:00
|
|
|
<vn-autocomplete
|
2018-11-27 08:10:30 +00:00
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.ticketRequest.atenderFk"
|
2018-11-27 08:10:30 +00:00
|
|
|
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>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
|
|
|
vn-one
|
|
|
|
min="1"
|
2019-03-26 06:29:45 +00:00
|
|
|
label="Quantity"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.ticketRequest.quantity"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-03-26 06:29:45 +00:00
|
|
|
</vn-input-number>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
|
|
|
vn-one
|
|
|
|
min="0"
|
2019-06-18 10:09:43 +00:00
|
|
|
label="Price"
|
|
|
|
step="0.01"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.ticketRequest.price"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-03-26 06:29:45 +00:00
|
|
|
</vn-input-number>
|
2018-11-21 07:58:34 +00:00
|
|
|
</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>
|