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-sitemap" class="s24"></md-icon>
17 <span class="logo-text" translate="CALLYSQUARE.SQUARERECORDINGS"
18 >SquareRecordings</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="CALLYSQUARE.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedSquareRecordings.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.selectedSquareRecordings =[]"
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="CALLYSQUARE.BACK">Back</span>
68 <div flex layout="row" layout-align="space-between center">
70 <span class="selected-squareRecordings-count">
71 <span>{{vm.selectedSquareRecordings.length}}</span>
72 <span translate="CALLYSQUARE.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="CALLYSQUARE.MULTI_SELECT_TOGGLE"
83 <md-icon md-font-icon="icon-menu-down"></md-icon>
85 <md-menu-content width="3">
88 ng-click="vm.selectAllSquareRecordings()"
89 translate="CALLYSQUARE.SELECT_ALL"
96 ng-click="vm.deselectSquareRecordings()"
97 translate="CALLYSQUARE.SELECT_NONE"
106 <div class="multi-select-actions">
108 class="md-icon-button"
109 ng-csv="vm.exportSelectedSquareRecordings"
111 filename="squareRecordings.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.deleteSelectedSquareRecordings($event)"
119 aria-label="delete selected"
121 translate-attr-label="CALLYSQUARE.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 <!-- SQUARERECORDING TABLE -->
141 ng-model="vm.selectedSquareRecordings"
142 md-progress="vm.promise"
146 md-order="vm.query.sort"
147 md-on-reorder="vm.getSquareRecordings"
152 ng-if="vm.table == 'users' || vm.table == 'agents'"
155 <th md-column md-order-by="filename">
156 {{ 'CALLYSQUARE.FILENAME' | translate }}
158 <th md-column md-order-by="projectName">
159 {{ 'CALLYSQUARE.PROJECT' | translate }}
161 <th md-column md-order-by="uniqueid">
162 {{ 'CALLYSQUARE.UNIQUEID' | translate }}
164 <th md-column md-order-by="callerid">
165 {{ 'CALLYSQUARE.PHONE' | translate }}
167 <th md-column md-order-by="extension">
168 {{ 'CALLYSQUARE.EXTEN' | translate }}
170 <th md-column md-order-by="audio">
171 {{ 'CALLYSQUARE.AUDIO' | translate }}
173 <th md-column md-order-by="createdAt">
174 {{ 'CALLYSQUARE.CREATED_AT' | translate }}
176 <th md-column width="10px"></th>
180 <tr md-row ng-hide="vm.squareRecordings.rows.length">
181 <td md-cell colspan="8">
182 <div layout="row" layout-align="center center">
183 <span translate="CALLYSQUARE.NO_AVAILABLE_INFO"
184 >No Available Info</span
191 md-select="squareRecording"
193 ng-repeat="squareRecording in vm.squareRecordings.rows"
195 <td md-cell ng-if="squareRecording.userpic">
198 alt="{{squareRecording.name}}"
199 ng-src="api/users/{{squareRecording.id}}/avatar"
204 ng-if="!squareRecording.userpic && (vm.table == 'users' || vm.table == 'agents')"
208 alt="{{squareRecording.name}}"
209 ng-src="assets/images/avatars/profile.png"
213 ng-click="vm.createOrEditSquareRecording($event, squareRecording)"
217 {{squareRecording.filename}}
220 ng-click="vm.createOrEditSquareRecording($event, squareRecording)"
224 {{squareRecording.projectName}}
227 ng-click="vm.createOrEditSquareRecording($event, squareRecording)"
231 {{squareRecording.uniqueid}}
234 ng-click="vm.createOrEditSquareRecording($event, squareRecording)"
238 {{squareRecording.callerid}}
241 ng-click="vm.createOrEditSquareRecording($event, squareRecording)"
245 {{squareRecording.extension}}
247 <td md-cell class="audio" ng-switch="squareRecording.format">
248 <!-- audio recording directive -->
250 ng-switch-when=".wav"
251 id="squareRecording.id"
253 <!-- / audio recording directive -->
254 <span ng-switch-when=".gsm|.WAV" ng-switch-when-separator="|">
255 <em>{{ 'VOICE.CANT_PLAY_GSM_AUDIO_FILES' | translate }}</em>
259 ng-click="vm.createOrEditSquareRecording($event, squareRecording)"
263 {{squareRecording.createdAt | date:'medium' }}
266 <td md-cell class="actions">
269 class="md-icon-button"
272 translate-attr-aria-label="CALLYSQUARE.MORE"
273 ng-click="$mdMenu.open($event)"
275 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
278 <md-menu-content width="3">
285 ng-click="vm.downloadfile2(squareRecording, $event , 'square/recordings' )"
286 translate="CALLYSQUARE.DOWNLOAD_SQUARERECORDING"
288 Download SquareRecording
296 <md-menu-item ng-if="vm.crudPermissions.canDelete">
298 ng-click="vm.deleteconfirm(squareRecording, $event )"
299 translate="CALLYSQUARE.DELETE_SQUARERECORDING"
301 Delete SquareRecording
310 </md-table-container>
313 md-label="{page: '{{'CALLYSQUARE.PAGE' | translate}}:', rowsPerPage: '{{'CALLYSQUARE.ROWSPERPAGE' | translate}}:', of: '{{'CALLYSQUARE.OF' | translate}}'}"
314 md-limit="vm.query.limit"
315 md-limit-options="[10, 15, 20, 50, 100, 250]"
316 md-page="vm.query.page"
317 md-total="{{vm.squareRecordings.count}}"
318 md-on-paginate="vm.getSquareRecordings"
320 ></md-table-pagination>
322 <!-- / SQUARERECORDING TABLE -->
325 <!-- / NO RESULTS -->
331 <!-- NO ADD BUTTON BUTTON -->