2 id="openchannelAccounts"
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-google-earth" class="s24"></md-icon>
17 <span class="logo-text" translate="OPENCHANNEL.OPENCHANNELACCOUNTS"
18 >OpenchannelAccounts</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="OPENCHANNEL.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedOpenchannelAccounts.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.selectedOpenchannelAccounts =[]"
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="OPENCHANNEL.BACK">Back</span>
68 <div flex layout="row" layout-align="space-between center">
70 <span class="selected-openchannelAccounts-count">
71 <span>{{vm.selectedOpenchannelAccounts.length}}</span>
72 <span translate="OPENCHANNEL.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="OPENCHANNEL.MULTI_SELECT_TOGGLE"
83 <md-icon md-font-icon="icon-menu-down"></md-icon>
85 <md-menu-content width="3">
88 ng-click="vm.selectAllOpenchannelAccounts()"
89 translate="OPENCHANNEL.SELECT_ALL"
96 ng-click="vm.deselectOpenchannelAccounts()"
97 translate="OPENCHANNEL.SELECT_NONE"
106 <div class="multi-select-actions">
108 class="md-icon-button"
109 ng-csv="vm.exportSelectedOpenchannelAccounts"
111 filename="openchannelAccounts.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.deleteSelectedOpenchannelAccounts($event)"
119 aria-label="delete selected"
121 translate-attr-label="OPENCHANNEL.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 <!-- OPENCHANNELACCOUNT TABLE -->
141 ng-model="vm.selectedOpenchannelAccounts"
142 md-progress="vm.promise"
146 md-order="vm.query.sort"
147 md-on-reorder="vm.getOpenchannelAccounts"
152 ng-if="vm.table == 'users' || vm.table == 'agents'"
155 <th md-column md-order-by="id">
156 {{ 'OPENCHANNEL.ID' | translate }}
158 <th md-column md-order-by="name">
159 {{ 'OPENCHANNEL.NAME' | translate }}
161 <th md-column md-order-by="key">
162 {{ 'OPENCHANNEL.KEY' | translate }}
164 <th md-column md-order-by="replyUri">
165 {{ 'OPENCHANNEL.REPLYURI' | translate }}
167 <th md-column md-order-by="ListId">
168 {{ 'OPENCHANNEL.LIST' | translate }}
170 <th md-column md-order-by="description">
171 {{ 'OPENCHANNEL.DESCRIPTION' | translate }}
173 <th md-column width="10px"></th>
177 <tr md-row ng-hide="vm.openchannelAccounts.rows.length">
178 <td md-cell colspan="7">
179 <div layout="row" layout-align="center center">
180 <span translate="OPENCHANNEL.NO_AVAILABLE_INFO"
181 >No Available Info</span
188 md-select="openchannelAccount"
190 ng-repeat="openchannelAccount in vm.openchannelAccounts.rows"
192 <td md-cell ng-if="openchannelAccount.userpic">
195 alt="{{openchannelAccount.name}}"
196 ng-src="api/users/{{openchannelAccount.id}}/avatar"
201 ng-if="!openchannelAccount.userpic && (vm.table == 'users' || vm.table == 'agents')"
205 alt="{{openchannelAccount.name}}"
206 ng-src="assets/images/avatars/profile.png"
210 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(openchannelAccount, ev) : vm.createOrEditOpenchannelAccount($event, openchannelAccount)"
214 {{openchannelAccount.id}}
217 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(openchannelAccount, ev) : vm.createOrEditOpenchannelAccount($event, openchannelAccount)"
221 {{openchannelAccount.name}}
224 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(openchannelAccount, ev) : vm.createOrEditOpenchannelAccount($event, openchannelAccount)"
228 {{openchannelAccount.key}}
231 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(openchannelAccount, ev) : vm.createOrEditOpenchannelAccount($event, openchannelAccount)"
235 {{openchannelAccount.replyUri}}
238 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(openchannelAccount, ev) : vm.createOrEditOpenchannelAccount($event, openchannelAccount)"
242 {{ (vm.lists | filter : {'id':openchannelAccount.ListId} :
246 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(openchannelAccount, ev) : vm.createOrEditOpenchannelAccount($event, openchannelAccount)"
250 {{openchannelAccount.description}}
253 <td md-cell class="actions">
256 class="md-icon-button"
259 translate-attr-aria-label="OPENCHANNEL.MORE"
260 ng-click="$mdMenu.open($event)"
262 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
265 <md-menu-content width="3">
270 <md-menu-item ng-if="vm.crudPermissions.canEdit">
272 ng-click="vm.editstate(openchannelAccount, $event )"
273 translate="OPENCHANNEL.EDIT_OPENCHANNELACCOUNT"
275 Edit OpenchannelAccount
285 ng-click="vm.interactionsgoto(openchannelAccount, $event )"
286 translate="OPENCHANNEL.INTERACTIONS_OPENCHANNELACCOUNT"
288 Interactions OpenchannelAccount
298 ng-click="vm.agentadddialog(openchannelAccount, $event )"
299 translate="OPENCHANNEL.AGENTADD_OPENCHANNELACCOUNT"
301 AgentAdd OpenchannelAccount
309 <md-menu-item ng-if="vm.crudPermissions.canDelete">
311 ng-click="vm.deleteconfirm(openchannelAccount, $event )"
312 translate="OPENCHANNEL.DELETE_OPENCHANNELACCOUNT"
314 Delete OpenchannelAccount
323 </md-table-container>
326 md-label="{page: '{{'OPENCHANNEL.PAGE' | translate}}:', rowsPerPage: '{{'OPENCHANNEL.ROWSPERPAGE' | translate}}:', of: '{{'OPENCHANNEL.OF' | translate}}'}"
327 md-limit="vm.query.limit"
328 md-limit-options="[10, 15, 20, 50, 100, 250]"
329 md-page="vm.query.page"
330 md-total="{{vm.openchannelAccounts.count}}"
331 md-on-paginate="vm.getOpenchannelAccounts"
333 ></md-table-pagination>
335 <!-- / OPENCHANNELACCOUNT TABLE -->
338 <!-- / NO RESULTS -->
344 <!-- ADD OPENCHANNELACCOUNT BUTTON -->
346 ng-if="vm.crudPermissions.canEdit"
347 class="md-fab md-accent add-item-button"
348 id="add-openchannelAccount-button"
349 ng-click="vm.createOrEditOpenchannelAccount($event)"
350 aria-label="add openchannelAccount"
352 translate-attr-aria-label="OPENCHANNEL.ADD_OPENCHANNELACCOUNT"
354 <md-icon md-font-icon="icon-plus"></md-icon>
356 <!-- / ADD OPENCHANNELACCOUNT BUTTON -->