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>
|
|
|
|
|
|
2025-06-14 20:42:26 -03:00
|
|
|
<app-basic-details [isEditMode]="isEditMode" (clientidCreated)="onBasicDetailsSaved($event)"
|
|
|
|
|
(showLocations)="onShowLocations($event)">
|
2025-06-06 07:38:11 -03:00
|
|
|
</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-14 20:42:26 -03:00
|
|
|
<mat-step [completed]="locationCompleted" [editable]="!!clientid && contactsCompleted" *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
|
|
|
|
|
|
|
|
</mat-stepper>
|
|
|
|
|
</div>
|