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-auto-fix" class="s24"></md-icon>
17 <span class="logo-text" translate="TOOLS.CANNEDANSWERS"
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="TOOLS.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedCannedAnswers.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.selectedCannedAnswers =[]">
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="TOOLS.BACK">Back</span>
65 <div flex layout="row" layout-align="space-between center">
67 <span class="selected-cannedAnswers-count">
68 <span>{{vm.selectedCannedAnswers.length}}</span>
69 <span translate="TOOLS.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="TOOLS.MULTI_SELECT_TOGGLE"
80 <md-icon md-font-icon="icon-menu-down"></md-icon>
82 <md-menu-content width="3">
85 ng-click="vm.selectAllCannedAnswers()"
86 translate="TOOLS.SELECT_ALL"
93 ng-click="vm.deselectCannedAnswers()"
94 translate="TOOLS.SELECT_NONE"
103 <div class="multi-select-actions">
105 class="md-icon-button"
106 ng-csv="vm.exportSelectedCannedAnswers"
108 filename="cannedAnswers.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.deleteSelectedCannedAnswers($event)"
116 aria-label="delete selected"
118 translate-attr-label="TOOLS.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 <!-- CANNEDANSWER TABLE -->
138 ng-model="vm.selectedCannedAnswers"
139 md-progress="vm.promise"
143 md-order="vm.query.sort"
144 md-on-reorder="vm.getCannedAnswers"
149 ng-if="vm.table == 'users' || vm.table == 'agents'"
152 <th md-column md-order-by="id">{{ 'TOOLS.ID' | translate }}</th>
153 <th md-column md-order-by="key">
154 {{ 'TOOLS.KEY' | translate }}
156 <th md-column md-order-by="value">
157 {{ 'TOOLS.VALUE' | translate }}
159 <th md-column md-order-by="description">
160 {{ 'TOOLS.DESCRIPTION' | translate }}
162 <th md-column width="10px"></th>
166 <tr md-row ng-hide="vm.cannedAnswers.rows.length">
167 <td md-cell colspan="5">
168 <div layout="row" layout-align="center center">
169 <span translate="TOOLS.NO_AVAILABLE_INFO"
170 >No Available Info</span
177 md-select="cannedAnswer"
179 ng-repeat="cannedAnswer in vm.cannedAnswers.rows"
181 <td md-cell ng-if="cannedAnswer.userpic">
184 alt="{{cannedAnswer.name}}"
185 ng-src="api/users/{{cannedAnswer.id}}/avatar"
190 ng-if="!cannedAnswer.userpic && (vm.table == 'users' || vm.table == 'agents')"
194 alt="{{cannedAnswer.name}}"
195 ng-src="assets/images/avatars/profile.png"
199 ng-click="vm.createOrEditCannedAnswer($event, cannedAnswer)"
206 ng-click="vm.createOrEditCannedAnswer($event, cannedAnswer)"
213 ng-click="vm.createOrEditCannedAnswer($event, cannedAnswer)"
217 {{cannedAnswer.value}}
220 ng-click="vm.createOrEditCannedAnswer($event, cannedAnswer)"
224 {{cannedAnswer.description}}
230 ng-if="!vm.crudPermissions.readOnly"
234 class="md-icon-button"
237 translate-attr-aria-label="TOOLS.MORE"
238 ng-click="$mdMenu.open($event)"
240 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
243 <md-menu-content width="3">
248 <md-menu-item ng-if="vm.crudPermissions.canEdit">
250 ng-click="vm.editdialog(cannedAnswer, $event )"
251 translate="TOOLS.EDIT_CANNEDANSWER"
261 <md-menu-item ng-if="vm.crudPermissions.canDelete">
263 ng-click="vm.deleteconfirm(cannedAnswer, $event )"
264 translate="TOOLS.DELETE_CANNEDANSWER"
275 </md-table-container>
278 md-label="{page: '{{'TOOLS.PAGE' | translate}}:', rowsPerPage: '{{'TOOLS.ROWSPERPAGE' | translate}}:', of: '{{'TOOLS.OF' | translate}}'}"
279 md-limit="vm.query.limit"
280 md-limit-options="[10, 15, 20, 50, 100, 250]"
281 md-page="vm.query.page"
282 md-total="{{vm.cannedAnswers.count}}"
283 md-on-paginate="vm.getCannedAnswers"
285 ></md-table-pagination>
287 <!-- / CANNEDANSWER TABLE -->
290 <!-- / NO RESULTS -->
296 <!-- ADD CANNEDANSWER BUTTON -->
298 ng-if="vm.crudPermissions.canEdit"
299 class="md-fab md-accent add-item-button"
300 id="add-cannedAnswer-button"
301 ng-click="vm.createOrEditCannedAnswer($event)"
302 aria-label="add cannedAnswer"
304 translate-attr-aria-label="TOOLS.ADD_CANNEDANSWER"
306 <md-icon md-font-icon="icon-plus"></md-icon>
308 <!-- / ADD CANNEDANSWER BUTTON -->