1 <div id="dispositions" class="page-layout simple left-sidenav inner-sidenav">
4 class="header md-accent-bg"
6 layout-align="space-between center"
9 <div layout="row" layout-align="start center">
10 <div class="logo" layout="row" layout-align="start center">
11 <span class="logo-icon">
12 <md-icon md-font-icon="icon-auto-fix" class="s24"></md-icon>
14 <span class="logo-text" translate="TOOLS.DISPOSITIONS"
23 class="search-input-wrapper"
25 layout-align="start center"
28 <md-icon md-font-icon="icon-magnify"></md-icon>
30 <md-input-container md-no-float class="m-0">
33 placeholder="Search for anyone"
35 ng-model="vm.query.filter"
36 ng-model-options="{ debounce: 1000 }"
38 translate-attr-placeholder="TOOLS.SEARCH_FOR_ANYONE"
48 ng-show="vm.selectedDispositions.length > 0"
49 class="selected-bar header animate-slide-down md-accent-bg"
51 layout-align="start center"
53 <div class="close-button-wrapper" ng-click="vm.selectedDispositions = []">
54 <md-button layout="row" layout-align="start center">
55 <md-icon md-font-icon="icon-arrow-left" class="mr-8"></md-icon>
56 <span translate="TOOLS.BACK">Back</span>
59 <div flex layout="row" layout-align="space-between center">
61 <span class="selected-dispositions-count">
62 <span>{{vm.selectedDispositions.length}}</span>
63 <span translate="TOOLS.SELECTED">selected</span>
65 <md-menu class="select-menu" ng-if="!vm.currentThread">
67 class="md-icon-button"
68 ng-click="$mdOpenMenu($event)"
69 aria-label="multi select toggle"
71 translate-attr-aria-label="TOOLS.MULTI_SELECT_TOGGLE"
73 <md-icon md-font-icon="icon-menu-down"></md-icon>
75 <md-menu-content width="3">
78 ng-click="vm.selectAllDispositions()"
79 translate="TOOLS.SELECT_ALL"
86 ng-click="vm.deselectDispositions()"
87 translate="TOOLS.SELECT_NONE"
95 <div class="multi-select-actions">
97 class="md-icon-button"
98 ng-csv="vm.exportSelectedDispositions"
100 filename="dispositions.csv"
102 <md-icon md-font-icon="icon-file-excel"></md-icon>
105 class="md-icon-button"
106 ng-if="vm.crudPermissions.canDelete"
107 ng-click="vm.deleteSelectedDispositions($event)"
108 aria-label="delete selected"
110 translate-attr-label="TOOLS.DELETE_SELECTED"
112 <md-icon md-font-icon="icon-delete"></md-icon>
117 <!-- / SELECTED BAR -->
119 <div class="content" md-background-bg layout="row" layout-align="start start">
121 <div class="main scrollable" ms-scroll>
123 <div class="column" flex="20">
127 layout-align="center center"
129 ng-click="vm.query.level = null; vm.getDispositions()"
131 <div layout="row" layout-align="start center">
132 <md-icon md-font-icon="icon-refresh"></md-icon>
134 >{{ 'TOOLS.ALL_DISPOSITIONS' | translate }}</span
142 <md-input-container class="md-block" flex-gt-sm="">
143 <label translate="TOOLS.SELECT_LEVEL">Select a level</label>
145 placeholder="{{ 'TOOLS.SELECT_LEVEL' | translate }}"
146 ng-model="vm.query.level"
147 ng-change="vm.getDispositions()"
149 <md-option ng-value="null"
150 ><em translate="TOOLS.ALL">All</em></md-option
154 ng-repeat="(key, value) in vm.levels"
155 >{{ value }}</md-option
158 </md-input-container>
162 <!-- DISPOSITION TABLE -->
169 ng-model="vm.selectedDispositions"
170 md-progress="vm.promise"
174 md-order="vm.query.sort"
175 md-on-reorder="vm.getDispositions"
178 <th md-column md-order-by="id">
179 {{ 'TOOLS.ID' | translate }}
181 <th md-column md-order-by="level">
182 {{ 'TOOLS.LEVEL' | translate }}
184 <th md-column md-order-by="name">
185 {{ 'TOOLS.NAME' | translate }}
187 <th md-column md-order-by="description">
188 {{ 'TOOLS.DESCRIPTION' | translate }}
190 <th md-column width="10px"></th>
194 <tr md-row ng-hide="vm.dispositions.rows.length">
195 <td md-cell colspan="5">
196 <div layout="row" layout-align="center center">
197 <span translate="TOOLS.NO_AVAILABLE_INFO"
198 >No Available Info</span
205 md-select="disposition"
207 ng-repeat="disposition in vm.dispositions.rows"
209 <td md-cell ng-if="disposition.userpic">
212 alt="{{disposition.name}}"
213 ng-src="api/users/{{disposition.id}}/avatar"
218 ng-if="!disposition.userpic && (vm.table == 'users' || vm.table == 'agents')"
222 alt="{{disposition.name}}"
223 ng-src="assets/images/avatars/profile.png"
227 ng-click="vm.createOrEditDisposition($event, disposition)"
234 ng-click="vm.createOrEditDisposition($event, disposition)"
238 {{ vm.levels[disposition.level] }}
241 ng-click="vm.createOrEditDisposition($event, disposition)"
248 ng-click="vm.createOrEditDisposition($event, disposition)"
252 {{disposition.description}}
257 ng-if="!vm.crudPermissions.readOnly"
261 class="md-icon-button"
264 translate-attr-aria-label="TOOLS.MORE"
265 ng-click="$mdOpenMenu($event)"
267 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
269 <md-menu-content width="3">
272 <md-menu-item ng-if="vm.crudPermissions.canEdit">
274 ng-click="vm.createOrEditDisposition($event, disposition)"
275 translate="TOOLS.EDIT_DISPOSITION"
282 <md-menu-item ng-if="vm.crudPermissions.canDelete">
284 ng-click="vm.deleteconfirm(disposition, $event)"
285 translate="TOOLS.DELETE_DISPOSITION"
296 </md-table-container>
298 md-label="{page: '{{'TOOLS.PAGE' | translate}}:', rowsPerPage: '{{'TOOLS.ROWSPERPAGE' | translate}}:', of: '{{'TOOLS.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.dispositions.count}}"
303 md-on-paginate="vm.getDispositions"
306 </md-table-pagination>
308 <!-- / DISPOSITION TABLE -->
311 <!-- / NO RESULTS -->
316 <!-- ADD DISPOSITION BUTTON -->
318 ng-if="vm.crudPermissions.canEdit"
319 class="md-fab md-accent"
320 id="add-disposition-button"
321 ng-click="vm.createOrEditDisposition($event)"
322 aria-label="add disposition"
324 translate-attr-aria-label="TOOLS.ADD_DISPOSITION"
326 <md-icon md-font-icon="icon-plus"></md-icon>
328 <!-- / ADD DISPOSITION BUTTON -->