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.SUGARCRMACCOUNTS"
18 >SugarcrmAccounts</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.selectedSugarcrmAccounts.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.selectedSugarcrmAccounts =[]"
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-sugarcrmAccounts-count">
71 <span>{{vm.selectedSugarcrmAccounts.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.selectAllSugarcrmAccounts()"
89 translate="INTEGRATIONS.SELECT_ALL"
96 ng-click="vm.deselectSugarcrmAccounts()"
97 translate="INTEGRATIONS.SELECT_NONE"
106 <div class="multi-select-actions">
108 class="md-icon-button"
109 ng-csv="vm.exportSelectedSugarcrmAccounts"
111 filename="sugarcrmAccounts.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.deleteSelectedSugarcrmAccounts($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 <!-- SUGARCRMACCOUNT TABLE -->
141 ng-model="vm.selectedSugarcrmAccounts"
142 md-progress="vm.promise"
146 md-order="vm.query.sort"
147 md-on-reorder="vm.getSugarcrmAccounts"
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="remoteUri">
165 {{ 'INTEGRATIONS.URI' | translate }}
167 <th md-column width="10px"></th>
171 <tr md-row ng-hide="vm.sugarcrmAccounts.rows.length">
172 <td md-cell colspan="5">
173 <div layout="row" layout-align="center center">
174 <span translate="INTEGRATIONS.NO_AVAILABLE_INFO"
175 >No Available Info</span
182 md-select="sugarcrmAccount"
184 ng-repeat="sugarcrmAccount in vm.sugarcrmAccounts.rows"
186 <td md-cell ng-if="sugarcrmAccount.userpic">
189 alt="{{sugarcrmAccount.name}}"
190 ng-src="api/users/{{sugarcrmAccount.id}}/avatar"
195 ng-if="!sugarcrmAccount.userpic && (vm.table == 'users' || vm.table == 'agents')"
199 alt="{{sugarcrmAccount.name}}"
200 ng-src="assets/images/avatars/profile.png"
204 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(sugarcrmAccount, ev) : vm.createOrEditSugarcrmAccount($event, sugarcrmAccount)"
208 {{sugarcrmAccount.id}}
211 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(sugarcrmAccount, ev) : vm.createOrEditSugarcrmAccount($event, sugarcrmAccount)"
215 {{sugarcrmAccount.name}}
218 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(sugarcrmAccount, ev) : vm.createOrEditSugarcrmAccount($event, sugarcrmAccount)"
222 {{sugarcrmAccount.username}}
225 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(sugarcrmAccount, ev) : vm.createOrEditSugarcrmAccount($event, sugarcrmAccount)"
229 {{sugarcrmAccount.remoteUri}}
232 <td md-cell class="actions">
235 class="md-icon-button"
238 translate-attr-aria-label="INTEGRATIONS.MORE"
239 ng-click="$mdMenu.open($event)"
241 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
244 <md-menu-content width="3">
249 <md-menu-item ng-if="vm.crudPermissions.canEdit">
251 ng-click="vm.editstate(sugarcrmAccount, $event )"
252 translate="INTEGRATIONS.EDIT_SUGARCRMACCOUNT"
264 ng-click="vm.testtestintegrationaccount(sugarcrmAccount, $event )"
265 translate="INTEGRATIONS.TEST_SUGARCRMACCOUNT"
277 ng-click="vm.deleteconfirm(sugarcrmAccount, $event )"
278 translate="INTEGRATIONS.DELETE_SUGARCRMACCOUNT"
280 Delete SugarcrmAccount
289 </md-table-container>
292 md-label="{page: '{{'INTEGRATIONS.PAGE' | translate}}:', rowsPerPage: '{{'INTEGRATIONS.ROWSPERPAGE' | translate}}:', of: '{{'INTEGRATIONS.OF' | translate}}'}"
293 md-limit="vm.query.limit"
294 md-limit-options="[10, 15, 20, 50, 100, 250]"
295 md-page="vm.query.page"
296 md-total="{{vm.sugarcrmAccounts.count}}"
297 md-on-paginate="vm.getSugarcrmAccounts"
299 ></md-table-pagination>
301 <!-- / SUGARCRMACCOUNT TABLE -->
304 <!-- / NO RESULTS -->
310 <!-- ADD SUGARCRMACCOUNT BUTTON -->
312 ng-if="vm.crudPermissions.canEdit"
313 class="md-fab md-accent add-item-button"
314 id="add-sugarcrmAccount-button"
315 ng-click="vm.createOrEditSugarcrmAccount($event)"
316 aria-label="add sugarcrmAccount"
318 translate-attr-aria-label="INTEGRATIONS.ADD_SUGARCRMACCOUNT"
320 <md-icon md-font-icon="icon-plus"></md-icon>
322 <!-- / ADD SUGARCRMACCOUNT BUTTON -->