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

34 lines
1.5 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)"
2025-07-29 08:09:54 -03:00
(showLocations)="onShowLocations($event)"(locationAdded)="onLocationAdded($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-07-29 08:09:54 -03:00
(updated)="onLocationUpdated($event)" [userPreferences]="userPreferences"
[refreshLocationData]="refreshLocationData">
2025-06-06 07:38:11 -03:00
</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)"
2025-07-28 20:08:21 -03:00
[userPreferences]="userPreferences" [refreshLocationData]="refreshLocationData">
</app-contacts>
</mat-step>
2025-06-06 07:38:11 -03:00
</mat-stepper>
</div>