1 <md-dialog class="openchannelQueue-dialog" aria-label="New OpenchannelQueue">
2 <form name="openchannelQueueForm" class="md-inline-form" novalidate>
3 <md-toolbar class="md-accent md-hue-2">
5 class="md-toolbar-tools"
7 layout-align="space-between center"
9 <span class="title">{{ vm.title | translate }}</span>
10 <md-button class="md-icon-button" ng-click="vm.closeDialog()">
12 md-font-icon="icon-close"
13 aria-label="Close dialog"
19 <md-dialog-content ms-scroll>
20 <div class="error-list">
22 ng-repeat="error in vm.errors"
25 layout-align="space-between center"
28 <span class="message">{{error.message}}</span>
29 <span class="type">({{error.type}})</span>
31 <md-button class="md-icon-button">
33 md-font-icon="icon-alert-box"
34 aria-label="alert error"
40 <md-input-container class="md-block">
41 <label translate="OPENCHANNEL.NAME">Name</label>
45 ng-model="vm.openchannelQueue.name"
46 ng-pattern="/^[A-Za-z0-9\.\_]+$/i"
49 ng-disabled="!vm.newOpenchannelQueue"
52 <div class="hint"><span translate="OPENCHANNEL.HELP.NAME"></span></div>
54 ng-messages="openchannelQueueForm['name'].$error"
55 ng-show="openchannelQueueForm['name'].$touched"
58 <div ng-message="required">
59 <span translate="OPENCHANNEL.ERRORS.NAME_REQUIRED"
60 >Name field is required</span
63 <div ng-message="pattern">
65 translate="OPENCHANNEL.ERRORS.NAME_MUST_VALID_PATTERN"
66 translate-values="{ regex: '/^[A-Za-z0-9\.\_]+$/i' }"
67 >Name must be valid pattern
72 <md-input-container class="md-block">
73 <label translate="OPENCHANNEL.STRATEGY">Strategy</label>
76 ng-model="vm.openchannelQueue.strategy"
79 <md-option ng-value="'beepall'">Beepall</md-option>
80 <md-option ng-value="'rrmemory'">RR Memory</md-option>
83 ng-messages="openchannelQueueForm['strategy'].$error"
84 ng-show="openchannelQueueForm['strategy'].$touched"
87 <div ng-message="required">
88 <span translate="OPENCHANNEL.ERRORS.STRATEGY_REQUIRED"
89 >Strategy field is required</span
94 <md-input-container class="md-block">
95 <label translate="OPENCHANNEL.AGENT_TIMEOUT">Agent_Timeout</label>
99 ng-model="vm.openchannelQueue.timeout"
106 ng-messages="openchannelQueueForm['timeout'].$error"
107 ng-show="openchannelQueueForm['timeout'].$touched"
110 <div ng-message="required">
111 <span translate="OPENCHANNEL.ERRORS.AGENT_TIMEOUT_REQUIRED"
112 >Agent_Timeout field is required</span
115 <div ng-message="min">
117 translate="OPENCHANNEL.ERRORS.AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
118 >Agent_Timeout must be a valid greater or equal than</span
122 <div ng-message="max">
124 translate="OPENCHANNEL.ERRORS.AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO"
125 >Agent_Timeout must be a valid greater or equal than</span
130 </md-input-container>
131 <md-input-container class="md-block">
132 <label translate="OPENCHANNEL.DESCRIPTION">Description</label>
136 ng-model="vm.openchannelQueue.description"
140 ng-messages="openchannelQueueForm['description'].$error"
141 ng-show="openchannelQueueForm['description'].$touched"
144 <div ng-message="required">
145 <span translate="OPENCHANNEL.ERRORS.DESCRIPTION_REQUIRED"
146 >Description field is required</span
150 </md-input-container>
152 <div class="error-list">
154 ng-repeat="error in vm.errors"
157 layout-align="space-between center"
160 <span class="message">{{error.message}}</span>
161 <span class="type">({{error.type}})</span>
163 <md-button class="md-icon-button">
165 md-font-icon="icon-alert-box"
166 aria-label="alert error"
176 layout-align="space-between center"
177 ng-if="!vm.crudPermissions.readOnly"
179 <div layout="row" layout-align="start center">
182 ng-if="vm.crudPermissions.canEdit && !vm.newOpenchannelQueue"
183 ng-click="vm.saveOpenchannelQueue()"
184 class="send-button md-accent md-raised"
185 ng-disabled="openchannelQueueForm.$invalid || openchannelQueueForm.$pristine"
187 translate="OPENCHANNEL.SAVE"
188 translate-attr-aria-label="OPENCHANNEL.SAVE"
195 ng-if="vm.crudPermissions.canEdit && vm.newOpenchannelQueue"
196 ng-click="vm.addNewOpenchannelQueue()"
197 class="send-button md-accent md-raised"
198 ng-disabled="openchannelQueueForm.$invalid"
200 translate="OPENCHANNEL.ADD_OPENCHANNELQUEUE"
201 translate-attr-aria-label="OPENCHANNEL.ADD_OPENCHANNELQUEUE"
208 class="md-icon-button"
209 ng-if="vm.crudPermissions.canDelete && !vm.newOpenchannelQueue"
210 ng-click="vm.deleteOpenchannelQueue($event)"
213 translate-attr-aria-label="OPENCHANNEL.DELETE"
215 <md-icon md-font-icon="icon-delete"></md-icon>
217 ><span translate="OPENCHANNEL.DELETE">DELETE</span></md-tooltip