diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-05 15:01:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 15:02:27 +0200 |
commit | e309822b93d9b69f30cbe830ef3d09dfdb2c13b2 (patch) | |
tree | 41dbc3b3108ced7fdba4062974e568695c30e486 /client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html | |
parent | d4d5853e65e584ca51c718f8df590b987f981047 (diff) | |
download | PeerTube-e309822b93d9b69f30cbe830ef3d09dfdb2c13b2.tar.gz PeerTube-e309822b93d9b69f30cbe830ef3d09dfdb2c13b2.tar.zst PeerTube-e309822b93d9b69f30cbe830ef3d09dfdb2c13b2.zip |
Add form validator translations
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html')
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html index bbdce5b02..05c0b5ddc 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html | |||
@@ -2,22 +2,26 @@ | |||
2 | 2 | ||
3 | <form role="form" (ngSubmit)="updateMyProfile()" [formGroup]="form"> | 3 | <form role="form" (ngSubmit)="updateMyProfile()" [formGroup]="form"> |
4 | 4 | ||
5 | <label i18n for="display-name">Display name</label> | 5 | <div class="form-group"> |
6 | <input | 6 | <label i18n for="display-name">Display name</label> |
7 | type="text" id="display-name" | 7 | <input |
8 | formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }" | 8 | type="text" id="display-name" |
9 | > | 9 | formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }" |
10 | <div *ngIf="formErrors['display-name']" class="form-error"> | 10 | > |
11 | {{ formErrors['display-name'] }} | 11 | <div *ngIf="formErrors['display-name']" class="form-error"> |
12 | {{ formErrors['display-name'] }} | ||
13 | </div> | ||
12 | </div> | 14 | </div> |
13 | 15 | ||
14 | <label i18n for="description">Description</label> | 16 | <div class="form-group"> |
15 | <textarea | 17 | <label i18n for="description">Description</label> |
16 | id="description" formControlName="description" | 18 | <textarea |
17 | [ngClass]="{ 'input-error': formErrors['description'] }" | 19 | id="description" formControlName="description" |
18 | ></textarea> | 20 | [ngClass]="{ 'input-error': formErrors['description'] }" |
19 | <div *ngIf="formErrors.description" class="form-error"> | 21 | ></textarea> |
20 | {{ formErrors.description }} | 22 | <div *ngIf="formErrors.description" class="form-error"> |
23 | {{ formErrors.description }} | ||
24 | </div> | ||
21 | </div> | 25 | </div> |
22 | 26 | ||
23 | <input type="submit" i18n-value value="Update my profile" [disabled]="!form.valid"> | 27 | <input type="submit" i18n-value value="Update my profile" [disabled]="!form.valid"> |