vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/views/ProductReview/create.html.twig line 1

  1. {% extends '@SyliusShop/layout.html.twig' %}
  2. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  3. {% block title %}{{ 'sylius.ui.write_your_own_review'|trans }} | {{ parent() }}{% endblock %}
  4. {% set product = product_review.reviewSubject %}
  5. {% block content %}
  6.     <div class="ui hidden divider"></div>
  7.     <div class="ui stackable grid" id="reviews">
  8.         <div class="four wide column">
  9.             {{ sylius_template_event('sylius.shop.product_review.create.product_box', _context) }}
  10.         </div>
  11.         <div class="twelve wide column">
  12.             <div class="ui segment">
  13.                 <div class="ui dividing header">
  14.                     {{ 'sylius.ui.write_your_own_review'|trans }}
  15.                     <div class="sub header">
  16.                         {{ 'sylius.ui.you_are_reviewing'|trans }} <strong>{{ product.name }}</strong>.
  17.                     </div>
  18.                 </div>
  19.                 {{ sylius_template_event('sylius.shop.product_review.create.before_form', {'product_review': product_review}) }}
  20.                 {{ form_start(form, {'action': path('sylius_shop_product_review_create', {'slug': product.slug, '_locale': product.translation.locale}), 'attr': {'class': 'ui loadable reply form', 'novalidate': 'novalidate'}}) }}
  21.                     {% include '@SyliusShop/ProductReview/_form.html.twig' %}
  22.                     {{ sylius_template_event('sylius.shop.product_review.create.form', {'product_review': product_review, 'form': form}) }}
  23.                     {{ form_row(form._token) }}
  24.                     <button type="submit" class="ui blue labeled large icon submit button" {{ sylius_test_html_attribute('add') }}>
  25.                         <i class="icon check"></i> {{ 'sylius.ui.add'|trans }}
  26.                     </button>
  27.                 {{ form_end(form, {'render_rest': false}) }}
  28.             </div>
  29.         </div>
  30.     </div>
  31. {% endblock %}