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.CUSTOMDASHBOARDS"
18 >CustomDashboards</span
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.selectedCustomDashboards.length > 0"
54 class="selected-bar header animate-slide-down md-accent-bg"
56 layout-align="start center"
59 class="close-button-wrapper"
60 ng-click="vm.selectedCustomDashboards =[]"
62 <md-button layout="row" layout-align="start center">
63 <md-icon md-font-icon="icon-arrow-left" class="mr-8"></md-icon>
64 <span translate="TOOLS.BACK">Back</span>
68 <div flex layout="row" layout-align="space-between center">
70 <span class="selected-customDashboards-count">
71 <span>{{vm.selectedCustomDashboards.length}}</span>
72 <span translate="TOOLS.SELECTED">selected</span>
75 <md-menu class="select-menu" ng-if="!vm.currentThread">
77 class="md-icon-button"
78 ng-click="$mdMenu.open($event)"
79 aria-label="multi select toggle"
81 translate-attr-aria-label="TOOLS.MULTI_SELECT_TOGGLE"
83 <md-icon md-font-icon="icon-menu-down"></md-icon>
85 <md-menu-content width="3">
88 ng-click="vm.selectAllCustomDashboards()"
89 translate="TOOLS.SELECT_ALL"
96 ng-click="vm.deselectCustomDashboards()"
97 translate="TOOLS.SELECT_NONE"
106 <div class="multi-select-actions">
108 class="md-icon-button"
109 ng-csv="vm.exportSelectedCustomDashboards"
111 filename="customDashboards.csv"
113 <md-icon md-font-icon="icon-file-excel"></md-icon>
116 class="md-icon-button"
117 ng-if="vm.crudPermissions.canDelete"
118 ng-click="vm.deleteSelectedCustomDashboards($event)"
119 aria-label="delete selected"
121 translate-attr-label="TOOLS.DELETE_SELECTED"
123 <md-icon md-font-icon="icon-delete"></md-icon>
128 <!-- / SELECTED BAR -->
131 <div class="content" md-background-bg layout="row" layout-align="start start">
133 <div class="main scrollable" ms-scroll>
134 <!-- CUSTOMDASHBOARD TABLE -->
141 ng-model="vm.selectedCustomDashboards"
142 md-progress="vm.promise"
146 md-order="vm.query.sort"
147 md-on-reorder="vm.getCustomDashboards"
152 ng-if="vm.table == 'users' || vm.table == 'agents'"
155 <th md-column md-order-by="id">{{ 'TOOLS.ID' | translate }}</th>
156 <th md-column md-order-by="name">
157 {{ 'TOOLS.NAME' | 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.customDashboards.rows.length">
167 <td md-cell colspan="4">
168 <div layout="row" layout-align="center center">
169 <span translate="TOOLS.NO_AVAILABLE_INFO"
170 >No Available Info</span
177 md-select="customDashboard"
179 ng-repeat="customDashboard in vm.customDashboards.rows"
181 <td md-cell ng-if="customDashboard.userpic">
184 alt="{{customDashboard.name}}"
185 ng-src="api/users/{{customDashboard.id}}/avatar"
190 ng-if="!customDashboard.userpic && (vm.table == 'users' || vm.table == 'agents')"
194 alt="{{customDashboard.name}}"
195 ng-src="assets/images/avatars/profile.png"
199 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(customDashboard, ev) : vm.createOrEditCustomDashboard($event, customDashboard)"
203 {{customDashboard.id}}
206 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(customDashboard, ev) : vm.createOrEditCustomDashboard($event, customDashboard)"
210 {{customDashboard.name}}
213 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(customDashboard, ev) : vm.createOrEditCustomDashboard($event, customDashboard)"
217 {{customDashboard.description}}
220 <td md-cell class="actions">
223 class="md-icon-button"
226 translate-attr-aria-label="TOOLS.MORE"
227 ng-click="$mdMenu.open($event)"
229 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
232 <md-menu-content width="3">
237 <md-menu-item ng-if="vm.crudPermissions.canEdit">
239 ng-click="vm.editstate(customDashboard, $event )"
240 translate="TOOLS.EDIT_CUSTOMDASHBOARD"
250 <md-menu-item ng-if="vm.crudPermissions.canEdit">
252 ng-click="vm.clonedialog(customDashboard, $event )"
253 translate="TOOLS.CLONE_CUSTOMDASHBOARD"
255 clone CustomDashboard
265 ng-click="vm.gotodashboardgoto(customDashboard, $event )"
266 translate="TOOLS.GOTODASHBOARD_CUSTOMDASHBOARD"
268 goToDashboard CustomDashboard
276 <md-menu-item ng-if="vm.crudPermissions.canDelete">
278 ng-click="vm.deleteconfirm(customDashboard, $event )"
279 translate="TOOLS.DELETE_CUSTOMDASHBOARD"
281 Delete CustomDashboard
290 </md-table-container>
293 md-label="{page: '{{'TOOLS.PAGE' | translate}}:', rowsPerPage: '{{'TOOLS.ROWSPERPAGE' | translate}}:', of: '{{'TOOLS.OF' | translate}}'}"
294 md-limit="vm.query.limit"
295 md-limit-options="[10, 15, 20, 50, 100, 250]"
296 md-page="vm.query.page"
297 md-total="{{vm.customDashboards.count}}"
298 md-on-paginate="vm.getCustomDashboards"
300 ></md-table-pagination>
302 <!-- / CUSTOMDASHBOARD TABLE -->
305 <!-- / NO RESULTS -->
311 <!-- ADD CUSTOMDASHBOARD BUTTON -->
313 ng-if="vm.crudPermissions.canEdit"
314 class="md-fab md-accent add-item-button"
315 id="add-customDashboard-button"
316 ng-click="vm.createOrEditCustomDashboard($event)"
317 aria-label="add customDashboard"
319 translate-attr-aria-label="TOOLS.ADD_CUSTOMDASHBOARD"
321 <md-icon md-font-icon="icon-plus"></md-icon>
323 <!-- / ADD CUSTOMDASHBOARD BUTTON -->