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-hangouts" class="s24"></md-icon>
17 <span class="logo-text" translate="CHAT.CHATWEBSITES"
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="CHAT.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedChatWebsites.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.selectedChatWebsites =[]">
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="CHAT.BACK">Back</span>
65 <div flex layout="row" layout-align="space-between center">
67 <span class="selected-chatWebsites-count">
68 <span>{{vm.selectedChatWebsites.length}}</span>
69 <span translate="CHAT.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="CHAT.MULTI_SELECT_TOGGLE"
80 <md-icon md-font-icon="icon-menu-down"></md-icon>
82 <md-menu-content width="3">
85 ng-click="vm.selectAllChatWebsites()"
86 translate="CHAT.SELECT_ALL"
93 ng-click="vm.deselectChatWebsites()"
94 translate="CHAT.SELECT_NONE"
103 <div class="multi-select-actions">
105 class="md-icon-button"
106 ng-csv="vm.exportSelectedChatWebsites"
108 filename="chatWebsites.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.deleteSelectedChatWebsites($event)"
116 aria-label="delete selected"
118 translate-attr-label="CHAT.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 <!-- CHATWEBSITE TABLE -->
138 ng-model="vm.selectedChatWebsites"
139 md-progress="vm.promise"
143 md-order="vm.query.sort"
144 md-on-reorder="vm.getChatWebsites"
149 ng-if="vm.table == 'users' || vm.table == 'agents'"
152 <th md-column md-order-by="id">{{ 'CHAT.ID' | translate }}</th>
153 <th md-column md-order-by="name">
154 {{ 'CHAT.NAME' | translate }}
156 <th md-column md-order-by="key">
157 {{ 'CHAT.KEY' | translate }}
159 <th md-column md-order-by="address">
160 {{ 'CHAT.MOTIONADDRESS' | translate }}
162 <th md-column md-order-by="remote">
163 {{ 'CHAT.MOTIONPROXY' | translate }}
165 <th md-column md-order-by="description">
166 {{ 'CHAT.DESCRIPTION' | translate }}
168 <th md-column width="10px"></th>
172 <tr md-row ng-hide="vm.chatWebsites.rows.length">
173 <td md-cell colspan="7">
174 <div layout="row" layout-align="center center">
175 <span translate="CHAT.NO_AVAILABLE_INFO"
176 >No Available Info</span
183 md-select="chatWebsite"
185 ng-repeat="chatWebsite in vm.chatWebsites.rows"
187 <td md-cell ng-if="chatWebsite.userpic">
190 alt="{{chatWebsite.name}}"
191 ng-src="api/users/{{chatWebsite.id}}/avatar"
196 ng-if="!chatWebsite.userpic && (vm.table == 'users' || vm.table == 'agents')"
200 alt="{{chatWebsite.name}}"
201 ng-src="assets/images/avatars/profile.png"
205 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(chatWebsite, ev) : vm.createOrEditChatWebsite($event, chatWebsite)"
212 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(chatWebsite, ev) : vm.createOrEditChatWebsite($event, chatWebsite)"
219 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(chatWebsite, ev) : vm.createOrEditChatWebsite($event, chatWebsite)"
226 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(chatWebsite, ev) : vm.createOrEditChatWebsite($event, chatWebsite)"
230 {{chatWebsite.address}}
233 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(chatWebsite, ev) : vm.createOrEditChatWebsite($event, chatWebsite)"
237 {{chatWebsite.remote}}
240 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(chatWebsite, ev) : vm.createOrEditChatWebsite($event, chatWebsite)"
244 {{chatWebsite.description}}
247 <td md-cell class="actions">
250 class="md-icon-button"
253 translate-attr-aria-label="CHAT.MORE"
254 ng-click="$mdMenu.open($event)"
256 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
259 <md-menu-content width="3">
264 <md-menu-item ng-if="vm.crudPermissions.canEdit">
266 ng-click="vm.editstate(chatWebsite, $event )"
267 translate="CHAT.EDIT_CHATWEBSITE"
279 ng-click="vm.interactionsgoto(chatWebsite, $event )"
280 translate="CHAT.INTERACTIONS_CHATWEBSITE"
282 Interactions ChatWebsite
292 ng-click="vm.offlinemessagesgoto(chatWebsite, $event )"
293 translate="CHAT.OFFLINEMESSAGES_CHATWEBSITE"
295 OfflineMessages ChatWebsite
305 ng-click="vm.agentadddialog(chatWebsite, $event )"
306 translate="CHAT.AGENTADD_CHATWEBSITE"
316 <md-menu-item ng-if="vm.crudPermissions.canDelete">
318 ng-click="vm.deleteconfirm(chatWebsite, $event )"
319 translate="CHAT.DELETE_CHATWEBSITE"
330 </md-table-container>
333 md-label="{page: '{{'CHAT.PAGE' | translate}}:', rowsPerPage: '{{'CHAT.ROWSPERPAGE' | translate}}:', of: '{{'CHAT.OF' | translate}}'}"
334 md-limit="vm.query.limit"
335 md-limit-options="[10, 15, 20, 50, 100, 250]"
336 md-page="vm.query.page"
337 md-total="{{vm.chatWebsites.count}}"
338 md-on-paginate="vm.getChatWebsites"
340 ></md-table-pagination>
342 <!-- / CHATWEBSITE TABLE -->
345 <!-- / NO RESULTS -->
351 <!-- ADD CHATWEBSITE BUTTON -->
353 ng-if="vm.crudPermissions.canEdit"
354 class="md-fab md-accent add-item-button"
355 id="add-chatWebsite-button"
356 ng-click="vm.createOrEditChatWebsite($event)"
357 aria-label="add chatWebsite"
359 translate-attr-aria-label="CHAT.ADD_CHATWEBSITE"
361 <md-icon md-font-icon="icon-plus"></md-icon>
363 <!-- / ADD CHATWEBSITE BUTTON -->