Advertisement
psi_mmobile

Untitled

Feb 7th, 2024
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 KB | None | 0 0
  1. <div *ngIf="this.router.url === '/tracking/check-in-at-work'">
  2. <mat-expansion-panel [expanded]="cawCurrentPerson">
  3. <mat-expansion-panel-header>
  4. <mat-panel-title>
  5. <mat-icon class="sideListHeaderIcon"> filter_alt </mat-icon>
  6. {{ 'payroll.sideList.personFilter' | translate }}
  7. </mat-panel-title>
  8. </mat-expansion-panel-header>
  9. <div *ngIf="cawPersons" style="display: flex; justify-content: center">
  10. <div *ngIf="cawCurrentPerson$ | async">
  11. <button
  12. mat-button
  13. class="sideListIcon"
  14. (click)="previousCAWPerson()"
  15. >
  16. <mat-icon>keyboard_arrow_left</mat-icon>
  17. </button>
  18. {{ cawCurrentPersonIndex + 1 }}/{{ cawPersonCount }}
  19. <button mat-button class="sideListIcon" (click)="nextCAWPerson()">
  20. <mat-icon>keyboard_arrow_right</mat-icon>
  21. </button>
  22. </div>
  23. <button
  24. mat-button
  25. class="sideListIcon"
  26. (click)="openCAWPersonHistoryDialog()"
  27. >
  28. <mat-icon>search</mat-icon>
  29. </button>
  30. <button
  31. *ngIf="cawCurrentPerson$ | async"
  32. mat-button
  33. class="sideListIcon"
  34. (click)="routerComponent.clearPersonFilter()"
  35. >
  36. <img style="width: 20px" src="../assets/images/clear_filter.png" />
  37. </button>
  38. </div>
  39. <span
  40. *ngIf="cawCurrentPerson$ | async"
  41. style="font-weight: 500; font-size: 14px; line-height: 2"
  42. >{{ (cawCurrentPerson$ | async).company_nr }} -
  43. {{ (cawCurrentPerson$ | async).person_name }}</span
  44. >
  45. <span *ngIf="(cawCurrentPerson$ | async) == null">{{
  46. 'payroll.sideList.noPersonFilter' | translate
  47. }}</span>
  48. </mat-expansion-panel>
  49. <mat-expansion-panel
  50. *ngIf="this.router.url === '/tracking/check-in-at-work'"
  51. >
  52. <mat-expansion-panel-header>
  53. <mat-panel-title>
  54. <mat-icon class="sideListHeaderIcon"> filter_alt </mat-icon>
  55. POI filter
  56. </mat-panel-title>
  57. </mat-expansion-panel-header>
  58. <div>
  59. <button mat-button class="sideListIcon" (click)="openPOIsDialog()">
  60. <mat-icon>search</mat-icon>
  61. </button>
  62. <button
  63. mat-button
  64. class="sideListIcon"
  65. (click)="clearPOIFilter()"
  66. *ngIf="selectedPOI$ | async"
  67. >
  68. <img style="width: 20px" src="../assets/images/clear_filter.png" />
  69. </button>
  70. </div>
  71. <div class="sideListText">
  72. <span *ngIf="selectedPOI$ | async">
  73. {{ (selectedPOI$ | async).short_name }} -
  74. {{ (selectedPOI$ | async).name }}</span
  75. >
  76. </div>
  77. <div *ngIf="(selectedPOI$ | async) == null">
  78. {{ 'No filter' | translate }}
  79. </div>
  80. </mat-expansion-panel>
  81. <mat-expansion-panel>
  82. <mat-expansion-panel-header>
  83. <mat-panel-title>
  84. <mat-icon class="sideListHeaderIcon"> filter_alt </mat-icon>
  85. Extra filters
  86. </mat-panel-title>
  87. </mat-expansion-panel-header>
  88. <div class="panel panel-default" style="width: 385px; height: 100px">
  89. <div class="panel-body">
  90. <table
  91. style="width: 400px; margin-top: 5px; margin-bottom: 5px"
  92. cellspacing="0"
  93. >
  94. <tr style="height: 5px">
  95. <td width="115px" style="text-align: left !important">
  96. <div id="showwarningcheckbox"></div>
  97. </td>
  98. </tr>
  99. <tr style="height: 5px">
  100. <td width="250px" style="text-align: left !important">
  101. <div id="shownonadminstatusonlycheckbox"></div>
  102. </td>
  103. </tr>
  104. <tr style="height: 5px">
  105. <td width="131px" style="text-align: left !important">
  106. <div id="showexceptionsonlycheckbox"></div>
  107. </td>
  108. </tr>
  109. <tr style="height: 5px">
  110. <td width="300px" style="text-align: left !important">
  111. <div id="showonlypplwithmissingdocscheckbox"></div>
  112. </td>
  113. </tr>
  114. </table>
  115. </div>
  116. </div>
  117. </mat-expansion-panel>
  118. <mat-expansion-panel [expanded]="true">
  119. <mat-expansion-panel-header>
  120. <mat-panel-title>
  121. <img
  122. src="assets/images/actions.png"
  123. class="sideListImg"
  124. style="width: 20px"
  125. />
  126. {{ 'personList.sideList.actions' | translate }}
  127. </mat-panel-title>
  128. </mat-expansion-panel-header>
  129. <div class="actions">
  130. <div class="actions">
  131. <button
  132. *ngIf="this.router.url === '/tracking/check-in-at-work'"
  133. mat-button
  134. class="sideListActionButton"
  135. (click)="openLegendDialog()"
  136. >
  137. <mat-icon class="actionicon">format_list_bulleted</mat-icon>
  138. Show legend
  139. </button>
  140. <button
  141. *ngIf="this.router.url === '/tracking/check-in-at-work'"
  142. mat-button
  143. class="sideListActionButton"
  144. (click)="addCawPersonRow()"
  145. >
  146. <mat-icon class="actionicon">add_circle</mat-icon>
  147. Add request
  148. </button>
  149. <button
  150. *ngIf="this.router.url === '/tracking/check-in-at-work'"
  151. mat-button
  152. class="sideListActionButton"
  153. (click)="cancelCAW()"
  154. >
  155. <mat-icon class="actionicon">cancel</mat-icon>
  156. Cancel request
  157. </button>
  158. <button
  159. *ngIf="this.router.url === '/tracking/check-in-at-work'"
  160. mat-button
  161. class="sideListActionButton"
  162. (click)="refreshCAW()"
  163. >
  164. <mat-icon class="actionicon">refresh</mat-icon>
  165. Refresh
  166. </button>
  167. <button
  168. *ngIf="this.router.url === '/tracking/check-in-at-work'"
  169. mat-button
  170. class="sideListActionButton"
  171. (click)="executeNowCAW()"
  172. >
  173. <mat-icon class="actionicon">task_alt</mat-icon>
  174. Execute now
  175. </button>
  176. <button
  177. *ngIf="this.router.url === '/tracking/check-in-at-work'"
  178. mat-button
  179. class="sideListActionButton"
  180. (click)="openCawRemarksDialog()"
  181. >
  182. <mat-icon class="actionicon">pageview</mat-icon>
  183. View remarks
  184. </button>
  185. <button
  186. mat-button
  187. class="sideListActionButton"
  188. (click)="routerComponent.exportExcel()"
  189. >
  190. <img
  191. class="mat-icon"
  192. src="assets/images/file/file-excel-solid-grey.svg"
  193. />
  194. {{ 'personList.exportExcel' | translate }}
  195. </button>
  196.  
  197. <span style="display: flex" *ngFor="let data of exports">
  198. <button
  199. mat-button
  200. class="sideListActionButton"
  201. (click)="export(data)"
  202. >
  203. <img
  204. *ngIf="['xlsx', 'csv'].includes(getExportFileExt(data))"
  205. class="mat-icon"
  206. src="assets/images/file/file-excel-solid-grey.svg"
  207. />
  208. <img
  209. *ngIf="getExportFileExt(data) === 'txt'"
  210. class="mat-icon"
  211. src="assets/images/file/file-solid.svg"
  212. />
  213. {{ data.export_name }}
  214. </button>
  215. </span>
  216. </div>
  217. </div>
  218. </mat-expansion-panel>
  219. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement