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.VTIGERACCOUNTS"
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.selectedVtigerAccounts.length > 0"
54 class="selected-bar header animate-slide-down md-accent-bg"
56 layout-align="start center"
58 <div class="close-button-wrapper" ng-click="vm.selectedVtigerAccounts =[]">
59 <md-button layout="row" layout-align="start center">
60 <md-icon md-font-icon="icon-arrow-left" class="mr-8"></md-icon>
61 <span translate="INTEGRATIONS.BACK">Back</span>
65 <div flex layout="row" layout-align="space-between center">
67 <span class="selected-vtigerAccounts-count">
68 <span>{{vm.selectedVtigerAccounts.length}}</span>
69 <span translate="INTEGRATIONS.SELECTED">selected</span>
72 <md-menu class="select-menu" ng-if="!vm.currentThread">
74 class="md-icon-button"
75 ng-click="$mdMenu.open($event)"
76 aria-label="multi select toggle"
78 translate-attr-aria-label="INTEGRATIONS.MULTI_SELECT_TOGGLE"
80 <md-icon md-font-icon="icon-menu-down"></md-icon>
82 <md-menu-content width="3">
85 ng-click="vm.selectAllVtigerAccounts()"
86 translate="INTEGRATIONS.SELECT_ALL"
93 ng-click="vm.deselectVtigerAccounts()"
94 translate="INTEGRATIONS.SELECT_NONE"
103 <div class="multi-select-actions">
105 class="md-icon-button"
106 ng-csv="vm.exportSelectedVtigerAccounts"
108 filename="vtigerAccounts.csv"
110 <md-icon md-font-icon="icon-file-excel"></md-icon>
113 class="md-icon-button"
114 ng-if="vm.crudPermissions.canDelete"
115 ng-click="vm.deleteSelectedVtigerAccounts($event)"
116 aria-label="delete selected"
118 translate-attr-label="INTEGRATIONS.DELETE_SELECTED"
120 <md-icon md-font-icon="icon-delete"></md-icon>
125 <!-- / SELECTED BAR -->
128 <div class="content" md-background-bg layout="row" layout-align="start start">
130 <div class="main scrollable" ms-scroll>
131 <!-- VTIGERACCOUNT TABLE -->
138 ng-model="vm.selectedVtigerAccounts"
139 md-progress="vm.promise"
143 md-order="vm.query.sort"
144 md-on-reorder="vm.getVtigerAccounts"
149 ng-if="vm.table == 'users' || vm.table == 'agents'"
152 <th md-column md-order-by="id">
153 {{ 'INTEGRATIONS.ID' | translate }}
155 <th md-column md-order-by="name">
156 {{ 'INTEGRATIONS.NAME' | translate }}
158 <th md-column md-order-by="username">
159 {{ 'INTEGRATIONS.VTIGER_USER_NAME' | translate }}
161 <th md-column md-order-by="remoteUri">
162 {{ 'INTEGRATIONS.HOST' | translate }}
164 <th md-column width="10px"></th>
168 <tr md-row ng-hide="vm.vtigerAccounts.rows.length">
169 <td md-cell colspan="5">
170 <div layout="row" layout-align="center center">
171 <span translate="INTEGRATIONS.NO_AVAILABLE_INFO"
172 >No Available Info</span
179 md-select="vtigerAccount"
181 ng-repeat="vtigerAccount in vm.vtigerAccounts.rows"
183 <td md-cell ng-if="vtigerAccount.userpic">
186 alt="{{vtigerAccount.name}}"
187 ng-src="api/users/{{vtigerAccount.id}}/avatar"
192 ng-if="!vtigerAccount.userpic && (vm.table == 'users' || vm.table == 'agents')"
196 alt="{{vtigerAccount.name}}"
197 ng-src="assets/images/avatars/profile.png"
201 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(vtigerAccount, ev) : vm.createOrEditVtigerAccount($event, vtigerAccount)"
208 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(vtigerAccount, ev) : vm.createOrEditVtigerAccount($event, vtigerAccount)"
212 {{vtigerAccount.name}}
215 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(vtigerAccount, ev) : vm.createOrEditVtigerAccount($event, vtigerAccount)"
219 {{vtigerAccount.username}}
222 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(vtigerAccount, ev) : vm.createOrEditVtigerAccount($event, vtigerAccount)"
226 {{vtigerAccount.remoteUri}}
229 <td md-cell class="actions">
232 class="md-icon-button"
235 translate-attr-aria-label="INTEGRATIONS.MORE"
236 ng-click="$mdMenu.open($event)"
238 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
241 <md-menu-content width="3">
246 <md-menu-item ng-if="vm.crudPermissions.canEdit">
248 ng-click="vm.editstate(vtigerAccount, $event )"
249 translate="INTEGRATIONS.EDIT_VTIGERACCOUNT"
261 ng-click="vm.testtestintegrationaccount(vtigerAccount, $event )"
262 translate="INTEGRATIONS.TEST_VTIGERACCOUNT"
272 <md-menu-item ng-if="vm.crudPermissions.canDelete">
274 ng-click="vm.deleteconfirm(vtigerAccount, $event )"
275 translate="INTEGRATIONS.DELETE_VTIGERACCOUNT"
286 </md-table-container>
289 md-label="{page: '{{'INTEGRATIONS.PAGE' | translate}}:', rowsPerPage: '{{'INTEGRATIONS.ROWSPERPAGE' | translate}}:', of: '{{'INTEGRATIONS.OF' | translate}}'}"
290 md-limit="vm.query.limit"
291 md-limit-options="[10, 15, 20, 50, 100, 250]"
292 md-page="vm.query.page"
293 md-total="{{vm.vtigerAccounts.count}}"
294 md-on-paginate="vm.getVtigerAccounts"
296 ></md-table-pagination>
298 <!-- / VTIGERACCOUNT TABLE -->
301 <!-- / NO RESULTS -->
307 <!-- ADD VTIGERACCOUNT BUTTON -->
309 ng-if="vm.crudPermissions.canEdit"
310 class="md-fab md-accent add-item-button"
311 id="add-vtigerAccount-button"
312 ng-click="vm.createOrEditVtigerAccount($event)"
313 aria-label="add vtigerAccount"
315 translate-attr-aria-label="INTEGRATIONS.ADD_VTIGERACCOUNT"
317 <md-icon md-font-icon="icon-plus"></md-icon>
319 <!-- / ADD VTIGERACCOUNT BUTTON -->