salix/modules/ticket/front/request/create/index.html

54 lines
1.8 KiB
HTML
Raw Normal View History

<mg-ajax path="TicketRequests" options="vnPost"></mg-ajax>
2018-11-21 07:58:34 +00:00
<vn-watcher
vn-id="watcher"
data="$ctrl.ticketRequest"
form="form"
save="post">
</vn-watcher>
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-ma-md">
2019-11-10 10:08:44 +00:00
<div class="vn-w-md">
<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>
<vn-autocomplete
vn-one
2019-10-22 11:44:36 +00:00
ng-model="$ctrl.ticketRequest.attenderFk"
url="Clients/activeWorkersWithRole"
show-field="nickname"
search-function="{firstName: $search}"
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-input-number
vn-one
min="1"
label="Quantity"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.ticketRequest.quantity"
rule>
</vn-input-number>
<vn-input-number
vn-one
min="0"
label="Price"
step="0.01"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.ticketRequest.price"
rule>
</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>