Skip to content

Commit

Permalink
fix profile edit
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Sep 9, 2024
1 parent b9db729 commit 42ecf49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/profile/profile.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ <h2>{{'My profile' | translate}}</h2>
<ng-template [ngIf]="!user['organization-account']">
<div class="form-group -required" [ngClass]="{ 'has-error': f.submitted && !first_name.valid }">
<label for="first_name">{{'First name' | translate}}</label>
<input id="first_name" type="text" class="form-control" name="first_name" [(ngModel)]="user['first-name']" #name="ngModel" required />
<input id="first_name" type="text" class="form-control" name="first_name" [(ngModel)]="user['first-name']" #first_name="ngModel" required />
<div *ngIf="f.submitted && !first_name.valid" class="help-text">{{'Please enter your first name' | translate}}</div>
</div>

<div class="form-group -required" [ngClass]="{ 'has-error': f.submitted && !last_name.valid }">
<label for="last_name">{{'Last name' | translate}}</label>
<input id="last_name" type="text" class="form-control" name="last_name" [(ngModel)]="user['last-name']" #name="ngModel" required />
<input id="last_name" type="text" class="form-control" name="last_name" [(ngModel)]="user['last-name']" #last_name="ngModel" required />
<div *ngIf="f.submitted && !last_name.valid" class="help-text">{{'Please enter your last name' | translate}}</div>
</div>
</ng-template>
Expand Down

0 comments on commit 42ecf49

Please sign in to comment.