2 class="disposition-dialog"
3 aria-label="disposition"
6 <form name="dispositionForm" class="md-inline-form" novalidate>
7 <md-toolbar class="md-background-bg">
9 class="md-toolbar-tools"
11 layout-align="space-between center"
14 ng-if="!vm.interaction.closed"
16 translate="DASHBOARDS.DISPOSE"
19 ng-if="vm.interaction.closed"
21 translate="DASHBOARDS.INFO"
24 class="md-icon-button"
25 ng-click="vm.closeDialog()"
26 ng-if="!vm.mandatoryDisposition"
29 md-font-icon="icon-close"
30 aria-label="Close dialog"
35 <md-dialog-content ms-scroll>
36 <div class="error-list">
38 ng-repeat="error in vm.errors"
41 layout-align="space-between center"
44 <span class="message">{{error.message}}</span>
45 <span class="type">({{error.type}})</span>
47 <md-button class="md-icon-button">
49 md-font-icon="icon-alert-box"
50 aria-label="alert error"
56 <md-input-container class="md-block">
57 <label translate="DASHBOARDS.DISPOSITION">Disposition</label>
60 ng-model="vm.firstLevelDisposition"
61 ng-change="vm.onDispositionChange('first')"
64 <md-option ng-value="null" ng-if="!vm.mandatoryDisposition"
68 ng-value="disposition"
69 ng-repeat="disposition in vm.dispositions | filter: { level: 'first' }"
71 {{ disposition.name }}</md-option
75 ng-messages="dispositionForm.disposition.$error"
76 ng-show="dispositionForm.disposition.$touched"
79 <div ng-message="required">
80 <span translate="DASHBOARDS.ERRORS.DISPOSITION_REQUIRED"
81 >Disposition field is required</span
87 ng-if="vm.firstLevelDisposition && vm.anySecondLevelDisposition"
89 layout-align="start center"
91 <md-input-container class="md-block" flex>
92 <label translate="DASHBOARDS.SECOND_LEVEL_DISPOSITION"
93 >Second Level Disposition</label
96 name="secondLevelDisposition"
97 ng-model="vm.secondLevelDisposition"
98 ng-change="vm.onDispositionChange('second')"
101 ng-value="disposition"
102 ng-repeat="disposition in vm.dispositions | filter: { level: 'second', ParentId: vm.firstLevelDisposition.id }"
104 {{ disposition.name }}</md-option
107 </md-input-container>
109 ng-if="vm.secondLevelDisposition"
110 ng-click="vm.clearDispositionSelection('second')"
111 class="md-icon-button"
114 md-font-icon="icon-cancel"
115 aria-label="Clear second level disposition selection"
121 ng-if="vm.secondLevelDisposition && vm.anyThirdLevelDisposition"
123 layout-align="start center"
125 <md-input-container class="md-block" flex>
126 <label translate="DASHBOARDS.THIRD_LEVEL_DISPOSITION"
127 >Third Level Disposition</label
130 name="thirdLevelDisposition"
131 ng-model="vm.thirdLevelDisposition"
134 ng-value="disposition"
135 ng-repeat="disposition in vm.dispositions | filter: { level: 'third', ParentId: vm.secondLevelDisposition.id }"
136 ng-disabled="disposition.canSelect === false"
137 >{{ disposition.name }}</md-option
140 </md-input-container>
142 ng-if="vm.thirdLevelDisposition"
143 ng-click="vm.clearDispositionSelection('third')"
144 class="md-icon-button"
147 md-font-icon="icon-cancel"
148 aria-label="Clear third level disposition selection"
153 <md-input-container class="md-block">
154 <label translate="DASHBOARDS.NOTE">Note</label>
156 ng-model="vm.interaction.note"
161 </md-input-container>
162 <div class="error-list">
164 ng-repeat="error in vm.errors"
167 layout-align="space-between center"
170 <span class="message">{{error.message}}</span>
171 <span class="type">({{error.type}})</span>
173 <md-button class="md-icon-button">
175 md-font-icon="icon-alert-box"
176 aria-label="alert error"
183 <md-dialog-actions layout="row" layout-align="space-between center">
184 <div layout="row" layout-align="start center">
187 ng-click="vm.saveDisposition()"
188 class="send-button md-accent md-raised"
189 ng-if="!vm.interaction.closed && (vm.firstLevelDisposition || vm.secondLevelDisposition || vm.thirdLevelDisposition)"
190 aria-label="CLOSE_AND_DISPOSE"
191 translate="DASHBOARDS.CLOSE_AND_DISPOSE"
192 translate-attr-aria-label="DASHBOARDS.CLOSE_AND_DISPOSE"
198 ng-click="vm.saveDisposition(false)"
199 class="send-button md-accent md-raised"
200 ng-if="!vm.interaction.closed && !vm.firstLevelDisposition"
201 ng-disabled="vm.mandatoryDisposition"
202 aria-label="CLOSE_WITHOUT_DISPOSE"
203 translate="DASHBOARDS.CLOSE_WITHOUT_DISPOSE"
204 translate-attr-aria-label="DASHBOARDS.CLOSE_WITHOUT_DISPOSE"
206 CLOSE WITHOUT DISPOSE
210 ng-click="vm.saveDisposition()"
211 class="send-button md-accent md-raised"
212 ng-if="vm.interaction.closed"
213 ng-disabled="vm.mandatoryDisposition && !vm.firstLevelDisposition"
215 translate="DASHBOARDS.DISPOSE"
216 translate-attr-aria-label="DASHBOARDS.DISPOSE"
220 <div ng-if="vm.mandatoryDisposition">
222 md-font-icon="icon-information-outline"
223 aria-label="Mandatory Disposition"
226 class="no-margin font-size-12 line-height-30"
227 translate="DASHBOARDS.HELP.MANDATORY_DISPOSITION_ENABLED"