<div class="page-header">
    <h1>{{'personalInfoHtmlTitle' | translate}}</h1>
</div>

<div class="col-sm-12 content-area">
  <div class="row">
      <div class="col-sm-4 col-md-4">
          <div class="card-pf-subtitle">
              {{'personalSubTitle' | translate}}
          </div>
          <div class="introMessage">
            <p>{{'personalSubMessage' | translate}}</p>
          </div>
          <div class="subtitle"><span class="required">*</span> {{'requiredFields' | translate}}</div>
      </div>
      <div class="col-sm-6 col-md-6">

        <form #formGroup="ngForm" (ngSubmit)="saveAccount()" class="form-horizontal">

          <div *ngIf="!isRegistrationEmailAsUsername" class="form-group ">
              <label for="username" class="control-label">{{'username' | translate}}</label><span *ngIf="isEditUserNameAllowed" class="required">*</span>
              <input *ngIf="isEditUserNameAllowed" type="text" class="form-control" required ngModel id="username" name="username" value="{{username}}" >
              <div class="non-edit" *ngIf="!isEditUserNameAllowed">{{ username }}</div>
          </div>

          <div class="form-group ">
            <label for="email" class="control-label">{{'email' | translate }}</label> <span class="required">*</span>
            <input type="email" class="form-control" id="email" name="email" required autofocus="" ngModel type="text">
          </div>

          <div class="form-group ">
            <label for="firstName" class="control-label">{{'firstName' | translate}}</label> <span class="required">*</span>
            <input class="form-control" id="firstName" required name="firstName" ngModel type="text">
          </div>

          <div class="form-group ">
            <label for="lastName" class="control-label">{{'lastName' | translate}}</label> <span class="required">*</span>
            <input class="form-control" id="lastName" required name="lastName" ngModel type="text">
          </div>

          <div class="form-group">
            <div id="kc-form-buttons" class="submit">
              <div class="">
                <button type="submit" [disabled]="!formGroup.valid || !formGroup.dirty" class="btn btn-primary btn-lg" name="submitAction">{{'doSave' | translate}}</button>
              </div>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
