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-fire" class="s24"></md-icon>
17 <span class="logo-text" translate="MOTIONDIALER.IVRCAMPAIGNS"
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="MOTIONDIALER.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedIvrCampaigns.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.selectedIvrCampaigns =[]">
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="MOTIONDIALER.BACK">Back</span>
65 <div flex layout="row" layout-align="space-between center">
67 <span class="selected-ivrCampaigns-count">
68 <span>{{vm.selectedIvrCampaigns.length}}</span>
69 <span translate="MOTIONDIALER.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="MOTIONDIALER.MULTI_SELECT_TOGGLE"
80 <md-icon md-font-icon="icon-menu-down"></md-icon>
82 <md-menu-content width="3">
85 ng-click="vm.selectAllIvrCampaigns()"
86 translate="MOTIONDIALER.SELECT_ALL"
93 ng-click="vm.deselectIvrCampaigns()"
94 translate="MOTIONDIALER.SELECT_NONE"
103 <div class="multi-select-actions">
105 class="md-icon-button"
106 ng-csv="vm.exportSelectedIvrCampaigns"
108 filename="ivrCampaigns.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.deleteSelectedIvrCampaigns($event)"
116 aria-label="delete selected"
118 translate-attr-label="MOTIONDIALER.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 <!-- IVRCAMPAIGN TABLE -->
138 ng-model="vm.selectedIvrCampaigns"
139 md-progress="vm.promise"
143 md-order="vm.query.sort"
144 md-on-reorder="vm.getIvrCampaigns"
149 ng-if="vm.table == 'users' || vm.table == 'agents'"
152 <th md-column md-order-by="id">
153 {{ 'MOTIONDIALER.ID' | translate }}
155 <th md-column md-order-by="name">
156 {{ 'MOTIONDIALER.NAME' | translate }}
158 <th md-column md-order-by="active">
159 {{ 'MOTIONDIALER.ACTIVE' | translate }}
161 <th md-column md-order-by="TrunkId">
162 {{ 'MOTIONDIALER.TRUNK' | translate }}
164 <th md-column md-order-by="SquareProjectId">
165 {{ 'MOTIONDIALER.CALLYSQUAREPROJECT' | translate }}
167 <th md-column width="10px"></th>
171 <tr md-row ng-hide="vm.ivrCampaigns.rows.length">
172 <td md-cell colspan="6">
173 <div layout="row" layout-align="center center">
174 <span translate="MOTIONDIALER.NO_AVAILABLE_INFO"
175 >No Available Info</span
182 md-select="ivrCampaign"
184 ng-repeat="ivrCampaign in vm.ivrCampaigns.rows"
186 <td md-cell ng-if="ivrCampaign.userpic">
189 alt="{{ivrCampaign.name}}"
190 ng-src="api/users/{{ivrCampaign.id}}/avatar"
195 ng-if="!ivrCampaign.userpic && (vm.table == 'users' || vm.table == 'agents')"
199 alt="{{ivrCampaign.name}}"
200 ng-src="assets/images/avatars/profile.png"
204 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(ivrCampaign, ev) : vm.createOrEditIvrCampaign($event, ivrCampaign)"
211 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(ivrCampaign, ev) : vm.createOrEditIvrCampaign($event, ivrCampaign)"
218 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(ivrCampaign, ev) : vm.createOrEditIvrCampaign($event, ivrCampaign)"
223 md-colors="{color: {{ivrCampaign.active ? '\'green\'' : '\'grey\''}}}"
224 md-font-icon="{{ivrCampaign.active ? 'icon-check' : 'icon-close'}}"
228 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(ivrCampaign, ev) : vm.createOrEditIvrCampaign($event, ivrCampaign)"
232 {{ (vm.trunks | filter : {'id':ivrCampaign.TrunkId} :
236 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(ivrCampaign, ev) : vm.createOrEditIvrCampaign($event, ivrCampaign)"
238 class="SquareProjectId"
240 {{ (vm.projects | filter : {'id':ivrCampaign.SquareProjectId}
244 <td md-cell class="actions">
247 class="md-icon-button"
250 translate-attr-aria-label="MOTIONDIALER.MORE"
251 ng-click="$mdMenu.open($event)"
253 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
256 <md-menu-content width="3">
261 <md-menu-item ng-if="vm.crudPermissions.canEdit">
263 ng-click="vm.editstate(ivrCampaign, $event )"
264 translate="MOTIONDIALER.EDIT_IVRCAMPAIGN"
274 <md-menu-item ng-if="vm.crudPermissions.canEdit">
276 ng-click="vm.clonedialog(ivrCampaign, $event )"
277 translate="MOTIONDIALER.CLONE_IVRCAMPAIGN"
289 ng-click="vm.listadddialog(ivrCampaign, $event )"
290 translate="MOTIONDIALER.LISTADD_IVRCAMPAIGN"
302 ng-click="vm.blacklistadddialog(ivrCampaign, $event )"
303 translate="MOTIONDIALER.BLACKLISTADD_IVRCAMPAIGN"
305 blacklistadd IvrCampaign
313 <md-menu-item ng-if="vm.crudPermissions.canDelete">
315 ng-click="vm.deleteconfirm(ivrCampaign, $event )"
316 translate="MOTIONDIALER.DELETE_IVRCAMPAIGN"
328 ng-click="vm.gotorealtimegoto(ivrCampaign, $event )"
329 translate="MOTIONDIALER.GOTOREALTIME_IVRCAMPAIGN"
331 goToRealtime IvrCampaign
340 </md-table-container>
343 md-label="{page: '{{'MOTIONDIALER.PAGE' | translate}}:', rowsPerPage: '{{'MOTIONDIALER.ROWSPERPAGE' | translate}}:', of: '{{'MOTIONDIALER.OF' | translate}}'}"
344 md-limit="vm.query.limit"
345 md-limit-options="[10, 15, 20, 50, 100, 250]"
346 md-page="vm.query.page"
347 md-total="{{vm.ivrCampaigns.count}}"
348 md-on-paginate="vm.getIvrCampaigns"
350 ></md-table-pagination>
352 <!-- / IVRCAMPAIGN TABLE -->
355 <!-- / NO RESULTS -->
361 <!-- ADD IVRCAMPAIGN BUTTON -->
363 ng-if="vm.crudPermissions.canEdit"
364 class="md-fab md-accent add-item-button"
365 id="add-ivrCampaign-button"
366 ng-click="vm.createOrEditIvrCampaign($event)"
367 aria-label="add ivrCampaign"
369 translate-attr-aria-label="MOTIONDIALER.ADD_IVRCAMPAIGN"
371 <md-icon md-font-icon="icon-plus"></md-icon>
373 <!-- / ADD IVRCAMPAIGN BUTTON -->