2 id="salesforceAccounts"
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.SALESFORCEACCOUNTS"
18 >SalesforceAccounts</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.selectedSalesforceAccounts.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.selectedSalesforceAccounts =[]"
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-salesforceAccounts-count">
71 <span>{{vm.selectedSalesforceAccounts.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.selectAllSalesforceAccounts()"
89 translate="INTEGRATIONS.SELECT_ALL"
96 ng-click="vm.deselectSalesforceAccounts()"
97 translate="INTEGRATIONS.SELECT_NONE"
106 <div class="multi-select-actions">
108 class="md-icon-button"
109 ng-csv="vm.exportSelectedSalesforceAccounts"
111 filename="salesforceAccounts.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.deleteSelectedSalesforceAccounts($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 <!-- SALESFORCEACCOUNT TABLE -->
141 ng-model="vm.selectedSalesforceAccounts"
142 md-progress="vm.promise"
146 md-order="vm.query.sort"
147 md-on-reorder="vm.getSalesforceAccounts"
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.salesforceAccounts.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="salesforceAccount"
184 ng-repeat="salesforceAccount in vm.salesforceAccounts.rows"
186 <td md-cell ng-if="salesforceAccount.userpic">
189 alt="{{salesforceAccount.name}}"
190 ng-src="api/users/{{salesforceAccount.id}}/avatar"
195 ng-if="!salesforceAccount.userpic && (vm.table == 'users' || vm.table == 'agents')"
199 alt="{{salesforceAccount.name}}"
200 ng-src="assets/images/avatars/profile.png"
204 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(salesforceAccount, ev) : vm.createOrEditSalesforceAccount($event, salesforceAccount)"
208 {{salesforceAccount.id}}
211 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(salesforceAccount, ev) : vm.createOrEditSalesforceAccount($event, salesforceAccount)"
215 {{salesforceAccount.name}}
218 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(salesforceAccount, ev) : vm.createOrEditSalesforceAccount($event, salesforceAccount)"
222 {{salesforceAccount.username}}
225 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(salesforceAccount, ev) : vm.createOrEditSalesforceAccount($event, salesforceAccount)"
229 {{salesforceAccount.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(salesforceAccount, $event )"
252 translate="INTEGRATIONS.EDIT_SALESFORCEACCOUNT"
254 Edit SalesforceAccount
264 ng-click="vm.testtestintegrationaccount(salesforceAccount, $event )"
265 translate="INTEGRATIONS.TEST_SALESFORCEACCOUNT"
267 Test SalesforceAccount
275 <md-menu-item ng-if="vm.crudPermissions.canDelete">
277 ng-click="vm.deleteconfirm(salesforceAccount, $event )"
278 translate="INTEGRATIONS.DELETE_SALESFORCEACCOUNT"
280 Delete SalesforceAccount
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.salesforceAccounts.count}}"
297 md-on-paginate="vm.getSalesforceAccounts"
299 ></md-table-pagination>
301 <!-- / SALESFORCEACCOUNT TABLE -->
304 <!-- / NO RESULTS -->
310 <!-- ADD SALESFORCEACCOUNT BUTTON -->
312 ng-if="vm.crudPermissions.canEdit"
313 class="md-fab md-accent add-item-button"
314 id="add-salesforceAccount-button"
315 ng-click="vm.createOrEditSalesforceAccount($event)"
316 aria-label="add salesforceAccount"
318 translate-attr-aria-label="INTEGRATIONS.ADD_SALESFORCEACCOUNT"
320 <md-icon md-font-icon="icon-plus"></md-icon>
322 <!-- / ADD SALESFORCEACCOUNT BUTTON -->