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-email" class="s24"></md-icon>
17 <span class="logo-text" translate="MAIL.MAILACCOUNTS"
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="MAIL.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedMailAccounts.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.selectedMailAccounts =[]">
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="MAIL.BACK">Back</span>
65 <div flex layout="row" layout-align="space-between center">
67 <span class="selected-mailAccounts-count">
68 <span>{{vm.selectedMailAccounts.length}}</span>
69 <span translate="MAIL.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="MAIL.MULTI_SELECT_TOGGLE"
80 <md-icon md-font-icon="icon-menu-down"></md-icon>
82 <md-menu-content width="3">
85 ng-click="vm.selectAllMailAccounts()"
86 translate="MAIL.SELECT_ALL"
93 ng-click="vm.deselectMailAccounts()"
94 translate="MAIL.SELECT_NONE"
103 <div class="multi-select-actions">
105 class="md-icon-button"
106 ng-csv="vm.exportSelectedMailAccounts"
108 filename="mailAccounts.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.deleteSelectedMailAccounts($event)"
116 aria-label="delete selected"
118 translate-attr-label="MAIL.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 <!-- MAILACCOUNT TABLE -->
138 ng-model="vm.selectedMailAccounts"
139 md-progress="vm.promise"
143 md-order="vm.query.sort"
144 md-on-reorder="vm.getMailAccounts"
149 ng-if="vm.table == 'users' || vm.table == 'agents'"
152 <th md-column md-order-by="id">{{ 'MAIL.ID' | translate }}</th>
153 <th md-column md-order-by="name">
154 {{ 'MAIL.NAME' | translate }}
156 <th md-column md-order-by="key">
157 {{ 'MAIL.KEY' | translate }}
159 <th md-column md-order-by="email">
160 {{ 'MAIL.EMAIL_ADDRESS' | translate }}
162 <th md-column md-order-by="active">
163 {{ 'MAIL.ACTIVE' | translate }}
165 <th md-column md-order-by="description">
166 {{ 'MAIL.DESCRIPTION' | translate }}
168 <th md-column width="10px"></th>
172 <tr md-row ng-hide="vm.mailAccounts.rows.length">
173 <td md-cell colspan="7">
174 <div layout="row" layout-align="center center">
175 <span translate="MAIL.NO_AVAILABLE_INFO"
176 >No Available Info</span
183 md-select="mailAccount"
185 ng-repeat="mailAccount in vm.mailAccounts.rows"
187 <td md-cell ng-if="mailAccount.userpic">
190 alt="{{mailAccount.name}}"
191 ng-src="api/users/{{mailAccount.id}}/avatar"
196 ng-if="!mailAccount.userpic && (vm.table == 'users' || vm.table == 'agents')"
200 alt="{{mailAccount.name}}"
201 ng-src="assets/images/avatars/profile.png"
205 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(mailAccount, ev) : vm.createOrEditMailAccount($event, mailAccount)"
212 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(mailAccount, ev) : vm.createOrEditMailAccount($event, mailAccount)"
219 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(mailAccount, ev) : vm.createOrEditMailAccount($event, mailAccount)"
226 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(mailAccount, ev) : vm.createOrEditMailAccount($event, mailAccount)"
230 {{mailAccount.email}}
233 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(mailAccount, ev) : vm.createOrEditMailAccount($event, mailAccount)"
238 md-colors="{color: {{mailAccount.active ? '\'green\'' : '\'grey\''}}}"
239 md-font-icon="{{mailAccount.active ? 'icon-check' : 'icon-close'}}"
243 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(mailAccount, ev) : vm.createOrEditMailAccount($event, mailAccount)"
247 {{mailAccount.description}}
250 <td md-cell class="actions">
253 class="md-icon-button"
256 translate-attr-aria-label="MAIL.MORE"
257 ng-click="$mdMenu.open($event)"
259 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
262 <md-menu-content width="3">
267 <md-menu-item ng-if="vm.crudPermissions.canEdit">
269 ng-click="vm.editstate(mailAccount, $event )"
270 translate="MAIL.EDIT_MAILACCOUNT"
282 ng-click="vm.verifysmtpverifysmtp(mailAccount, $event )"
283 translate="MAIL.VERIFYSMTP_MAILACCOUNT"
285 verifysmtp MailAccount
295 ng-click="vm.interactionsgoto(mailAccount, $event )"
296 translate="MAIL.INTERACTIONS_MAILACCOUNT"
298 Interactions MailAccount
308 ng-click="vm.gotorealtimegoto(mailAccount, $event )"
309 translate="MAIL.GOTOREALTIME_MAILACCOUNT"
311 goToRealtime MailAccount
321 ng-click="vm.agentadddialog(mailAccount, $event )"
322 translate="MAIL.AGENTADD_MAILACCOUNT"
332 <md-menu-item ng-if="vm.crudPermissions.canDelete">
334 ng-click="vm.deleteconfirm(mailAccount, $event )"
335 translate="MAIL.DELETE_MAILACCOUNT"
346 </md-table-container>
349 md-label="{page: '{{'MAIL.PAGE' | translate}}:', rowsPerPage: '{{'MAIL.ROWSPERPAGE' | translate}}:', of: '{{'MAIL.OF' | translate}}'}"
350 md-limit="vm.query.limit"
351 md-limit-options="[10, 15, 20, 50, 100, 250]"
352 md-page="vm.query.page"
353 md-total="{{vm.mailAccounts.count}}"
354 md-on-paginate="vm.getMailAccounts"
356 ></md-table-pagination>
358 <!-- / MAILACCOUNT TABLE -->
361 <!-- / NO RESULTS -->
367 <!-- ADD MAILACCOUNT BUTTON -->
369 ng-if="vm.crudPermissions.canEdit"
370 class="md-fab md-accent add-item-button"
371 id="add-mailAccount-button"
372 ng-click="vm.createOrEditMailAccount($event)"
373 aria-label="add mailAccount"
375 translate-attr-aria-label="MAIL.ADD_MAILACCOUNT"
377 <md-icon md-font-icon="icon-plus"></md-icon>
379 <!-- / ADD MAILACCOUNT BUTTON -->