All files / src/app/extensions/order-templates/pages/account-order-template-detail/account-order-template-detail-line-item account-order-template-detail-line-item.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 592x                                                                                                                    
<div class="d-flex" data-testing-id="order-template-product">
  <div class="col-1 col-md-2 list-item d-flex">
    <input
      type="checkbox"
      data-testing-id="productCheckbox"
      [formControl]="checkBox"
      [attr.aria-label]="'account.order_template.add_to_template.checkbox.aria_label' | translate"
    />
    <div class="d-none d-md-inline">
      <ish-product-image imageType="S" [link]="true" />
    </div>
  </div>
  <div class="col-8 col-md-6 list-item d-block d-md-flex">
    <div class="col-12 col-md-9 pli-description">
      <ish-product-name />
      <ish-product-id />
      <ish-product-variation-display />
      <ish-product-bundle-display />
      <ish-product-inventory />
      <div>
        <button
          type="button"
          class="btn-tool btn-link"
          (click)="moveDialog.show()"
          data-testing-id="move-order-template"
        >
          <fa-icon
            [icon]="['fas', 'arrows-alt']"
            [title]="'account.order_template.table.options.move_to_template' | translate"
          />
        </button>
        <button
          type="button"
          class="btn-tool btn-link"
          (click)="removeProductFromOrderTemplate(orderTemplateItemData.sku)"
          data-testing-id="delete-order-template"
        >
          <fa-icon [icon]="['fas', 'trash-alt']" [title]="'modal.heading.remove.order.template' | translate" />
        </button>
      </div>
    </div>
    <div class="col-6 col-md-3 p-md-0 text-right">
      <ish-product-quantity />
    </div>
  </div>
  <div class="col-2 list-item d-none d-md-block text-right">
    {{ orderTemplateItemData?.creationDate | ishDate : 'shortDate' }}
  </div>
  <div class="col-4 col-md-2 list-item column-price">
    <ish-product-price />
  </div>
</div>
 
<ish-select-order-template-modal
  #moveDialog
  addMoveProduct="move"
  (submitEmitter)="moveItemToOtherOrderTemplate(orderTemplateItemData.sku, $event)"
/>