All files / src/app/extensions/punchout/pages/account-punchout-configuration/oci-configuration-form oci-configuration-form.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 78 79 802x                                                                                                                                                              
<ish-error-message [error]="error$ | async" />
 
<div class="container">
  <ng-container *ngIf="configItems$ | async">
    <div class="row list-header d-sm-flex">
      <div class="col-md-3 list-header-item no-seperator">
        {{ 'account.punchout.configuration.form.heading.attribute' | translate }}
      </div>
      <div class="col-md-3 list-header-item no-seperator">
        {{ 'account.punchout.configuration.form.heading.transformed-attribute' | translate }}
        <ng-template #OciConfigurationPlaceholder>
          <ng-container *ngIf="availablePlaceholders$ | async as placeholders">
            <div *ngFor="let placeholder of placeholders">{{ '{' + placeholder + '}' }}</div>
          </ng-container>
        </ng-template>
        <a
          class="header-note pl-2"
          [ngbPopover]="OciConfigurationPlaceholder"
          placement="bottom"
          triggers="click"
          [autoClose]="'outside'"
          popoverTitle="{{ 'account.punchout.configuration.form.tooltip.placeholder.headline' | translate }}"
        >
          <fa-icon [icon]="['fas', 'info-circle']" />
        </a>
      </div>
      <div class="col-md-3 list-header-item no-seperator">
        {{ 'account.punchout.configuration.form.heading.mapping' | translate }}
        <ng-template #OciConfigurationMapping>
          <div
            innerHTML="{{ 'account.punchout.configuration.form.tooltip.mapping.content' | translate }}"
            class="list-position-outside"
          ></div>
        </ng-template>
        <a
          class="header-note pl-2"
          [ngbPopover]="OciConfigurationMapping"
          placement="bottom"
          triggers="click"
          [autoClose]="'outside'"
          popoverTitle="{{ 'account.punchout.configuration.form.tooltip.mapping.headline' | translate }}"
        >
          <fa-icon [icon]="['fas', 'info-circle']" />
        </a>
      </div>
      <div class="col-md-3 list-header-item no-seperator">
        {{ 'account.punchout.configuration.form.heading.format' | translate }}
      </div>
    </div>
    <form [formGroup]="form" (ngSubmit)="submitForm()" class="pt-1">
      <div class="list-body">
        <formly-form [model]="model$ | async" [fields]="fields$ | async" [form]="form" class="pt-1" />
      </div>
      <div class="row">
        <div class="button-group w-100 clearfix">
          <div class="float-md-right">
            <button
              type="submit"
              class="btn btn-primary"
              [disabled]="formDisabled"
              data-testing-id="update-oci-configuration"
            >
              {{ 'account.update.button.label' | translate }}
            </button>
            <a [routerLink]="['/account/punchout']" [queryParams]="{ format: 'oci' }" class="btn btn-secondary">{{
              'account.cancel.link' | translate
            }}</a>
          </div>
          <div class="float-md-left">
            <a class="btn btn-link pl-md-0" [routerLink]="['/account/punchout']" [queryParams]="{ format: 'oci' }">{{
              'account.punchout.configuration.back_to_list' | translate
            }}</a>
          </div>
        </div>
      </div>
    </form>
  </ng-container>
</div>
<ish-loading *ngIf="loading$ | async" />