1 <md-dialog class="agent-dialog" aria-label="agent dispose">
2 <form name="disposition" class="md-inline-form" novalidate>
3 <md-toolbar class="md-background-bg">
5 class="md-toolbar-tools"
7 layout-align="space-between center"
9 <span class="title" translate="DASHBOARDS.DISPOSE"></span>
10 <md-button class="md-icon-button" ng-click="vm.closeDialog()">
12 md-font-icon="icon-close"
13 aria-label="Close dialog"
18 <md-dialog-content ms-scroll>
20 <md-input-container class="md-block">
21 <label translate="DASHBOARDS.DISPOSITION">Disposition</label>
24 ng-model="vm.firstLevelDisposition"
25 ng-change="vm.onDispositionChange('first')"
29 ng-value="disposition"
30 ng-repeat="disposition in vm.dispositions | filter: { level: 'first' }"
32 {{ disposition.name }}</md-option
35 ng-value="globalDisposition"
36 ng-repeat="globalDisposition in vm.globalDispositions | filter: { level: 'first' }"
38 {{ globalDisposition.name }}</md-option
42 ng-messages="dispositionForm.disposition.$error"
43 ng-show="dispositionForm.disposition.$touched"
46 <div ng-message="required">
47 <span translate="DASHBOARDS.ERRORS.DISPOSITION_REQUIRED"
48 >Disposition field is required</span
54 ng-if="vm.firstLevelDisposition && vm.anySecondLevelDisposition"
56 layout-align="start center"
58 <md-input-container class="md-block" flex>
59 <label translate="DASHBOARDS.SECOND_LEVEL_DISPOSITION"
60 >Second Level Disposition</label
63 name="secondLevelDisposition"
64 ng-model="vm.secondLevelDisposition"
65 ng-change="vm.onDispositionChange('second')"
68 ng-value="disposition"
69 ng-repeat="disposition in vm.dispositions | filter: { level: 'second', ParentId: vm.firstLevelDisposition.id }"
71 {{ disposition.name }}</md-option
74 ng-value="globalDisposition"
75 ng-repeat="globalDisposition in vm.globalDispositions | filter: { level: 'second', ParentId: vm.firstLevelDisposition.id }"
77 {{ globalDisposition.name }}</md-option
82 ng-if="vm.secondLevelDisposition"
83 ng-click="vm.clearDispositionSelection('second')"
84 class="md-icon-button"
87 md-font-icon="icon-cancel"
88 aria-label="Clear second level disposition selection"
94 ng-if="vm.secondLevelDisposition && vm.anyThirdLevelDisposition"
96 layout-align="start center"
98 <md-input-container class="md-block" flex>
99 <label translate="DASHBOARDS.THIRD_LEVEL_DISPOSITION"
100 >Third Level Disposition</label
103 name="thirdLevelDisposition"
104 ng-model="vm.thirdLevelDisposition"
105 ng-change="vm.onDispositionChange('third')"
108 ng-value="disposition"
109 ng-repeat="disposition in vm.dispositions | filter: { level: 'third', ParentId: vm.secondLevelDisposition.id }"
111 {{ disposition.name }}</md-option
114 ng-value="globalDisposition"
115 ng-repeat="globalDisposition in vm.globalDispositions | filter: { level: 'third', ParentId: vm.secondLevelDisposition.id }"
117 {{ globalDisposition.name }}</md-option
120 </md-input-container>
122 ng-if="vm.thirdLevelDisposition"
123 ng-click="vm.clearDispositionSelection('third')"
124 class="md-icon-button"
127 md-font-icon="icon-cancel"
128 aria-label="Clear third level disposition selection"
133 <md-input-container class="md-block">
134 <label translate="DASHBOARDS.NOTE">Note</label>
141 </md-input-container>
144 <md-dialog-actions layout="row" layout-align="space-between center">
145 <div layout="row" layout-align="start center">
147 ng-disabled="disposition.$invalid || disposition.$pristine"
148 class="send-button md-raised md-accent"
149 ng-click="vm.saveDisposition()"
151 {{(vm.selectedDisposition.name ? 'DASHBOARDS.DISPOSE' :
152 'DASHBOARDS.SAVE') | translate}}