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