All files / projects/organization-management/src/app/pages/user-detail/user-detail-budget user-detail-budget.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 411x                                                                                
<div *ngIf="budget" class="row section">
  <div class="col-10 col-lg-8">
    <h3>{{ 'account.user.details.profile.budget_limits.heading' | translate }}</h3>
 
    <div class="row">
      <div class="col-md-12" data-testing-id="user-budget">
        <dl class="row dl-horizontal dl-separator">
          <dt class="col-md-4">{{ 'account.user.new.order_spend_limit.label' | translate }}</dt>
          <dd data-testing-id="order-spend-limit-field" class="col-md-8" *ngIf="budget.orderSpentLimit; else noLimit">
            {{ budget.orderSpentLimit | ishPrice }}
          </dd>
          <ng-template #noLimit>
            <dd class="col-md-8">{{ 'account.budget.unlimited' | translate }}</dd>
          </ng-template>
          <ng-container *ngIf="budget.budget; else noBudget">
            <dt class="col-md-4">{{ 'account.budget.label' | translate : { '0': budget.budgetPeriod } }}</dt>
            <dd class="col-md-8" data-testing-id="budget-field">
              {{ budget.budget | ishPrice }}
            </dd>
          </ng-container>
          <ng-template #noBudget>
            <dt class="col-md-4">{{ 'account.user.budget.label' | translate }}</dt>
            <dd class="col-md-8">{{ 'account.budget.unlimited' | translate }}</dd>
          </ng-template>
        </dl>
      </div>
    </div>
  </div>
 
  <div class="col-2 col-lg-4">
    <a
      routerLink="budget"
      class="btn-tool"
      [title]="'account.profile.update.link' | translate"
      data-testing-id="edit-budget"
    >
      <fa-icon [icon]="['fas', 'pencil-alt']" />
    </a>
  </div>
</div>