All files / src/app/pages/checkout-receipt/checkout-receipt-order checkout-receipt-order.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 562x                                                                                                              
@if (order) {
  <div>
    <div class="cart-header">
      <h1 class="d-flex flex-wrap align-items-baseline">
        <span class="cart-header-title" id="page-main-content" tabindex="-1">
          {{
            (order.recurrence ? 'checkout.receipt.recurring.tankyou.message' : 'checkout.receipt.tankyou.message')
              | translate
          }}
        </span>
        <span class="header-note">
          <span>{{ 'shopping_cart.transaction.text' | translate }}</span>
          <ish-modal-dialog-link
            class="details-link"
            linkText="shopping_cart.read_more.link"
            [options]="{ titleText: 'checkout.safeandsecure.details.title' | translate, size: 'lg' }"
          >
            <ish-content-include *ishLazyLoadingContent includeId="include.dialog.safeAndSecure.pagelet2-Include" />
          </ish-modal-dialog-link>
        </span>
      </h1>
    </div>
    @if (order.statusCode === 'PENDING') {
      <p class="alert alert-info">
        {{ 'checkout.receipt.order_pending.message' | translate }}
      </p>
    }
    <!-- Receipt message -->
    <div class="section">
      <p>
        <span>{{
          (order.recurrence ? 'checkout.order.recurring.number.label' : 'checkout.order.number.label') | translate
        }}</span
        >&nbsp;
        <strong data-testing-id="order-document-number">
          @if (order.customerNo) {
            <a
              [routerLink]="[
                order.recurrence ? '/account/recurring-orders/' + order.id : '/account/orders/' + order.id,
              ]"
              >{{ order.documentNo }}</a
            >
          } @else {
            {{ order.documentNo }}
          }
        </strong>
      </p>
      <p
        [innerHTML]="
          'checkout.receipt.notification.mail.text' | translate: { '0': order.invoiceToAddress.email || order.email }
        "
      ></p>
    </div>
  </div>
}