aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.html
blob: 306f3a12c83817d9207d1732a0fdb5aeb7769de3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div *ngIf="error" class="alert alert-danger">{{ error }}</div>

<form role="form" (ngSubmit)="updateMyProfile()" [formGroup]="form">

  <label for="display-name">Display name</label>
  <input
    type="text" id="display-name"
    formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }"
  >
  <div *ngIf="formErrors['display-name']" class="form-error">
    {{ formErrors['display-name'] }}
  </div>

  <label for="description">Description</label>
  <textarea
    id="description" formControlName="description"
    [ngClass]="{ 'input-error': formErrors['description'] }"
  ></textarea>
  <div *ngIf="formErrors.description" class="form-error">
    {{ formErrors.description }}
  </div>

  <input type="submit" value="Update my profile" [disabled]="!form.valid">
</form>