2018-11-30 06:57:41 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/ticket/api/TicketServices"
|
|
|
|
link="{ticketFk: $ctrl.$stateParams.id}"
|
2018-12-19 14:59:35 +00:00
|
|
|
data="services"
|
|
|
|
auto-load="true">
|
2018-11-30 06:57:41 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="services"
|
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
2018-12-14 11:56:21 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
2018-11-30 06:57:41 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-one>
|
|
|
|
<vn-horizontal ng-repeat="service in services track by $index">
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
vn-focus
|
|
|
|
label="Description"
|
|
|
|
model="service.description"
|
|
|
|
rule="TicketService.description">
|
|
|
|
</vn-textfield>
|
2019-03-26 06:29:45 +00:00
|
|
|
<vn-input-number vn-one min="0" step="1"
|
2018-11-30 06:57:41 +00:00
|
|
|
label="Quantity"
|
|
|
|
model="service.quantity"
|
|
|
|
rule="TicketService.quantity">
|
2019-03-26 06:29:45 +00:00
|
|
|
</vn-input-number>
|
2019-04-09 11:18:55 +00:00
|
|
|
<vn-input-number vn-one
|
2018-11-30 06:57:41 +00:00
|
|
|
label="Price"
|
2019-04-09 11:18:55 +00:00
|
|
|
model="service.price" step="0.01">
|
2019-03-06 07:54:04 +00:00
|
|
|
</vn-input-number>
|
2018-11-30 06:57:41 +00:00
|
|
|
<vn-autocomplete vn-one
|
|
|
|
url="/api/TaxClasses"
|
|
|
|
label="Tax class"
|
|
|
|
show-field="description"
|
|
|
|
value-field="id"
|
|
|
|
field="service.taxClassFk">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-auto pad-medium-top>
|
2019-02-21 10:40:27 +00:00
|
|
|
<vn-icon-button
|
2019-02-08 16:49:51 +00:00
|
|
|
pointer
|
2018-11-30 06:57:41 +00:00
|
|
|
vn-tooltip="Remove service"
|
|
|
|
icon="delete"
|
|
|
|
ng-click="model.remove($index)">
|
2019-02-21 10:40:27 +00:00
|
|
|
</vn-icon-button>
|
2018-11-30 06:57:41 +00:00
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2019-02-11 12:14:02 +00:00
|
|
|
<vn-icon-button
|
2018-11-30 06:57:41 +00:00
|
|
|
vn-tooltip="Add service"
|
|
|
|
vn-bind="+"
|
|
|
|
icon="add_circle"
|
|
|
|
ng-click="$ctrl.add()">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-one>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|