Files
paypoint-frontend/src/app/pages/klanten/klanten.component.html
veenm 08ca500570
All checks were successful
Docker Image CI / build-and-push (push) Successful in 1m17s
Docker Image CI / deploy (push) Successful in 33s
component gemaakt van nieuwe klant toevoegen + correcte validatie email
2025-03-16 22:24:39 +01:00

49 lines
1.3 KiB
HTML

<div class="container">
<div class="heading">
<h1>Klanten</h1>
</div>
<div class="content">
<div class="toolbar">
<button
size="m"
tuiButton
appearance="secondary"
id="klantToevoegen"
type="button"
(click)="toggleCustomerModal()"
>
<tui-icon
icon="@tui.plus"
[style.height.rem]="1"
/>
Klant toevoegen
</button>
</div>
<div class="results">
<table class="styled-table">
<thead>
<tr>
<th>Naam</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let customer of customers" (click)="selectCustomer(customer)" [id]="customer.id">
<td>{{ customer.firstName }} {{ customer.lastName }}</td>
<td>{{ customer.email }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<app-modal title="Nieuwe klant toevoegen" *ngIf="showNewCustomer" (close)="toggleCustomerModal()">
<app-new-customer (customerAdded)="saveCustomer()"></app-new-customer>
</app-modal>
<app-modal title="Klant bekijken" *ngIf="selectedCustomer != undefined" (close)="selectedCustomer = undefined">
<app-customer-details [customer]="selectedCustomer"></app-customer-details>
</app-modal>