@@ -5,24 +5,30 @@ <h1 mat-dialog-title>Id: {{data.id}}</h1>
55 < input matInput type ="date " [(ngModel)] ="data.date ">
66 </ mat-form-field >
77 < br >
8- < mat-form-field >
9- < mat-label > Tagestext</ mat-label >
10- < input matInput [(ngModel)] ="data.tagestext ">
11- </ mat-form-field >
12-
13- @if (data?.tagestext?.length === 0 || data?.tagestext === "TODO") {
14- < div style ="margin-bottom: 4px; ">
15- <!-- TODO: ausbauen, laden von DB -->
16- < button class ="btn btn-wipf-mini " (click) ="setText('A HO') "> HO</ button >
17- < button class ="btn btn-wipf-mini " (click) ="setText('A NM') "> NM</ button >
18- < button class ="btn btn-wipf-mini " (click) ="setText('Urlaub') "> U</ button >
19- < button class ="btn btn-wipf-mini " (click) ="setText('Feiertag') "> F</ button >
20- < button class ="btn btn-wipf-mini " (click) ="setText('Krank') "> K</ button >
21- </ div >
8+ < mat-form-field >
9+ < mat-label > Tagestext</ mat-label >
10+ < input matInput [(ngModel)] ="data.tagestext ">
11+ @if(data?.tagestext?.length > 0){
12+ < button class ="btn btn-for-icon " (click) ="setText('') ">
13+ < mat-icon svgIcon ="trash " aria-hidden ="false " title ="trash "> </ mat-icon >
14+ </ button >
2215 }
16+ </ mat-form-field >
17+
18+ @if (data?.tagestext?.length === 0 || data?.tagestext === "TODO") {
19+ < div style ="margin-bottom: 4px; ">
20+ <!-- TODO: ausbauen, laden von DB -->
21+ < button class ="btn btn-wipf-mini " (click) ="setText('A HO') "> HO</ button >
22+ < button class ="btn btn-wipf-mini " (click) ="setText('A NM') "> NM</ button >
23+ < button class ="btn btn-wipf-mini " (click) ="setText('Urlaub') "> U</ button >
24+ < button class ="btn btn-wipf-mini " (click) ="setText('Feiertag') "> F</ button >
25+ < button class ="btn btn-wipf-mini " (click) ="setText('Krank') "> K</ button >
26+ </ div >
27+ }
28+
29+ </ mat-dialog-content >
2330
24- </ mat-dialog-content >
25- < mat-dialog-actions align ="end ">
26- < button class ="btn btn-wipf-dialog " (click) ="onNoClick() "> Abbrechen</ button >
27- < button class ="btn btn-wipf-dialog " [mat-dialog-close] ="data "> Speichern</ button >
28- </ mat-dialog-actions >
31+ < mat-dialog-actions align ="end ">
32+ < button class ="btn btn-wipf-dialog " (click) ="onNoClick() "> Abbrechen</ button >
33+ < button class ="btn btn-wipf-dialog " [mat-dialog-close] ="data "> Speichern</ button >
34+ </ mat-dialog-actions >
0 commit comments