2 id="globalCustomFields"
3 class="page-layout simple left-sidenav inner-sidenav"
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-account-circle" class="s24"></md-icon>
17 <span class="logo-text" translate="CONTACTMANAGER.GLOBALCUSTOMFIELDS"
18 >GlobalCustomFields</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="CONTACTMANAGER.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedGlobalCustomFields.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.selectedGlobalCustomFields =[]"
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="CONTACTMANAGER.BACK">Back</span>
68 <div flex layout="row" layout-align="space-between center">
70 <span class="selected-globalCustomFields-count">
71 <span>{{vm.selectedGlobalCustomFields.length}}</span>
72 <span translate="CONTACTMANAGER.SELECTED">selected</span>
75 <md-menu class="select-menu" ng-if="!vm.currentThread">
77 class="md-icon-button"
78 ng-click="$mdOpenMenu($event)"
79 aria-label="multi select toggle"
81 translate-attr-aria-label="CONTACTMANAGER.MULTI_SELECT_TOGGLE"
83 <md-icon md-font-icon="icon-menu-down"></md-icon>
85 <md-menu-content width="3">
88 ng-click="vm.selectAllGlobalCustomFields()"
89 translate="CONTACTMANAGER.SELECT_ALL"
96 ng-click="vm.deselectGlobalCustomFields()"
97 translate="CONTACTMANAGER.SELECT_NONE"
106 <div class="multi-select-actions">
108 class="md-icon-button"
109 ng-csv="vm.exportSelectedGlobalCustomFields"
111 filename="globalCustomFields.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.deleteSelectedGlobalCustomFields($event)"
119 aria-label="delete selected"
121 translate-attr-label="CONTACTMANAGER.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 <!-- GLOBALCUSTOMFIELD TABLE -->
141 ng-model="vm.selectedGlobalCustomFields"
142 md-progress="vm.promise"
146 md-order="vm.query.sort"
147 md-on-reorder="vm.getGlobalCustomFields"
152 ng-if="vm.table == 'users' || vm.table == 'agents'"
155 <th md-column md-order-by="id">
156 {{ 'CONTACTMANAGER.ID' | translate }}
158 <th md-column md-order-by="alias">
159 {{ 'CONTACTMANAGER.ALIAS' | translate }}
161 <th md-column md-order-by="type">
162 {{ 'CONTACTMANAGER.TYPE' | translate }}
164 <th md-column md-order-by="required">
165 {{ 'CONTACTMANAGER.REQUIRED' | translate }}
167 <th md-column width="10px"></th>
171 <tr md-row ng-hide="vm.globalCustomFields.rows.length">
172 <td md-cell colspan="5">
173 <div layout="row" layout-align="center center">
174 <span translate="CONTACTMANAGER.NO_AVAILABLE_INFO"
175 >No Available Info</span
182 md-select="globalCustomField"
184 ng-repeat="globalCustomField in vm.globalCustomFields.rows"
186 <td md-cell ng-if="globalCustomField.userpic">
189 alt="{{globalCustomField.name}}"
190 ng-src="api/users/{{globalCustomField.id}}/avatar"
195 ng-if="!globalCustomField.userpic && (vm.table == 'users' || vm.table == 'agents')"
199 alt="{{globalCustomField.name}}"
200 ng-src="assets/images/avatars/profile.png"
204 ng-click="vm.createOrEditGlobalCustomField($event, globalCustomField)"
208 {{globalCustomField.id}}
211 ng-click="vm.createOrEditGlobalCustomField($event, globalCustomField)"
215 {{globalCustomField.alias}}
218 ng-click="vm.createOrEditGlobalCustomField($event, globalCustomField)"
222 {{ vm.arraytype[globalCustomField.type].option }}
225 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(globalCustomField, ev) : vm.createOrEditGlobalCustomField($event, globalCustomField)"
230 md-colors="{color: {{globalCustomField.required ? '\'green\'' : '\'grey\''}}}"
231 md-font-icon="{{globalCustomField.required ? 'icon-check' : 'icon-close'}}"
238 ng-if="!vm.crudPermissions.readOnly"
242 class="md-icon-button"
245 translate-attr-aria-label="CONTACTMANAGER.MORE"
246 ng-click="$mdOpenMenu($event)"
248 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
251 <md-menu-content width="3">
256 <md-menu-item ng-if="vm.crudPermissions.canEdit">
258 ng-click="vm.editdialog(globalCustomField, $event )"
259 translate="CONTACTMANAGER.EDIT_GLOBALCUSTOMFIELD"
261 Edit GlobalCustomField
269 <md-menu-item ng-if="vm.crudPermissions.canDelete">
271 ng-click="vm.deleteconfirm(globalCustomField, $event )"
272 translate="CONTACTMANAGER.DELETE_GLOBALCUSTOMFIELD"
274 Delete GlobalCustomField
283 </md-table-container>
286 md-label="{page: '{{'CONTACTMANAGER.PAGE' | translate}}:', rowsPerPage: '{{'CONTACTMANAGER.ROWSPERPAGE' | translate}}:', of: '{{'CONTACTMANAGER.OF' | translate}}'}"
287 md-limit="vm.query.limit"
288 md-limit-options="[10, 15, 20, 50, 100, 250]"
289 md-page="vm.query.page"
290 md-total="{{vm.globalCustomFields.count}}"
291 md-on-paginate="vm.getGlobalCustomFields"
293 ></md-table-pagination>
295 <!-- / GLOBALCUSTOMFIELD TABLE -->
298 <!-- / NO RESULTS -->
304 <!-- ADD GLOBALCUSTOMFIELD BUTTON -->
306 ng-if="vm.crudPermissions.canEdit"
307 class="md-fab md-accent"
308 id="add-globalCustomField-button"
309 ng-click="vm.createOrEditGlobalCustomField($event)"
310 aria-label="add globalCustomField"
312 translate-attr-aria-label="CONTACTMANAGER.ADD_GLOBALCUSTOMFIELD"
314 <md-icon md-font-icon="icon-plus"></md-icon>
316 <!-- / ADD GLOBALCUSTOMFIELD BUTTON -->