All files / src/app/pages/account-profile-email/account-profile-email account-profile-email.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 342x                                                                  
<h1>{{ 'account.update_email.heading' | translate }}</h1>
 
<!-- Error message -->
<ish-error-message [error]="error" />
 
<div class="row">
  <div class="col-md-10 col-xl-8">
    <div class="section">
      <form [formGroup]="form" (ngSubmit)="submit()" class="form-horizontal" novalidate="novalidate">
        <div class="row form-group">
          <div class="col-md-4 col-form-label">{{ 'account.update_email.email.label' | translate }}</div>
          <div *ngIf="currentUser" class="col-md-8 col-form-label">{{ currentUser.email }}</div>
        </div>
 
        <formly-form [form]="form" [fields]="fields" [model]="model" />
 
        <div class="row">
          <div class="offset-md-4 col-md-8">
            <button type="submit" class="btn btn-primary" [disabled]="buttonDisabled">
              {{ 'account.update.button.label' | translate }}
            </button>
            <a routerLink="/account/profile" class="btn btn-secondary">{{ 'account.cancel.link' | translate }}</a>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>
 
<h4 class="form-text">{{ 'account.help.heading' | translate }}</h4>
<p class="form-text">
  {{ 'account.update_email.question.text' | translate }}<br />{{ 'account.update_email.answer.text' | translate }}
</p>