]>
Commit | Line | Data |
---|---|---|
ed56ad11 C |
1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
2 | ||
3 | <form role="form" (ngSubmit)="updateMyProfile()" [formGroup]="form"> | |
4 | ||
52a3f561 | 5 | <div class="form-group"> |
9dfaa38c | 6 | <label i18n for="username">Username</label> |
52a3f561 | 7 | <input |
9dfaa38c C |
8 | type="text" id="username" class="form-control" |
9 | formControlName="username" readonly | |
52a3f561 | 10 | > |
b788e691 | 11 | <div class="muted" i18n> |
9dfaa38c | 12 | People can find you using @{{ user.username }}@{{ instanceHost }} |
52a3f561 RK |
13 | </div> |
14 | </div> | |
15 | ||
e309822b C |
16 | <div class="form-group"> |
17 | <label i18n for="display-name">Display name</label> | |
18 | <input | |
a6d5ff76 | 19 | type="text" id="display-name" class="form-control" |
e309822b C |
20 | formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }" |
21 | > | |
22 | <div *ngIf="formErrors['display-name']" class="form-error"> | |
23 | {{ formErrors['display-name'] }} | |
24 | </div> | |
ed56ad11 C |
25 | </div> |
26 | ||
e309822b C |
27 | <div class="form-group"> |
28 | <label i18n for="description">Description</label> | |
29 | <textarea | |
a6d5ff76 | 30 | id="description" formControlName="description" class="form-control" |
e309822b C |
31 | [ngClass]="{ 'input-error': formErrors['description'] }" |
32 | ></textarea> | |
33 | <div *ngIf="formErrors.description" class="form-error"> | |
34 | {{ formErrors.description }} | |
35 | </div> | |
ed56ad11 C |
36 | </div> |
37 | ||
482fa503 | 38 | <input type="submit" i18n-value value="Save" [disabled]="!form.valid"> |
ed56ad11 | 39 | </form> |