2018-03-16 14:06:42 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2018-03-22 09:57:55 +00:00
|
|
|
url="/ticket/api/Observation"
|
2018-03-16 14:06:42 +00:00
|
|
|
id-field="id"
|
|
|
|
data="$ctrl.address"
|
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
|
|
|
<form name="form" ng-submit="$ctrl.submit()">
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-one margin-medium-top>
|
|
|
|
<vn-title>Notes</vn-title>
|
|
|
|
<mg-ajax path="/ticket/api/ObservationTypes" options="mgIndex as observationTypes"></mg-ajax>
|
|
|
|
<vn-horizontal ng-repeat="ticketObservation in $ctrl.ticketObservations track by $index">
|
|
|
|
<vn-autocomplete
|
|
|
|
ng-if="!ticketObservation.id"
|
|
|
|
vn-one
|
2018-04-19 12:46:06 +00:00
|
|
|
vn-focus
|
2018-03-16 14:06:42 +00:00
|
|
|
initial-data="ticketObservation.observationType"
|
|
|
|
field="ticketObservation.observationTypeFk"
|
|
|
|
data="observationTypes.model"
|
|
|
|
show-field="description"
|
|
|
|
label="Observation type">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-textfield
|
|
|
|
ng-if="ticketObservation.id"
|
|
|
|
vn-one
|
|
|
|
label="Observation type"
|
|
|
|
model="ticketObservation.observationType.description"
|
|
|
|
disabled="true">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
vn-two
|
|
|
|
margin-large-right
|
|
|
|
label="Description"
|
2018-03-22 09:57:55 +00:00
|
|
|
model="ticketObservation.description"
|
|
|
|
rule="ticketObservation.description">
|
2018-03-16 14:06:42 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-auto pad-medium-top>
|
|
|
|
<vn-icon
|
|
|
|
pointer
|
|
|
|
medium-grey
|
|
|
|
vn-tooltip="Remove note"
|
|
|
|
tooltip-position="left"
|
|
|
|
icon="remove_circle_outline"
|
|
|
|
ng-click="$ctrl.removeObservation($index)">
|
|
|
|
</vn-icon>
|
|
|
|
</vn-auto>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2018-04-19 12:46:06 +00:00
|
|
|
<vn-icon-button
|
2018-04-04 12:52:54 +00:00
|
|
|
pointer vn-tooltip="Add note"
|
2018-04-19 12:46:06 +00:00
|
|
|
tooltip-position="right" icon="add_circle"
|
2018-03-16 14:06:42 +00:00
|
|
|
ng-if="observationTypes.model.length > $ctrl.ticketObservations.length"
|
|
|
|
ng-click="$ctrl.addObservation()">
|
2018-04-19 12:46:06 +00:00
|
|
|
</vn-icon-button>
|
2018-03-16 14:06:42 +00:00
|
|
|
</vn-one>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|