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.MAILSUBSTATUSES"
18 >MailSubstatuses</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="MAIL.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedMailSubstatuses.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.selectedMailSubstatuses =[]">
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-mailSubtatuses-count">
68 <span>{{vm.selectedMailSubstatuses.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.selectAllMailSubstatuses()"
86 translate="MAIL.SELECT_ALL"
93 ng-click="vm.deselectMailSubstatuses()"
94 translate="MAIL.SELECT_NONE"
103 <div class="multi-select-actions">
105 class="md-icon-button"
106 ng-csv="vm.exportSelectedMailSubstatuses"
108 filename="mailSubtatuses.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.deleteSelectedMailSubstatuses($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 <!-- MAILSUBSTATUS TABLE -->
138 ng-model="vm.selectedMailSubstatuses"
139 md-progress="vm.promise"
143 md-order="vm.query.sort"
144 md-on-reorder="vm.getMailSubstatuses"
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="description">
157 {{ 'MAIL.DESCRIPTION' | translate }}
159 <th md-column width="10px"></th>
163 <tr md-row ng-hide="vm.mailSubtatuses.rows.length">
164 <td md-cell colspan="4">
165 <div layout="row" layout-align="center center">
166 <span translate="MAIL.NO_AVAILABLE_INFO"
167 >No Available Info</span
174 md-select="mailSubstatus"
176 ng-repeat="mailSubstatus in vm.mailSubtatuses.rows"
178 <td md-cell ng-if="mailSubstatus.userpic">
181 alt="{{mailSubstatus.name}}"
182 ng-src="api/users/{{mailSubstatus.id}}/avatar"
187 ng-if="!mailSubstatus.userpic && (vm.table == 'users' || vm.table == 'agents')"
191 alt="{{mailSubstatus.name}}"
192 ng-src="assets/images/avatars/profile.png"
196 ng-click="vm.createOrEditMailSubstatus($event, mailSubstatus)"
203 ng-click="vm.createOrEditMailSubstatus($event, mailSubstatus)"
207 {{mailSubstatus.name}}
210 ng-click="vm.createOrEditMailSubstatus($event, mailSubstatus)"
214 {{mailSubstatus.description}}
220 ng-if="!vm.crudPermissions.readOnly"
224 class="md-icon-button"
227 translate-attr-aria-label="MAIL.MORE"
228 ng-click="$mdMenu.open($event)"
230 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
233 <md-menu-content width="3">
238 <md-menu-item ng-if="vm.crudPermissions.canEdit">
240 ng-click="vm.editdialog(mailSubstatus, $event )"
241 translate="MAIL.EDIT_MAILSUBSTATUS"
251 <md-menu-item ng-if="vm.crudPermissions.canDelete">
253 ng-click="vm.deleteconfirm(mailSubstatus, $event )"
254 translate="MAIL.DELETE_MAILSUBSTATUS"
265 </md-table-container>
268 md-label="{page: '{{'MAIL.PAGE' | translate}}:', rowsPerPage: '{{'MAIL.ROWSPERPAGE' | translate}}:', of: '{{'MAIL.OF' | translate}}'}"
269 md-limit="vm.query.limit"
270 md-limit-options="[10, 15, 20, 50, 100, 250]"
271 md-page="vm.query.page"
272 md-total="{{vm.mailSubtatuses.count}}"
273 md-on-paginate="vm.getMailSubstatuses"
275 ></md-table-pagination>
277 <!-- / MAILSUBSTATUS TABLE -->
280 <!-- / NO RESULTS -->
286 <!-- ADD MAILSUBSTATUS BUTTON -->
288 ng-if="vm.crudPermissions.canEdit"
289 class="md-fab md-accent add-item-button"
290 id="add-mailSubstatus-button"
291 ng-click="vm.createOrEditMailSubstatus($event)"
292 aria-label="add mailSubstatus"
294 translate-attr-aria-label="MAIL.ADD_MAILSUBSTATUS"
296 <md-icon md-font-icon="icon-plus"></md-icon>
298 <!-- / ADD MAILSUBSTATUS BUTTON -->