-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
154 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
client/src/app/customer/edit-customer-dialog/edit-customer-dialog.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<h1 mat-dialog-title>Teilnehmer bearbeiten</h1> | ||
<div mat-dialog-content> | ||
<mat-form-field> | ||
<mat-label>Vorname</mat-label> | ||
<input matInput [(ngModel)]="data.firstname"> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<mat-label>Nachname</mat-label> | ||
<input matInput [(ngModel)]="data.lastname"> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<mat-label>Zelt</mat-label> | ||
<input matInput [(ngModel)]="data.group"> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<mat-label>Details</mat-label> | ||
<textarea matInput [(ngModel)]="data.details"></textarea> | ||
<mat-hint>Allergien, Unverträglichkeiten etc.</mat-hint> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<mat-label>Guthaben</mat-label> | ||
<input matInput disabled autocomplete="off" placeholder="1.00" value="{{(data.credit / 100).toFixed(2)}}"> | ||
<span matSuffix>€ </span> | ||
</mat-form-field> | ||
</div> | ||
<div mat-dialog-actions> | ||
<button mat-button [mat-dialog-close]="">Abbrechen</button> | ||
<button mat-button [mat-dialog-close]="data">Ok</button> | ||
</div> |
12 changes: 12 additions & 0 deletions
12
client/src/app/customer/edit-customer-dialog/edit-customer-dialog.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
textarea { | ||
width: 100%; | ||
height: 5rem; | ||
} | ||
|
||
.mat-dialog-content { | ||
width: 250px; | ||
} | ||
|
||
mat-form-field { | ||
width: 100%; | ||
} |
21 changes: 21 additions & 0 deletions
21
client/src/app/customer/edit-customer-dialog/edit-customer-dialog.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { CurrencyPipe } from '@angular/common'; | ||
import { Component, Inject, OnInit } from '@angular/core'; | ||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; | ||
import { CustomerService } from 'src/app/shared/customer.service'; | ||
|
||
@Component({ | ||
selector: 'app-edit-customer-dialog', | ||
templateUrl: './edit-customer-dialog.component.html', | ||
styleUrls: ['./edit-customer-dialog.component.scss'] | ||
}) | ||
export class EditCustomerDialogComponent implements OnInit { | ||
|
||
constructor( | ||
public dialogRef: MatDialogRef<EditCustomerDialogComponent>, | ||
@Inject(MAT_DIALOG_DATA) public data | ||
) { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters