All files / projects/organization-management/src/app/pages/user-detail user-detail-page.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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 781x                                                                                                                                                          
<ng-container *ngIf="user$ | async as user">
  <h1>
    {{ 'account.user.details.heading' | translate }}
  </h1>
 
  <div class="row section">
    <div class="col-10 col-lg-8">
      <h3>{{ 'account.user.details.profile.heading' | translate }}</h3>
      <div class="row">
        <div class="col-md-12">
          <dl class="row dl-horizontal dl-separator">
            <dt class="col-md-4">{{ 'account.user.details.profile.name' | translate }}</dt>
            <dd data-testing-id="name-field" class="col-md-8">
              <ng-container *ngIf="user.title">{{ user.title }} </ng-container> {{ user.firstName }} {{ user.lastName }}
              <span *ngIf="user.active === false" class="input-help">{{
                'account.user.list.status.inactive' | translate
              }}</span>
            </dd>
            <dt class="col-md-4">{{ 'account.user.details.profile.email' | translate }}</dt>
            <dd data-testing-id="email-field" class="col-md-8">{{ user.email }}</dd>
            <dt class="col-md-4">{{ 'account.user.details.profile.phone' | translate }}</dt>
            <dd *ngIf="user.phoneHome" class="col-md-8">{{ user.phoneHome }}</dd>
          </dl>
        </div>
      </div>
    </div>
 
    <div class="col-2 col-lg-4">
      <a
        routerLink="profile"
        class="btn-tool"
        [title]="'account.profile.update.link' | translate"
        data-testing-id="edit-user"
      >
        <fa-icon [icon]="['fas', 'pencil-alt']" />
      </a>
    </div>
  </div>
 
  <div *ngIf="user.roleIDs?.length" class="row section">
    <div class="col-10 col-lg-8">
      <h3>{{ 'account.user.details.profile.role_permissions.heading' | translate }}</h3>
      <div class="row">
        <div class="col-md-12" data-testing-id="user-roles-fields">
          <dl *ngFor="let role of roles$ | async" class="row dl-horizontal dl-separator">
            <dt class="col-md-4">{{ role.displayName }}</dt>
            <dd class="col-md-8">
              <ul class="pl-3">
                <li *ngFor="let p of role.permissionDisplayNames">{{ p }}</li>
              </ul>
            </dd>
          </dl>
        </div>
      </div>
    </div>
 
    <div class="col-2 col-lg-4">
      <a
        routerLink="roles"
        class="btn-tool"
        [title]="'account.profile.update.link' | translate"
        data-testing-id="edit-roles"
      >
        <fa-icon [icon]="['fas', 'pencil-alt']" />
      </a>
    </div>
  </div>
 
  <ish-user-detail-budget
    *ngIf="'services.OrderApprovalServiceDefinition.runnable' | ishServerSetting"
    [budget]="user.userBudget"
  />
</ng-container>
 
<a routerLink=".." data-testing-id="back-to-user-management">{{
  'account.organization.user_management.back_to_list' | translate
}}</a>