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