3 class="page-layout simple left-sidenav inner-sidenav motion-list"
7 class="header md-accent-bg"
9 layout-align="space-between center"
12 <div layout="row" layout-align="start center">
13 <div class="logo" layout="row" layout-align="start center">
14 <span class="logo-icon">
15 <md-icon md-font-icon="icon-phone" class="s24"></md-icon>
17 <span class="logo-text" translate="VOICE.VOICEQUEUES">VoiceQueues</span>
25 class="search-input-wrapper"
27 layout-align="start center"
30 <md-icon md-font-icon="icon-magnify"></md-icon>
32 <md-input-container md-no-float class="m-0">
35 placeholder="Search for anyone"
37 ng-model="vm.query.filter"
38 ng-model-options="{ debounce: 1000 }"
40 translate-attr-placeholder="VOICE.SEARCH_FOR_ANYONE"
51 ng-show="vm.selectedVoiceQueues.length > 0"
52 class="selected-bar header animate-slide-down md-accent-bg"
54 layout-align="start center"
56 <div class="close-button-wrapper" ng-click="vm.selectedVoiceQueues =[]">
57 <md-button layout="row" layout-align="start center">
58 <md-icon md-font-icon="icon-arrow-left" class="mr-8"></md-icon>
59 <span translate="VOICE.BACK">Back</span>
63 <div flex layout="row" layout-align="space-between center">
65 <span class="selected-voiceQueues-count">
66 <span>{{vm.selectedVoiceQueues.length}}</span>
67 <span translate="VOICE.SELECTED">selected</span>
70 <md-menu class="select-menu" ng-if="!vm.currentThread">
72 class="md-icon-button"
73 ng-click="$mdMenu.open($event)"
74 aria-label="multi select toggle"
76 translate-attr-aria-label="VOICE.MULTI_SELECT_TOGGLE"
78 <md-icon md-font-icon="icon-menu-down"></md-icon>
80 <md-menu-content width="3">
83 ng-click="vm.selectAllVoiceQueues()"
84 translate="VOICE.SELECT_ALL"
91 ng-click="vm.deselectVoiceQueues()"
92 translate="VOICE.SELECT_NONE"
101 <div class="multi-select-actions">
103 class="md-icon-button"
104 ng-csv="vm.exportSelectedVoiceQueues"
106 filename="voiceQueues.csv"
108 <md-icon md-font-icon="icon-file-excel"></md-icon>
111 class="md-icon-button"
112 ng-if="vm.crudPermissions.canDelete"
113 ng-click="vm.deleteSelectedVoiceQueues($event)"
114 aria-label="delete selected"
116 translate-attr-label="VOICE.DELETE_SELECTED"
118 <md-icon md-font-icon="icon-delete"></md-icon>
123 <!-- / SELECTED BAR -->
126 <div class="content" md-background-bg layout="row" layout-align="start start">
128 <div class="main scrollable" ms-scroll>
129 <!-- VOICEQUEUE TABLE -->
136 ng-model="vm.selectedVoiceQueues"
137 md-progress="vm.promise"
141 md-order="vm.query.sort"
142 md-on-reorder="vm.getVoiceQueues"
147 ng-if="vm.table == 'users' || vm.table == 'agents'"
150 <th md-column md-order-by="id">{{ 'VOICE.ID' | translate }}</th>
151 <th md-column md-order-by="name">
152 {{ 'VOICE.NAME' | translate }}
154 <th md-column md-order-by="strategy">
155 {{ 'VOICE.STRATEGY' | translate }}
157 <th md-column md-order-by="description">
158 {{ 'VOICE.DESCRIPTION' | translate }}
160 <th md-column width="10px"></th>
164 <tr md-row ng-hide="vm.voiceQueues.rows.length">
165 <td md-cell colspan="5">
166 <div layout="row" layout-align="center center">
167 <span translate="VOICE.NO_AVAILABLE_INFO"
168 >No Available Info</span
175 md-select="voiceQueue"
177 ng-repeat="voiceQueue in vm.voiceQueues.rows"
179 <td md-cell ng-if="voiceQueue.userpic">
182 alt="{{voiceQueue.name}}"
183 ng-src="api/users/{{voiceQueue.id}}/avatar"
188 ng-if="!voiceQueue.userpic && (vm.table == 'users' || vm.table == 'agents')"
192 alt="{{voiceQueue.name}}"
193 ng-src="assets/images/avatars/profile.png"
197 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(voiceQueue, ev) : vm.createOrEditVoiceQueue($event, voiceQueue)"
204 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(voiceQueue, ev) : vm.createOrEditVoiceQueue($event, voiceQueue)"
211 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(voiceQueue, ev) : vm.createOrEditVoiceQueue($event, voiceQueue)"
215 {{ vm.arraystrategy[voiceQueue.strategy].option }}
218 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(voiceQueue, ev) : vm.createOrEditVoiceQueue($event, voiceQueue)"
222 {{voiceQueue.description}}
225 <td md-cell class="actions">
228 class="md-icon-button"
231 translate-attr-aria-label="VOICE.MORE"
232 ng-click="$mdMenu.open($event)"
234 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
237 <md-menu-content width="3">
242 <md-menu-item ng-if="vm.crudPermissions.canEdit">
244 ng-click="vm.editstate(voiceQueue, $event )"
245 translate="VOICE.EDIT_VOICEQUEUE"
257 ng-click="vm.teamadddialog(voiceQueue, $event )"
258 translate="VOICE.TEAMADD_VOICEQUEUE"
270 ng-click="vm.agentadddialog(voiceQueue, $event )"
271 translate="VOICE.AGENTADD_VOICEQUEUE"
281 <md-menu-item ng-if="vm.crudPermissions.canDelete">
283 ng-click="vm.deleteconfirm(voiceQueue, $event )"
284 translate="VOICE.DELETE_VOICEQUEUE"
296 ng-click="vm.gotorealtimegoto(voiceQueue, $event )"
297 translate="VOICE.GOTOREALTIME_VOICEQUEUE"
299 goToRealtime VoiceQueue
308 </md-table-container>
311 md-label="{page: '{{'VOICE.PAGE' | translate}}:', rowsPerPage: '{{'VOICE.ROWSPERPAGE' | translate}}:', of: '{{'VOICE.OF' | translate}}'}"
312 md-limit="vm.query.limit"
313 md-limit-options="[10, 15, 20, 50, 100, 250]"
314 md-page="vm.query.page"
315 md-total="{{vm.voiceQueues.count}}"
316 md-on-paginate="vm.getVoiceQueues"
318 ></md-table-pagination>
320 <!-- / VOICEQUEUE TABLE -->
323 <!-- / NO RESULTS -->
329 <!-- ADD VOICEQUEUE BUTTON -->
331 ng-if="vm.crudPermissions.canEdit"
332 class="md-fab md-accent add-item-button"
333 id="add-voiceQueue-button"
334 ng-click="vm.createOrEditVoiceQueue($event)"
335 aria-label="add voiceQueue"
337 translate-attr-aria-label="VOICE.ADD_VOICEQUEUE"
339 <md-icon md-font-icon="icon-plus"></md-icon>
341 <!-- / ADD VOICEQUEUE BUTTON -->