diff --git a/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html b/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html index f6103bd..dc4b694 100644 --- a/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html +++ b/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html @@ -3,11 +3,46 @@ } -

Übergaben {{ data.name }}

+ + +
+ + + + Kunde + + + @for (option of filteredCustomers | async; track option) { + {{option.name}} + } + + Wähle den Empfänger oder tippe einen neuen Namen ein + + +
+ Der Schlüssel wurde + + Ausgegeben + Zurückgegeben + +
+ + + Datum der Übergabe + + TT/MM/JJJJ + + + +
+
-
Historie:
+ @@ -34,40 +69,8 @@
Kunde
- -
-
Neue Übergabe anlegen:
- - - Kunde - - - @for (option of filteredCustomers | async; track option) { - {{option.name}} - } - - Wähle den Empfänger oder tippe einen neuen Namen ein - - -
- Der Schlüssel wurde - - Ausgegeben - Zurückgegeben - -
- - - Datum der Übergabe - - TT/MM/JJJJ - - - -
+
+
diff --git a/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.ts b/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.ts index 2a99d34..00d450b 100644 --- a/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.ts +++ b/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.ts @@ -1,4 +1,4 @@ -import { Component, inject, LOCALE_ID } from '@angular/core'; +import { Component, inject, LOCALE_ID, signal } from '@angular/core'; import { ApiService } from '../../../../shared/api.service'; import { IKey } from '../../../../model/interface/key.interface'; import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog'; @@ -20,11 +20,13 @@ import {MatListModule} from '@angular/material/list'; import {MatProgressSpinnerModule} from '@angular/material/progress-spinner'; import {MatRadioModule} from '@angular/material/radio'; import { HotToastService } from '@ngxpert/hot-toast'; +import {MatExpansionModule} from '@angular/material/expansion'; +import {MatTabsModule} from '@angular/material/tabs'; @Component({ selector: 'app-handover-dialog', standalone: true, - imports: [FormsModule, ReactiveFormsModule, MatDatepickerModule, MatFormFieldModule, MatInputModule, MatButtonModule, MatDialogModule, CommonModule, MatAutocompleteModule, MatProgressSpinnerModule, MatRadioModule], + imports: [FormsModule, MatExpansionModule, MatTabsModule, ReactiveFormsModule, MatDatepickerModule, MatFormFieldModule, MatInputModule, MatButtonModule, MatDialogModule, CommonModule, MatAutocompleteModule, MatProgressSpinnerModule, MatRadioModule], providers: [ provideNativeDateAdapter(), { provide: LOCALE_ID, useValue: 'de-DE' }, @@ -42,6 +44,7 @@ export class HandoverDialogComponent { private toast: HotToastService = inject(HotToastService); isLoading: boolean = false; + readonly panelOpenState = signal(false); customers: { name: string, id: string }[] = []; filteredCustomers: Observable = new Observable();