Skip to content

Commit

Permalink
feat: icons for midweek and weekend
Browse files Browse the repository at this point in the history
  • Loading branch information
TitoMoi committed Sep 29, 2023
1 parent 585ee57 commit f1ec873
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 21 deletions.
15 changes: 8 additions & 7 deletions src/app/report/selection-list/selection-list.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,40 @@
<mat-icon
class="m-2"
svgIcon="pdf"
aria-label="icon"
[matTooltip]="t('ICON_PDF_INFINITE')"
(click)="toPdf(false)"
></mat-icon>
<mat-icon
class="m-2"
svgIcon="pdfblue"
aria-label="icon"
[matTooltip]="t('ICON_PDF_PAGE')"
(click)="toPdf(true)"
></mat-icon>
<mat-icon
class="m-2"
svgIcon="png"
aria-label="icon"
[matTooltip]="t('ICON_PNG')"
(click)="toPng()"
></mat-icon>
<mat-icon
class="m-2"
class="m-2 me-5"
svgIcon="excel"
aria-label="icon"
[matTooltip]="t('ICON_EXCEL')"
(click)="toExcel()"
></mat-icon>

<mat-icon
class="m-2"
class="m-2 me-3"
svgIcon="midweeklist"
aria-label="icon"
[matTooltip]="t('ICON_PDF_BAND')"
(click)="toPdfOpinionated()"
></mat-icon>
<mat-icon
class="m-2"
svgIcon="weekendlist"
[matTooltip]="t('ICON_PDF_BAND_WEEKEND')"
(click)="toPdfOpinionatedWeekend()"
></mat-icon>
</div>

<div id="toPngDivId" style="width: 791px; height: auto" class="bg-color-white">
Expand Down
2 changes: 2 additions & 0 deletions src/app/report/selection-list/selection-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ export class SelectionListComponent implements OnChanges {
this.exportService.toPng("toPngDivId", "assignments");
}

toPdfOpinionatedWeekend() {}

toPdfOpinionated() {
const doc = this.pdfService.getJsPdf({
orientation: "portrait",
Expand Down
3 changes: 1 addition & 2 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,5 @@
"CONFIG_DEFAULT_FONT_SIZE_VERTICAL": "Vertical reports default font size in pixels for png image and excel report (except pdf)",
"CONFIG_DEFAULT_FONT_SIZE": "XXXREMOVE THISXXXX",
"ICON_PDF_BAND": "Generate a colorful pdf specially for the midweek with bands and up to two weeks per page",
"ROOM_UNKNOWN": "Room unknown",
"ASSIGNTYPE_UNKNOWN": "Assign type unknown"
"ICON_PDF_BAND_WEEKEND": "Generate a colorful pdf specially for the weekend with bands and up to four weeks per page"
}
30 changes: 24 additions & 6 deletions src/assets/icons/midweeklist.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 24 additions & 6 deletions src/assets/icons/weekendlist.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f1ec873

Please sign in to comment.