All files / src/app/extensions/rating/shared/product-review-create-dialog product-review-create-dialog.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 432x                                                                                    
<ng-template #modal let-reviewModal>
  <div class="modal-content">
    <div class="modal-header">
      <h2 class="modal-title">{{ 'product.reviews.create.dialog.heading' | translate }}</h2>
      <button type="button" class="close" [title]="'dialog.close.text' | translate" (click)="hide()">
        <span aria-hidden="true">&times;</span>
      </button>
    </div>
 
    <div class="modal-body">
      <ng-container *ishProductContextAccess="let product = product">
        <div class="d-flex">
          <ish-product-image imageType="S" [link]="true" />
          <div>
            <ish-product-name [link]="false" />
            <ish-product-id />
            <ish-product-variation-display />
          </div>
        </div>
 
        <p>{{ 'product.reviews.create.dialog.description.text' | translate }}</p>
 
        <form
          id="createProductReviewForm"
          class="form-horizontal"
          [formGroup]="form"
          (ngSubmit)="submitForm(product.sku)"
        >
          <formly-form [form]="form" [fields]="fields" [model]="model$ | async" />
        </form>
      </ng-container>
    </div>
    <div class="modal-footer">
      <button type="submit" form="createProductReviewForm" class="btn btn-primary" [disabled]="formDisabled">
        {{ 'product.reviews.create.dialog.confirm.button.label' | translate }}
      </button>
      <button type="button" class="btn btn-secondary" (click)="hide()">
        {{ 'product.reviews.create.dialog.cancel.button.label' | translate }}
      </button>
    </div>
  </div>
</ng-template>