service-provider-app/src/app/preparer/add/add-preparer.component.html

32 lines
1.3 KiB
HTML
Raw Normal View History

2025-06-06 07:38:11 -03:00
<div class="preparer-container">
<mat-stepper orientation="vertical" [linear]="true" (selectionChange)="onStepChange($event)"
[selectedIndex]="currentStep">
<!-- Basic Details Step -->
<mat-step [completed]="basicDetailsCompleted">
<ng-template matStepLabel>Basic Details</ng-template>
<app-basic-details [isEditMode]="isEditMode" (clientidCreated)="onBasicDetailsSaved($event)">
</app-basic-details>
</mat-step>
<!-- Contacts Step -->
<mat-step [completed]="contactsCompleted" [editable]="!!clientid && basicDetailsCompleted">
<ng-template matStepLabel>Contacts</ng-template>
<app-contacts *ngIf="clientid" [clientid]="clientid" (hasContacts)="onContactsSaved($event)"
[userPreferences]="userPreferences">
</app-contacts>
</mat-step>
<!-- Location Step -->
2025-06-08 00:03:38 -03:00
<mat-step [completed]="locationCompleted" [editable]="!!clientid && contactsCompleted">
2025-06-06 07:38:11 -03:00
<ng-template matStepLabel>Locations</ng-template>
2025-06-08 00:03:38 -03:00
<app-location *ngIf="clientid" [clientid]="clientid" (hasLocations)="onLocationSaved($event)"
2025-06-06 07:38:11 -03:00
[userPreferences]="userPreferences">
</app-location>
2025-06-08 00:03:38 -03:00
</mat-step>
2025-06-06 07:38:11 -03:00
</mat-stepper>
</div>