57 lines
1.7 KiB
HTML
57 lines
1.7 KiB
HTML
<mg-ajax
|
|
path="/ticket/api/Tickets/{{index.params.id}}/packages"
|
|
options="mgIndex">
|
|
</mg-ajax>
|
|
|
|
<vn-card pad-large>
|
|
<vn-title>Packages</vn-title>
|
|
<vn-one>
|
|
<vn-horizontal ng-repeat="package in index.model track by package.id">
|
|
<vn-autocomplete vn-one
|
|
margin-large-right
|
|
url="/ticket/api/Packagings/listPackaging"
|
|
label="Package"
|
|
show-field="name"
|
|
value-field="packagingFk"
|
|
field="package.packagingFk">
|
|
<tpl-item>{{id}} : {{name}}</tpl-item>
|
|
</vn-autocomplete>
|
|
<vn-textfield
|
|
vn-one
|
|
margin-large-right
|
|
label="Quantity"
|
|
model="package.quantity">
|
|
</vn-textfield>
|
|
<vn-textfield
|
|
vn-one
|
|
margin-large-right
|
|
label="Added"
|
|
model="package.created | date: 'dd/MM/yyyy'"
|
|
disabled="true"
|
|
ng-readonly="true">
|
|
</vn-textfield>
|
|
<vn-auto pad-medium-top>
|
|
<vn-icon
|
|
pointer
|
|
medium-grey
|
|
vn-tooltip="Remove package"
|
|
tooltip-position = "left"
|
|
icon="remove_circle_outline"
|
|
ng-click="$ctrl.removePackage($index)">
|
|
</vn-icon>
|
|
</vn-one>
|
|
</vn-horizontal>
|
|
</vn-one>
|
|
<vn-one>
|
|
<vn-icon
|
|
pointer
|
|
margin-medium-left
|
|
vn-tooltip="Add package"
|
|
tooltip-position = "right"
|
|
orange
|
|
icon="add_circle"
|
|
ng-click="$ctrl.addPackage()">
|
|
</vn-icon>
|
|
</vn-one>
|
|
</vn-card>
|