custom/plugins/WynTheme/src/Resources/views/storefront/component/review/review.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/review/review.html.twig' %}
  2. {% block component_review_list_action_language %}
  3.   <div class="col product-detail-review-language">
  4.     {% if foreignReviewsCount > 0 %}
  5.       <form
  6.         class="product-detail-review-language-form"
  7.         action="{{ path('frontend.product.reviews', { productId: product.id, parentId: product.parentId }) }}"
  8.         method="post"
  9.         data-form-ajax-submit="true"
  10.         data-form-ajax-submit-options='{{ formAjaxSubmitOptions|json_encode }}'
  11.       >
  12.         {% block component_review_list_action_language_csrf %}
  13.           {{ parent() }}
  14.         {% endblock %}
  15.         {% if app.request.get('limit') %}
  16.           <input type="hidden" name="limit" value="{{ app.request.get('limit') }}">
  17.         {% endif %}
  18.         {% if app.request.get('sort') %}
  19.           <input type="hidden" name="sort" value="{{ app.request.get('sort') }}">
  20.         {% endif %}
  21.         <wyn-switch
  22.           id="showForeignReviews"
  23.           value="filter-language"
  24.           name="language"
  25.           {% if app.request.get('language') %}checked{% endif %}
  26.         >
  27.           <small>{{ "detail.reviewLanguageFilterLabel"|trans|sw_sanitize }}</small>
  28.         </wyn-switch>
  29.       </form>
  30.     {% endif %}
  31.   </div>
  32. {% endblock %}