60dcbb9dc1e280c5fc9ef442d0839b798517b689
[motion-next.git] /
1 <md-dialog class="agent-dialog" aria-label="agent" ng-init="vm.onInit()">
2   <form name="agentForm" ng-cloak>
3     <md-toolbar>
4       <div class="md-toolbar-tools">
5         <h2>{{vm.title}}</h2>
6         <span flex></span>
7         <md-button class="md-icon-button" ng-click="vm.closeDialog()">
8           <md-icon
9             md-font-icon="icon-close"
10             aria-label="Close dialog"
11           ></md-icon>
12         </md-button>
13       </div>
14     </md-toolbar>
15     <md-dialog-content>
16       <md-input-container
17         flex
18         class="no-margin"
19         ng-if="vm.agent.role === 'agent' && vm.channel === 'voice'"
20       >
21         <label translate="STAFF.PENALTY">Penalty</label>
22         <input
23           name="penalty"
24           ng-model="vm.penalty"
25           placeholder="0"
26           required
27           md-minlength="0"
28           md-maxlength="3"
29         />
30         <div ng-messages="agentForm.penalty.$error" role="alert" multiple>
31           <div ng-message="required">
32             <span>You must supply a penalty.</span>
33           </div>
34           <div ng-message="md-minlength">
35             <span>Min Penalty 0 characters.</span>
36           </div>
37           <div ng-message="md-maxlength">
38             <span>Max Penalty 3 characters.</span>
39           </div>
40         </div>
41       </md-input-container>
42       <ms-dual-multiselect
43         options="vm.dualMultiselectOptions"
44       ></ms-dual-multiselect>
45     </md-dialog-content>
46     <md-dialog-actions
47       layout="row"
48       layout-align="end center"
49       ng-if="vm.crudPermissions.canEdit"
50     >
51       <span></span>
52       <md-button
53         layout-align="end center"
54         type="submit"
55         ng-click="vm.saveQueues()"
56         class="send-button md-accent md-raised"
57         ng-disabled="!vm.pendingChanges"
58         aria-label="SAVE"
59         translate="STAFF.SAVE"
60         translate-attr-aria-label="STAFF.SAVE"
61       >
62         SAVE
63       </md-button>
64     </md-dialog-actions>
65   </form>
66 </md-dialog>