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-chart-line" class="s24"></md-icon>
17 <span class="logo-text" translate="ANALYTICS.EXTRACTEDREPORTS"
18 >ExtractedReports</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="ANALYTICS.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedExtractedReports.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.selectedExtractedReports =[]"
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="ANALYTICS.BACK">Back</span>
68 <div flex layout="row" layout-align="space-between center">
70 <span class="selected-extractedReports-count">
71 <span>{{vm.selectedExtractedReports.length}}</span>
72 <span translate="ANALYTICS.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="ANALYTICS.MULTI_SELECT_TOGGLE"
83 <md-icon md-font-icon="icon-menu-down"></md-icon>
85 <md-menu-content width="3">
88 ng-click="vm.selectAllExtractedReports()"
89 translate="ANALYTICS.SELECT_ALL"
96 ng-click="vm.deselectExtractedReports()"
97 translate="ANALYTICS.SELECT_NONE"
106 <div class="multi-select-actions">
108 class="md-icon-button"
109 ng-csv="vm.exportSelectedExtractedReports"
111 filename="extractedReports.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.deleteSelectedExtractedReports($event)"
119 aria-label="delete selected"
121 translate-attr-label="ANALYTICS.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 <!-- EXTRACTEDREPORT TABLE -->
141 ng-model="vm.selectedExtractedReports"
142 md-progress="vm.promise"
146 md-order="vm.query.sort"
147 md-on-reorder="vm.getExtractedReports"
152 ng-if="vm.table == 'users' || vm.table == 'agents'"
155 <th md-column md-order-by="id">
156 {{ 'ANALYTICS.ID' | translate }}
158 <th md-column md-order-by="name">
159 {{ 'ANALYTICS.REPORTNAME' | translate }}
161 <th md-column md-order-by="basename">
162 {{ 'ANALYTICS.NAME' | translate }}
164 <th md-column md-order-by="type">
165 {{ 'ANALYTICS.TYPE' | translate }}
167 <th md-column md-order-by="startDate">
168 {{ 'ANALYTICS.DATE_RANGE_FROM' | translate }}
170 <th md-column md-order-by="endDate">
171 {{ 'ANALYTICS.DATE_RANGE_TO' | translate }}
173 <th md-column md-order-by="createdAt">
174 {{ 'ANALYTICS.GENERATED_AT' | translate }}
176 <th md-column md-order-by="status">
177 {{ 'ANALYTICS.STATUS' | translate }}
179 <th md-column md-order-by="output">
180 {{ 'ANALYTICS.OUTPUT' | translate }}
182 <th md-column width="10px"></th>
186 <tr md-row ng-hide="vm.extractedReports.rows.length">
187 <td md-cell colspan="10">
188 <div layout="row" layout-align="center center">
189 <span translate="ANALYTICS.NO_AVAILABLE_INFO"
190 >No Available Info</span
197 md-select="extractedReport"
199 ng-repeat="extractedReport in vm.extractedReports.rows"
201 <td md-cell ng-if="extractedReport.userpic">
204 alt="{{extractedReport.name}}"
205 ng-src="api/users/{{extractedReport.id}}/avatar"
210 ng-if="!extractedReport.userpic && (vm.table == 'users' || vm.table == 'agents')"
214 alt="{{extractedReport.name}}"
215 ng-src="assets/images/avatars/profile.png"
219 ng-click="vm.createOrEditExtractedReport($event, extractedReport)"
223 {{extractedReport.id}}
226 ng-click="vm.createOrEditExtractedReport($event, extractedReport)"
230 {{extractedReport.name}}
233 ng-click="vm.createOrEditExtractedReport($event, extractedReport)"
237 {{extractedReport.basename}}
240 ng-click="vm.createOrEditExtractedReport($event, extractedReport)"
244 {{extractedReport.type}}
247 ng-click="vm.createOrEditExtractedReport($event, extractedReport)"
251 {{extractedReport.startDate | date:'medium' }}
254 ng-click="vm.createOrEditExtractedReport($event, extractedReport)"
258 {{extractedReport.endDate | date:'medium' }}
261 ng-click="vm.createOrEditExtractedReport($event, extractedReport)"
265 {{extractedReport.createdAt | date:'medium' }}
268 ng-click="vm.createOrEditExtractedReport($event, extractedReport)"
272 {{extractedReport.status}}
275 ng-click="vm.createOrEditExtractedReport($event, extractedReport)"
279 {{extractedReport.output}}
282 <td md-cell class="actions">
285 class="md-icon-button"
288 translate-attr-aria-label="ANALYTICS.MORE"
289 ng-click="$mdMenu.open($event)"
291 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
294 <md-menu-content width="3">
299 <md-menu-item ng-if="vm.crudPermissions.canEdit">
301 ng-click="vm.editdialog(extractedReport, $event )"
302 translate="ANALYTICS.EDIT_EXTRACTEDREPORT"
313 ng-if="extractedReport.status == 'Completed'"
316 ng-click="vm.downloadfile2(extractedReport, $event , 'analytics/extracted_reports' )"
317 translate="ANALYTICS.DOWNLOAD_EXTRACTEDREPORT"
319 Download ExtractedReport
327 <md-menu-item ng-if="vm.crudPermissions.canDelete">
329 ng-click="vm.deleteconfirm(extractedReport, $event )"
330 translate="ANALYTICS.DELETE_EXTRACTEDREPORT"
332 Delete ExtractedReport
341 </md-table-container>
344 md-label="{page: '{{'ANALYTICS.PAGE' | translate}}:', rowsPerPage: '{{'ANALYTICS.ROWSPERPAGE' | translate}}:', of: '{{'ANALYTICS.OF' | translate}}'}"
345 md-limit="vm.query.limit"
346 md-limit-options="[10, 15, 20, 50, 100, 250]"
347 md-page="vm.query.page"
348 md-total="{{vm.extractedReports.count}}"
349 md-on-paginate="vm.getExtractedReports"
351 ></md-table-pagination>
353 <!-- / EXTRACTEDREPORT TABLE -->
356 <!-- / NO RESULTS -->
362 <!-- NO ADD BUTTON BUTTON -->