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.VOICEPREFIXES"
27 class="search-input-wrapper"
29 layout-align="start center"
32 <md-icon md-font-icon="icon-magnify"></md-icon>
34 <md-input-container md-no-float class="m-0">
37 placeholder="Search for anyone"
39 ng-model="vm.query.filter"
40 ng-model-options="{ debounce: 1000 }"
42 translate-attr-placeholder="VOICE.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedVoicePrefixes.length > 0"
54 class="selected-bar header animate-slide-down md-accent-bg"
56 layout-align="start center"
58 <div class="close-button-wrapper" ng-click="vm.selectedVoicePrefixes =[]">
59 <md-button layout="row" layout-align="start center">
60 <md-icon md-font-icon="icon-arrow-left" class="mr-8"></md-icon>
61 <span translate="VOICE.BACK">Back</span>
65 <div flex layout="row" layout-align="space-between center">
67 <span class="selected-voicePrefixes-count">
68 <span>{{vm.selectedVoicePrefixes.length}}</span>
69 <span translate="VOICE.SELECTED">selected</span>
72 <md-menu class="select-menu" ng-if="!vm.currentThread">
74 class="md-icon-button"
75 ng-click="$mdMenu.open($event)"
76 aria-label="multi select toggle"
78 translate-attr-aria-label="VOICE.MULTI_SELECT_TOGGLE"
80 <md-icon md-font-icon="icon-menu-down"></md-icon>
82 <md-menu-content width="3">
85 ng-click="vm.selectAllVoicePrefixes()"
86 translate="VOICE.SELECT_ALL"
93 ng-click="vm.deselectVoicePrefixes()"
94 translate="VOICE.SELECT_NONE"
103 <div class="multi-select-actions">
105 class="md-icon-button"
106 ng-csv="vm.exportSelectedVoicePrefixes"
108 filename="voicePrefixes.csv"
110 <md-icon md-font-icon="icon-file-excel"></md-icon>
113 class="md-icon-button"
114 ng-if="vm.crudPermissions.canDelete"
115 ng-click="vm.deleteSelectedVoicePrefixes($event)"
116 aria-label="delete selected"
118 translate-attr-label="VOICE.DELETE_SELECTED"
120 <md-icon md-font-icon="icon-delete"></md-icon>
125 <!-- / SELECTED BAR -->
128 <div class="content" md-background-bg layout="row" layout-align="start start">
130 <div class="main scrollable" ms-scroll>
131 <!-- VOICEPREFIX TABLE -->
138 ng-model="vm.selectedVoicePrefixes"
139 md-progress="vm.promise"
143 md-order="vm.query.sort"
144 md-on-reorder="vm.getVoicePrefixes"
149 ng-if="vm.table == 'users' || vm.table == 'agents'"
152 <th md-column md-order-by="id">{{ 'VOICE.ID' | translate }}</th>
153 <th md-column md-order-by="name">
154 {{ 'VOICE.NAME' | translate }}
156 <th md-column md-order-by="VoiceExtensionId">
157 {{ 'VOICE.OUTBOUNDROUTE' | translate }}
159 <th md-column md-order-by="callerIdAll">
160 {{ 'VOICE.CALLERIDALL' | translate }}
162 <th md-column md-order-by="description">
163 {{ 'VOICE.DESCRIPTION' | translate }}
165 <th md-column width="10px"></th>
169 <tr md-row ng-hide="vm.voicePrefixes.rows.length">
170 <td md-cell colspan="6">
171 <div layout="row" layout-align="center center">
172 <span translate="VOICE.NO_AVAILABLE_INFO"
173 >No Available Info</span
180 md-select="voicePrefix"
182 ng-repeat="voicePrefix in vm.voicePrefixes.rows"
184 <td md-cell ng-if="voicePrefix.userpic">
187 alt="{{voicePrefix.name}}"
188 ng-src="api/users/{{voicePrefix.id}}/avatar"
193 ng-if="!voicePrefix.userpic && (vm.table == 'users' || vm.table == 'agents')"
197 alt="{{voicePrefix.name}}"
198 ng-src="assets/images/avatars/profile.png"
202 ng-click="vm.createOrEditvoicePrefix($event, voicePrefix)"
209 ng-click="vm.createOrEditvoicePrefix($event, voicePrefix)"
216 ng-click="vm.createOrEditvoicePrefix($event, voicePrefix)"
218 class="VoiceExtensionId"
220 {{ (vm.outboundRoutes | filter :
221 {'id':voicePrefix.VoiceExtensionId} : true)[0].exten }}
224 ng-click="vm.createOrEditvoicePrefix($event, voicePrefix)"
228 {{voicePrefix.callerIdAll}}
231 ng-click="vm.createOrEditvoicePrefix($event, voicePrefix)"
235 {{voicePrefix.description}}
238 <td md-cell class="actions">
241 class="md-icon-button"
244 translate-attr-aria-label="VOICE.MORE"
245 ng-click="$mdMenu.open($event)"
247 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
250 <md-menu-content width="3">
255 <md-menu-item ng-if="vm.crudPermissions.canEdit">
257 ng-click="vm.editdialog(voicePrefix, $event )"
258 translate="VOICE.EDIT_VOICEPREFIX"
270 ng-click="vm.agentadddialog(voicePrefix, $event )"
271 translate="VOICE.AGENTADD_VOICEPREFIX"
281 <md-menu-item ng-if="vm.crudPermissions.canDelete">
283 ng-click="vm.deleteconfirm(voicePrefix, $event )"
284 translate="VOICE.DELETE_VOICEPREFIX"
295 </md-table-container>
298 md-label="{page: '{{'VOICE.PAGE' | translate}}:', rowsPerPage: '{{'VOICE.ROWSPERPAGE' | translate}}:', of: '{{'VOICE.OF' | translate}}'}"
299 md-limit="vm.query.limit"
300 md-limit-options="[10, 15, 20, 50, 100, 250]"
301 md-page="vm.query.page"
302 md-total="{{vm.voicePrefixes.count}}"
303 md-on-paginate="vm.getVoicePrefixes"
305 ></md-table-pagination>
307 <!-- / VOICEPREFIX TABLE -->
310 <!-- / NO RESULTS -->
316 <!-- ADD VOICEPREFIX BUTTON -->
318 ng-if="vm.crudPermissions.canEdit"
319 class="md-fab md-accent add-item-button"
320 id="add-voicePrefix-button"
321 ng-click="vm.createOrEditvoicePrefix($event)"
322 aria-label="add voicePrefix"
324 translate-attr-aria-label="VOICE.ADD_VOICEPREFIX"
326 <md-icon md-font-icon="icon-plus"></md-icon>
328 <!-- / ADD VOICEPREFIX BUTTON -->