Files
lmnp-organizer/frontend/src/app/components/landlord-profile-completion-dialog/landlord-profile-completion-dialog.html
T

39 lines
1.2 KiB
HTML

<h2 mat-dialog-title>Complétez votre profil</h2>
<div class="profile-dialog-content">
<p>Vos coordonnées sont nécessaires pour créer vos baux et vos quittances.</p>
@if (profileStatus() === 'loading') {
<div class="profile-loading" role="status" aria-live="polite">
<mat-spinner diameter="24" aria-hidden="true" /> Chargement de votre profil…
</div>
} @else if (profileStatus() === 'error') {
<div class="profile-error">
<p role="alert">{{ error() }}</p>
<button mat-stroked-button type="button" (click)="retry()">Réessayer</button>
</div>
} @else {
<app-landlord-profile-form
class="profile-completion-form"
[profile]="profile()"
[saving]="saving()"
[saveError]="error()"
(saveRequested)="save($event)"
>
<button
profile-form-secondary-action
mat-button
type="button"
(click)="logout()"
[disabled]="saving()"
>
Déconnexion
</button>
</app-landlord-profile-form>
}
</div>
@if (profileStatus() !== 'ready') {
<mat-dialog-actions align="end">
<button mat-button type="button" (click)="logout()" [disabled]="saving()">Déconnexion</button>
</mat-dialog-actions>
}