|
| 1 | +<div class="d-flex flex-row" *ngIf="!data.resigned && selectCurrentUserIsFirstUser$ | async"> |
| 2 | + <!-- data.useGoogleSheetAsDefault --> |
| 3 | + <mat-checkbox class="p-1" |
| 4 | + [id]="'useGoogleSheetAsDefault'" |
| 5 | + [name]="'useGoogleSheetAsDefault'" |
| 6 | + formControlName="useGoogleSheetAsDefault"> |
| 7 | + <div> |
| 8 | + <div>{{ 'Use Google Sheet as default' | translate }}</div> |
| 9 | + <small class="checkbox-description"></small> |
| 10 | + </div> |
| 11 | + </mat-checkbox> |
| 12 | + |
| 13 | +</div> |
| 14 | +<div class="d-flex flex-row" |
| 15 | + *ngIf="!data.resigned && !data.useGoogleSheetAsDefault && selectCurrentUserIsFirstUser$ | async"> |
| 16 | + <!-- data.useOnlyPlanHours checkbox --> |
| 17 | + <mat-checkbox class="p-1" |
| 18 | + [id]="'useOnlyPlanHours'" |
| 19 | + [name]="'useOnlyPlanHours'" |
| 20 | + formControlName="useOnlyPlanHours"> |
| 21 | + <div> |
| 22 | + <div>{{ 'Use only plan hours' | translate }}</div> |
| 23 | + <small class="checkbox-description"></small> |
| 24 | + </div> |
| 25 | + </mat-checkbox> |
| 26 | +</div> |
| 27 | +<div class="d-flex flex-row" |
| 28 | + *ngIf="!data.resigned && data.globalAutoBreakCalculationActive && selectCurrentUserIsAdmin$ | async"> |
| 29 | + <!-- data.autoBreakCalculationActive --> |
| 30 | + <mat-checkbox class="p-1" |
| 31 | + [id]="'autoBreakCalculationActive'" |
| 32 | + [name]="'autoBreakCalculationActive'" |
| 33 | + formControlName="autoBreakCalculationActive"> |
| 34 | + <div> |
| 35 | + <div>{{ 'Auto break calculation' | translate }}</div> |
| 36 | + <small class="checkbox-description"></small> |
| 37 | + </div> |
| 38 | + </mat-checkbox> |
| 39 | +</div> |
| 40 | +<div class="d-flex flex-row" *ngIf="!data.resigned && selectCurrentUserIsAdmin$ | async"> |
| 41 | + <!-- data.allowPersonalTimeRegistration --> |
| 42 | + <mat-checkbox class="p-1" |
| 43 | + [id]="'allowPersonalTimeRegistration'" |
| 44 | + [name]="'allowPersonalTimeRegistration'" |
| 45 | + formControlName="allowPersonalTimeRegistration"> |
| 46 | + <div> |
| 47 | + <div>{{ 'Allow time registration on mobile' | translate }}</div> |
| 48 | + <small |
| 49 | + class="checkbox-description">{{ 'Enter start time, stop time, and total break. Select Allow editing of work hours on mobile to edit times.' | translate }}</small> |
| 50 | + </div> |
| 51 | + </mat-checkbox> |
| 52 | +</div> |
| 53 | +<div class="d-flex flex-row" |
| 54 | + *ngIf="!data.daysBackInTimeAllowedEditingEnabled && !data.resigned && data.allowPersonalTimeRegistration && selectCurrentUserIsAdmin$ | async"> |
| 55 | + <!-- data.allowEditOfRegistrations --> |
| 56 | + <mat-checkbox class="p-1" |
| 57 | + [id]="'allowEditOfRegistrations'" |
| 58 | + [name]="'allowEditOfRegistrations'" |
| 59 | + formControlName="allowEditOfRegistrations"> |
| 60 | + <div> |
| 61 | + <div>{{ 'Allow editing of working hours on mobile' | translate }}</div> |
| 62 | + <small |
| 63 | + class="checkbox-description">{{ 'Start time, stop time and breaks can be edited.' | translate }}</small> |
| 64 | + </div> |
| 65 | + </mat-checkbox> |
| 66 | +</div> |
| 67 | +<div class="d-flex flex-row" |
| 68 | + *ngIf="!data.resigned && data.allowPersonalTimeRegistration && !data.allowAcceptOfPlannedHours && selectCurrentUserIsAdmin$ | async"> |
| 69 | + <!-- data.allowPersonalTimeRegistration --> |
| 70 | + <mat-checkbox class="p-1" |
| 71 | + [id]="'usePunchClock'" |
| 72 | + [name]="'usePunchClock'" |
| 73 | + formControlName="usePunchClock"> |
| 74 | + <div> |
| 75 | + <div>{{ 'Use time clock on mobile' | translate }}</div> |
| 76 | + <small |
| 77 | + class="checkbox-description">{{ 'Working hours are recorded by pressing Start/Stop working hours. Breaks are recorded by pressing Start/Stop break time. Select Allow editing of working hours on mobile to edit times.' | translate }}</small> |
| 78 | + </div> |
| 79 | + </mat-checkbox> |
| 80 | +</div> |
| 81 | +<div class="d-flex flex-row" |
| 82 | + *ngIf="!data.daysBackInTimeAllowedEditingEnabled && !data.resigned && data.allowPersonalTimeRegistration && !data.allowAcceptOfPlannedHours && data.usePunchClock && selectCurrentUserIsAdmin$ | async"> |
| 83 | + <!-- data.allowPersonalTimeRegistration --> |
| 84 | + <mat-checkbox class="p-1" |
| 85 | + [id]="'usePunchClockWithAllowRegisteringInHistory'" |
| 86 | + [name]="'usePunchClockWithAllowRegisteringInHistory'" |
| 87 | + formControlName="usePunchClockWithAllowRegisteringInHistory"> |
| 88 | + <div> |
| 89 | + <div>{{ 'Allow entry of unregistered working hours on mobile' | translate }}</div> |
| 90 | + <small |
| 91 | + class="checkbox-description">{{ 'Enter start time, stop time, and total break time back in time. Select Allow editing of work hours on mobile to edit times.' | translate }}</small> |
| 92 | + </div> |
| 93 | + </mat-checkbox> |
| 94 | +</div> |
| 95 | +<div class="d-flex flex-row" |
| 96 | + *ngIf="!data.resigned && data.allowPersonalTimeRegistration && !data.usePunchClock && selectCurrentUserIsAdmin$ | async"> |
| 97 | + <!-- data.allowAcceptOfPlannedHours --> |
| 98 | + <mat-checkbox class="p-1" |
| 99 | + [id]="'allowAcceptOfPlannedHours'" |
| 100 | + [name]="'allowAcceptOfPlannedHours'" |
| 101 | + formControlName="allowAcceptOfPlannedHours"> |
| 102 | + <div> |
| 103 | + <div>{{ 'Allow receipt for standard time on mobile' | translate }}</div> |
| 104 | + <small |
| 105 | + class="checkbox-description">{{ 'Scheduled working hours can be approved with a single click. Scheduled working hours cannot be edited.' | translate }}</small> |
| 106 | + </div> |
| 107 | + </mat-checkbox> |
| 108 | +</div> |
| 109 | +<div class="d-flex flex-row" |
| 110 | + *ngIf="!data.resigned && data.allowPersonalTimeRegistration && data.allowEditOfRegistrations && selectCurrentUserIsAdmin$ | async"> |
| 111 | + <!-- data.allowAcceptOfPlannedHours --> |
| 112 | + <mat-checkbox class="p-1" |
| 113 | + [id]="'daysBackInTimeAllowedEditingEnabled'" |
| 114 | + [name]="'daysBackInTimeAllowedEditingEnabled'" |
| 115 | + formControlName="daysBackInTimeAllowedEditingEnabled"> |
| 116 | + <div> |
| 117 | + <div>{{ 'Allow x days back in time editing' | translate }}</div> |
| 118 | + <small |
| 119 | + class="checkbox-description">{{ 'Enabling this option allows the user to edit x days back in time, default is 2.' | translate }}</small> |
| 120 | + </div> |
| 121 | + </mat-checkbox> |
| 122 | +</div> |
| 123 | +<div class="d-flex flex-row" *ngIf="!data.resigned && selectCurrentUserIsAdmin$ | async"> |
| 124 | + <mat-checkbox class="p-1" |
| 125 | + [id]="'thirdShiftActive'" |
| 126 | + [name]="'thirdShiftActive'" |
| 127 | + formControlName="thirdShiftActive"> |
| 128 | + <div>{{ 'Enable third shift' | translate }}</div> |
| 129 | + </mat-checkbox> |
| 130 | + <mat-checkbox class="p-1" *ngIf="!data.resigned && data.thirdShiftActive && selectCurrentUserIsAdmin$ | async" |
| 131 | + [id]="'fourthShiftActive'" |
| 132 | + [name]="'fourthShiftActive'" |
| 133 | + formControlName="fourthShiftActive"> |
| 134 | + <div>{{ 'Enable fourth shift' | translate }}</div> |
| 135 | + </mat-checkbox> |
| 136 | + <mat-checkbox class="p-1" |
| 137 | + *ngIf="!data.resigned && data.fourthShiftActive && data.thirdShiftActive && selectCurrentUserIsAdmin$ | async" |
| 138 | + [id]="'fifthShiftActive'" |
| 139 | + [name]="'fifthShiftActive'" |
| 140 | + formControlName="fifthShiftActive"> |
| 141 | + <div>{{ 'Enable fifth shift' | translate }}</div> |
| 142 | + </mat-checkbox> |
| 143 | +</div> |
| 144 | +<div class="d-flex flex-row"> |
| 145 | + <mat-checkbox class="p-1" |
| 146 | + [id]="'resigned'" |
| 147 | + [name]="'resigned'" |
| 148 | + formControlName="resigned"> |
| 149 | + <div>{{ 'Resigned' | translate }}</div> |
| 150 | + </mat-checkbox> |
| 151 | + <mat-form-field *ngIf="data.resigned"> |
| 152 | + <mat-label>{{ 'Resigned at date' | translate }}</mat-label> |
| 153 | + <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle> |
| 154 | + <input |
| 155 | + required |
| 156 | + matInput |
| 157 | + [matDatepicker]="picker" |
| 158 | + formControlName="resignedAtDate" |
| 159 | + (click)="picker.open()" |
| 160 | + > |
| 161 | + <mat-datepicker #picker></mat-datepicker> |
| 162 | + <mat-error class="text-warn" *ngIf="!data.resignedAtDate"> |
| 163 | + {{ 'Date is required'| translate }}* |
| 164 | + </mat-error> |
| 165 | + </mat-form-field> |
| 166 | +</div> |
0 commit comments