|
1 |
| -<form [formGroup]="form" (submit)="onSubmit()"> |
| 1 | +<mat-tab-group> |
| 2 | + <mat-tab label="Conta"> |
| 3 | + <ng-template matTabContent> |
| 4 | + <form [formGroup]="form" (submit)="onSubmit()"> |
| 5 | + <section> |
| 6 | + <devmx-account-user /> |
| 7 | + |
| 8 | + <devmx-account-contact /> |
| 9 | + |
| 10 | + <devmx-account-profile /> |
| 11 | + |
| 12 | + <fieldset> |
| 13 | + <legend>Informações públicas</legend> |
| 14 | + |
| 15 | + <devmx-account-visibility /> |
| 16 | + </fieldset> |
| 17 | + |
| 18 | + <footer> |
| 19 | + <button mat-flat-button [disabled]="state()"> |
| 20 | + {{state() ? state() : 'Salvar'}} |
| 21 | + </button> |
| 22 | + </footer> |
| 23 | + </section> |
| 24 | + |
| 25 | + <aside> |
| 26 | + <div class="user-avatar"> |
| 27 | + <devmx-avatar [src]="photo()" /> |
| 28 | + <devmx-select-file |
| 29 | + class="select-file" |
| 30 | + (selectChange)="changePhoto($event)" |
| 31 | + /> |
| 32 | + </div> |
| 33 | + |
| 34 | + <a |
| 35 | + mat-stroked-button |
| 36 | + [routerLink]="['/', 'sobre', form.controls.name.value]" |
| 37 | + > |
| 38 | + Acessar página pública |
| 39 | + </a> |
| 40 | + |
| 41 | + <devmx-account-social /> |
| 42 | + </aside> |
| 43 | + </form> |
| 44 | + </ng-template> |
| 45 | + </mat-tab> |
| 46 | + |
| 47 | + <mat-tab label="Biografia"> |
| 48 | + <ng-template matTabContent> |
| 49 | + <form [formGroup]="form" (submit)="onSubmit()"> |
| 50 | + <section formGroupName="profile"> |
| 51 | + <devmx-markdown-toolbar> |
| 52 | + <devmx-markdown-editor |
| 53 | + label="Bio" |
| 54 | + #editor="markdownEditor" |
| 55 | + formControlName="minibio" |
| 56 | + [maxRows]="64" |
| 57 | + /> |
| 58 | + <devmx-markdown-view |
| 59 | + [content]="form.profile.controls.minibio?.value ?? ''" |
| 60 | + /> |
| 61 | + </devmx-markdown-toolbar> |
| 62 | + </section> |
| 63 | + </form> |
| 64 | + </ng-template> |
| 65 | + </mat-tab> |
| 66 | + |
| 67 | + <mat-tab label="Habilidades"> |
| 68 | + <ng-template matTabContent> |
| 69 | + <form [formGroup]="form" (submit)="onSubmit()"> |
| 70 | + <section> |
| 71 | + <devmx-account-skills /> |
| 72 | + </section> |
| 73 | + </form> |
| 74 | + </ng-template> |
| 75 | + </mat-tab> |
| 76 | +</mat-tab-group> |
| 77 | + |
| 78 | +<!-- <form [formGroup]="form" (submit)="onSubmit()"> |
2 | 79 | <section>
|
3 | 80 | <devmx-account-user />
|
4 | 81 |
|
|
53 | 130 |
|
54 | 131 | <devmx-account-social />
|
55 | 132 | </aside>
|
56 |
| -</form> |
| 133 | +</form> --> |
0 commit comments