import { Component, signal } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { PageShellComponent } from '../../templates/page-shell/page-shell.component'; import { AlertComponent } from '../../atoms/alert/alert.component'; import { ButtonComponent } from '../../atoms/button/button.component'; import { FormFieldComponent } from '../../molecules/form-field/form-field.component'; import { TextInputComponent } from '../../atoms/text-input/text-input.component'; /** A whole new page built from existing building blocks — no new components. This is the atomic-design payoff: a new flow is just composition. */ @Component({ selector: 'app-herregistratie-page', imports: [ FormsModule, PageShellComponent, AlertComponent, ButtonComponent, FormFieldComponent, TextInputComponent, ], template: ` Uw huidige registratie verloopt op 1 september 2027. Vraag tijdig herregistratie aan. @if (submitted()) {
Uw aanvraag tot herregistratie is ontvangen.
} @else {
Herregistratie aanvragen
}
`, }) export class HerregistratiePage { uren = ''; punten = ''; urenError = signal(''); submitted = signal(false); onSubmit() { if (!this.uren.trim()) { this.urenError.set('Vul het aantal gewerkte uren in.'); return; } this.urenError.set(''); this.submitted.set(true); } }