2 id="servicenowAccounts"
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-heart" class="s24"></md-icon>
17 <span class="logo-text" translate="INTEGRATIONS.SERVICENOWACCOUNTS"
18 >ServicenowAccounts</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="INTEGRATIONS.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedServicenowAccounts.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.selectedServicenowAccounts =[]"
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="INTEGRATIONS.BACK">Back</span>
68 <div flex layout="row" layout-align="space-between center">
70 <span class="selected-servicenowAccounts-count">
71 <span>{{vm.selectedServicenowAccounts.length}}</span>
72 <span translate="INTEGRATIONS.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="INTEGRATIONS.MULTI_SELECT_TOGGLE"
83 <md-icon md-font-icon="icon-menu-down"></md-icon>
85 <md-menu-content width="3">
88 ng-click="vm.selectAllServicenowAccounts()"
89 translate="INTEGRATIONS.SELECT_ALL"
96 ng-click="vm.deselectServicenowAccounts()"
97 translate="INTEGRATIONS.SELECT_NONE"
106 <div class="multi-select-actions">
108 class="md-icon-button"
109 ng-csv="vm.exportSelectedServicenowAccounts"
111 filename="servicenowAccounts.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.deleteSelectedServicenowAccounts($event)"
119 aria-label="delete selected"
121 translate-attr-label="INTEGRATIONS.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 <!-- SERVICENOWACCOUNT TABLE -->
141 ng-model="vm.selectedServicenowAccounts"
142 md-progress="vm.promise"
146 md-order="vm.query.sort"
147 md-on-reorder="vm.getServicenowAccounts"
152 ng-if="vm.table == 'users' || vm.table == 'agents'"
155 <th md-column md-order-by="id">
156 {{ 'INTEGRATIONS.ID' | translate }}
158 <th md-column md-order-by="name">
159 {{ 'INTEGRATIONS.NAME' | translate }}
161 <th md-column md-order-by="username">
162 {{ 'INTEGRATIONS.USERNAME' | translate }}
164 <th md-column md-order-by="email">
165 {{ 'INTEGRATIONS.EMAIL' | translate }}
167 <th md-column md-order-by="remoteUri">
168 {{ 'INTEGRATIONS.HOST' | translate }}
170 <th md-column width="10px"></th>
174 <tr md-row ng-hide="vm.servicenowAccounts.rows.length">
175 <td md-cell colspan="6">
176 <div layout="row" layout-align="center center">
177 <span translate="INTEGRATIONS.NO_AVAILABLE_INFO"
178 >No Available Info</span
185 md-select="servicenowAccount"
187 ng-repeat="servicenowAccount in vm.servicenowAccounts.rows"
189 <td md-cell ng-if="servicenowAccount.userpic">
192 alt="{{servicenowAccount.name}}"
193 ng-src="api/users/{{servicenowAccount.id}}/avatar"
198 ng-if="!servicenowAccount.userpic && (vm.table == 'users' || vm.table == 'agents')"
202 alt="{{servicenowAccount.name}}"
203 ng-src="assets/images/avatars/profile.png"
207 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(servicenowAccount, ev) : vm.createOrEditServicenowAccount($event, servicenowAccount)"
211 {{servicenowAccount.id}}
214 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(servicenowAccount, ev) : vm.createOrEditServicenowAccount($event, servicenowAccount)"
218 {{servicenowAccount.name}}
221 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(servicenowAccount, ev) : vm.createOrEditServicenowAccount($event, servicenowAccount)"
225 {{servicenowAccount.username}}
228 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(servicenowAccount, ev) : vm.createOrEditServicenowAccount($event, servicenowAccount)"
232 {{servicenowAccount.email}}
235 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(servicenowAccount, ev) : vm.createOrEditServicenowAccount($event, servicenowAccount)"
239 {{servicenowAccount.remoteUri}}
242 <td md-cell class="actions">
245 class="md-icon-button"
248 translate-attr-aria-label="INTEGRATIONS.MORE"
249 ng-click="$mdMenu.open($event)"
251 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
254 <md-menu-content width="3">
259 <md-menu-item ng-if="vm.crudPermissions.canEdit">
261 ng-click="vm.editstate(servicenowAccount, $event )"
262 translate="INTEGRATIONS.EDIT_SERVICENOWACCOUNT"
264 Edit ServicenowAccount
274 ng-click="vm.testtestintegrationaccount(servicenowAccount, $event )"
275 translate="INTEGRATIONS.TEST_SERVICENOWACCOUNT"
277 Test ServicenowAccount
286 ng-if="vm.currentUser.crudPermissions === 0 || vm.currentUser.role === 'admin'"
289 ng-click="vm.deleteconfirm(servicenowAccount, $event )"
290 translate="INTEGRATIONS.DELETE_SERVICENOWACCOUNT"
292 Delete ServicenowAccount
301 </md-table-container>
304 md-label="{page: '{{'INTEGRATIONS.PAGE' | translate}}:', rowsPerPage: '{{'INTEGRATIONS.ROWSPERPAGE' | translate}}:', of: '{{'INTEGRATIONS.OF' | translate}}'}"
305 md-limit="vm.query.limit"
306 md-limit-options="[10, 15, 20, 50, 100, 250]"
307 md-page="vm.query.page"
308 md-total="{{vm.servicenowAccounts.count}}"
309 md-on-paginate="vm.getServicenowAccounts"
311 ></md-table-pagination>
313 <!-- / SERVICENOWACCOUNT TABLE -->
316 <!-- / NO RESULTS -->
322 <!-- ADD SERVICENOWACCOUNT BUTTON -->
324 ng-if="vm.crudPermissions.canEdit"
325 class="md-fab md-accent add-item-button"
326 id="add-servicenowAccount-button"
327 ng-click="vm.createOrEditServicenowAccount($event)"
328 aria-label="add servicenowAccount"
330 translate-attr-aria-label="INTEGRATIONS.ADD_SERVICENOWACCOUNT"
332 <md-icon md-font-icon="icon-plus"></md-icon>
334 <!-- / ADD SERVICENOWACCOUNT BUTTON -->