app/template/default/ProductReview42/Resource/template/default/index.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
  4. http://www.lockon.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'product_review' %}
  10. {% form_theme form 'Form/form_div_layout.twig' %}
  11. {% block stylesheet %}
  12.     <style>
  13.         #product_review_recommend_level {
  14.             display: flex;
  15.             flex-direction: column;
  16.             flex-wrap: wrap;
  17.         }
  18.         #product_review_recommend_level label {
  19.             position: relative;
  20.             bottom: 18px;
  21.             left: 20px;
  22.             line-height: 0;
  23.         }
  24.     </style>
  25. {% endblock %}
  26. {% block main %}
  27.     <div class="ec-registerRole">
  28.         <div class="ec-pageHeader">
  29.             <h1>{{ 'product_review.front.review.title'|trans }}</h1>
  30.         </div>
  31.         <div class="ec-off1Grid">
  32.             <div class="ec-off1Grid__cell">
  33.                 <form method="post" action="{{ url('product_review_index', { id: Product.id }) }}">
  34.                     {{ form_widget(form._token) }}
  35.                     <p class="ec-para-nomal">{{ 'product_review.front.review.description'|trans }}</p>
  36.                     <div class="ec-borderedDefs">
  37.                         {# 商品名 #}
  38.                         <dl>
  39.                             <dt>
  40.                                 <label class="ec-label">{{ 'product_review.front.review.product_name'|trans }}</label>
  41.                             </dt>
  42.                             <dd>
  43.                                 <div class="ec-input">
  44.                                     {{ Product.name }}
  45.                                 </div>
  46.                             </dd>
  47.                         </dl>
  48.                         {# 投稿者名 #}
  49.                         <dl>
  50.                             <dt>
  51.                                 {{ form_label(form.reviewer_name, '', {'label_attr': {'class': 'ec-label'}}) }}
  52.                             </dt>
  53.                             <dd>
  54.                                 <div class="ec-input{{ has_errors(form.reviewer_name) ? ' error' }}">
  55.                                     {{ form_widget(form.reviewer_name) }}
  56.                                     {{ form_errors(form.reviewer_name) }}
  57.                                 </div>
  58.                             </dd>
  59.                         </dl>
  60.                         {# 投稿者URL #}
  61.                         <dl>
  62.                             <dt>
  63.                                 {{ form_label(form.reviewer_url, '', {'label_attr': {'class': 'ec-label'}}) }}
  64.                             </dt>
  65.                             <dd>
  66.                                 <div class="ec-input{{ has_errors(form.reviewer_url) ? ' error' }}">
  67.                                     {{ form_widget(form.reviewer_url) }}
  68.                                     {{ form_errors(form.reviewer_url) }}
  69.                                 </div>
  70.                             </dd>
  71.                         </dl>
  72.                         {# 性別 #}
  73.                         <dl>
  74.                             <dt>
  75.                                 {{ form_label(form.sex, 'common.gender', {'label_attr': {'class': 'ec-label'}}) }}
  76.                             </dt>
  77.                             <dd>
  78.                                 <div class="ec-radio{{ has_errors(form.sex) ? ' error' }}">
  79.                                     {{ form_widget(form.sex) }}
  80.                                     {{ form_errors(form.sex) }}
  81.                                 </div>
  82.                             </dd>
  83.                         </dl>
  84.                         {# おすすめレベル #}
  85.                         <dl>
  86.                             <dt>
  87.                                 {{ form_label(form.recommend_level, '', {'label_attr': {'class': 'ec-label'}}) }}
  88.                             </dt>
  89.                             <dd>
  90.                                 <div class="ec-radio{{ has_errors(form.recommend_level) ? ' error' }}">
  91.                                     {{ form_widget(form.recommend_level) }}
  92.                                     {{ form_errors(form.recommend_level) }}
  93.                                 </div>
  94.                             </dd>
  95.                         </dl>
  96.                         {# タイトル #}
  97.                         <dl>
  98.                             <dt>
  99.                                 {{ form_label(form.title, '', {'label_attr': {'class': 'ec-label'}}) }}
  100.                             </dt>
  101.                             <dd>
  102.                                 <div class="ec-input{{ has_errors(form.title) ? ' error' }}">
  103.                                     {{ form_widget(form.title) }}
  104.                                     {{ form_errors(form.title) }}
  105.                                 </div>
  106.                             </dd>
  107.                         </dl>
  108.                         {# コメント #}
  109.                         <dl>
  110.                             <dt>
  111.                                 {{ form_label(form.comment, '', {'label_attr': {'class': 'ec-label'}}) }}
  112.                             </dt>
  113.                             <dd>
  114.                                 <div class="ec-input{{ has_errors(form.comment) ? ' error' }}">
  115.                                     {{ form_widget(form.comment) }}
  116.                                     {{ form_errors(form.comment) }}
  117.                                 </div>
  118.                             </dd>
  119.                         </dl>
  120.                     </div>
  121.                     <div class="ec-registerRole__actions">
  122.                         <div class="ec-off4Grid">
  123.                             <div class="ec-off4Grid__cell">
  124.                                 <button class="ec-blockBtn--action" type="submit" name="mode"
  125.                                         value="confirm">{{ 'product_review.front.review.confirm'|trans }}</button>
  126.                                 <a class="ec-blockBtn--cancel"
  127.                                    href="{{ url('product_detail', { id: Product.id }) }}">{{ 'product_review.front.review.back'|trans }}</a>
  128.                             </div>
  129.                         </div>
  130.                     </div>
  131.                 </form>
  132.             </div>
  133.         </div>
  134.     </div>
  135. {% endblock %}