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

33 lines
1.4 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)"
(showLocations)="onShowLocations($event)">
2025-06-06 07:38:11 -03:00
</app-basic-details>
</mat-step>
<!-- Location Step -->
<mat-step [completed]="locationCompleted" [editable]="!!clientid && basicDetailsCompleted" *ngIf="showLocation">
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
<!-- Contacts Step -->
<mat-step [completed]="contactsCompleted" [editable]="!!clientid && locationCompleted">
<ng-template matStepLabel>Contacts</ng-template>
<app-contacts *ngIf="clientid" [clientid]="clientid" (hasContacts)="onContactsSaved($event)"
[userPreferences]="userPreferences">
</app-contacts>
</mat-step>
2025-06-06 07:38:11 -03:00
</mat-stepper>
</div>