All files / src/app/extensions/quickorder/shared/direct-order direct-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 321x                                                              
<div class="section">
  <h3>{{ 'shopping_cart.direct_order.heading' | translate }}</h3>
  <form [formGroup]="directOrderForm" (ngSubmit)="onSubmit()" data-testing-id="direct-order-form">
    <div class="row mb-1">
      <div class="col-7 col-sm-5">
        <formly-form [form]="directOrderForm" [fields]="fields" [model]="model" />
      </div>
      <div class="col-5 col-sm-3">
        <ish-product-quantity />
      </div>
      <div class="col-12 col-sm-4">
        <button
          type="submit"
          class="btn btn-primary"
          [disabled]="
            directOrderForm.pristine ||
            this.directOrderForm.invalid ||
            (hasQuantityError$ | async) ||
            (loading$ | async)
          "
        >
          {{ 'quickorder.page.add.cart' | translate }}
        </button>
      </div>
    </div>
  </form>
 
  <a rel="quick-order" routerLink="/quick-order" class="no-print">{{
    'shopping_cart.direct_order.link.multipleItems' | translate
  }}</a>
</div>