app/template/bootcube2/Contact/index.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.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. {% form_theme form 'Form/form_div_layout.twig' %}
  10. {% block javascript %}
  11.     <script src="//yubinbango.github.io/yubinbango/yubinbango.js" charset="UTF-8"></script>
  12. {% endblock javascript %}
  13. {% block main %}
  14.     <div class="ec-contactRole">
  15.         <div class="ec-pageHeader">
  16.             <h1>{{ 'お問い合わせ'|trans }}</h1>
  17.         </div>
  18.         <div class="ec-off1Grid">
  19.             <div class="ec-off1Grid__cell">
  20.                 <form method="post" action="{{ url('contact') }}" class="h-adr" novalidate>
  21.                     <span class="p-country-name" style="display:none;">Japan</span>
  22.                     {{ form_widget(form._token) }}
  23.                     <p class="ec-para-normal">{{ '内容によっては回答をさしあげるのにお時間をいただくこともございます。
  24. また、休業日は翌営業日以降の対応となりますのでご了承ください。
  25. '|trans|nl2br }}</p>
  26.                     <div class="ec-borderedDefs">
  27.                         <dl>
  28.                             <dt>
  29.                                 {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  30.                             </dt>
  31.                             <dd>
  32.                                 <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error' }}">
  33.                                     {{ form_widget(form.name.name01, {'attr': { 'placeholder': '姓' }}) }}
  34.                                     {{ form_widget(form.name.name02, {'attr': { 'placeholder': '名' }}) }}
  35.                                     {{ form_errors(form.name.name01) }}
  36.                                     {{ form_errors(form.name.name02) }}
  37.                                 </div>
  38.                             </dd>
  39.                         </dl>
  40.                         <dl>
  41.                             <dt>
  42.                                 {{ form_label(form.kana, 'お名前(カナ)', {'label_attr': {'class': 'ec-label'}}) }}
  43.                             </dt>
  44.                             <dd>
  45.                                 <div class="ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error' }}">
  46.                                     {{ form_widget(form.kana.kana01, {'attr': { 'placeholder': 'セイ' }}) }}
  47.                                     {{ form_widget(form.kana.kana02, {'attr': { 'placeholder': 'メイ' }}) }}
  48.                                     {{ form_errors(form.kana.kana01) }}
  49.                                     {{ form_errors(form.kana.kana02) }}
  50.                                 </div>
  51.                             </dd>
  52.                         </dl>
  53.                         <dl>
  54.                             <dt>
  55.                                 {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  56.                             </dt>
  57.                             <dd>
  58.                                 <div class="ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}">
  59.                                     <span>{{ '〒'|trans }}</span>
  60.                                     {{ form_widget(form.postal_code) }}
  61.                                     <div class="ec-zipInputHelp">
  62.                                         <div class="ec-zipInputHelp__icon">
  63.                                             <div class="ec-icon"><img
  64.                                                     src="{{ asset('assets/icon/question-white.svg') }}" alt="">
  65.                                             </div>
  66.                                         </div><a href="https://www.post.japanpost.jp/zipcode/" target="_blank"><span>{{ '郵便番号検索'|trans }}</span></a>
  67.                                     </div>
  68.                                     {{ form_errors(form.postal_code) }}
  69.                                 </div>
  70.                                 <div class="ec-select{{ has_errors(form.address.pref) ? ' error' }}">
  71.                                     {{ form_widget(form.address.pref) }}
  72.                                     {{ form_errors(form.address.pref) }}
  73.                                 </div>
  74.                                 <div class="ec-input{{ has_errors(form.address.addr01) ? ' error' }}">
  75.                                     {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  76.                                     {{ form_errors(form.address.addr01) }}
  77.                                 </div>
  78.                                 <div class="ec-input{{ has_errors(form.address.addr02) ? ' error' }}">
  79.                                     {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  80.                                     {{ form_errors(form.address.addr02) }}
  81.                                 </div>
  82.                             </dd>
  83.                         </dl>
  84.                         <dl>
  85.                             <dt>
  86.                                 {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  87.                             </dt>
  88.                             <dd>
  89.                                 <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  90.                                     {{ form_widget(form.phone_number) }}
  91.                                     {{ form_errors(form.phone_number) }}
  92.                                 </div>
  93.                             </dd>
  94.                         </dl>
  95.                         <dl>
  96.                             <dt>
  97.                                 {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  98.                             </dt>
  99.                             <dd>
  100.                                 <div class="ec-input{{ has_errors(form.email) ? ' error' }}">
  101.                                     {{ form_widget(form.email) }}
  102.                                     {{ form_errors(form.email) }}
  103.                                 </div>
  104.                             </dd>
  105.                         </dl>
  106. {% if form.customerplus_1 is defined %}
  107. <dl>
  108.     <dt>
  109. {{ form_label(form.customerplus_1,'', { 'label_attr': {'class': 'ec-label' }}) }}
  110. </dt>
  111.     <dd>
  112.         <div class="ec-input{{ has_errors(form.customerplus_1) ? ' error' }}">
  113.             {{ form_widget(form.customerplus_1) }}
  114.             {{ form_errors(form.customerplus_1) }}
  115.         </div>
  116.     </dd>
  117. </dl>
  118. {% endif %}
  119. {% if form.customerplus_3 is defined %}
  120. <dl>
  121.     <dt>{{ form_label(form.customerplus_3,'', { 'label_attr': {'class': 'ec-label' }}) }}</dt>
  122.     <dd>
  123.         <div class="ec-checkbox{{ has_errors(form.customerplus_3) ? ' error' }}">
  124.             {{ form_widget(form.customerplus_3) }}
  125.             {{ form_errors(form.customerplus_3) }}
  126.         </div>
  127.     </dd>
  128. </dl>
  129. {% endif %}
  130. {% if form.customerplus_4 is defined %}
  131. <dl>
  132.     <dt>{{ form_label(form.customerplus_4,'', { 'label_attr': {'class': 'ec-label' }}) }}</dt>
  133.     <dd>
  134.         <div class="ec-checkbox{{ has_errors(form.customerplus_4) ? ' error' }}">
  135.             {{ form_widget(form.customerplus_4) }}
  136.             {{ form_errors(form.customerplus_4) }}
  137.         </div>
  138.     </dd>
  139. </dl>
  140. {% endif %}
  141. {% if form.customerplus_6 is defined %}
  142. <dl>
  143.     <dt>
  144. {{ form_label(form.customerplus_6,'', { 'label_attr': {'class': 'ec-label' }}) }}
  145. </dt>
  146.     <dd>
  147.         <div class="ec-input{{ has_errors(form.customerplus_6) ? ' error' }}">
  148.             {{ form_widget(form.customerplus_6) }}
  149.             {{ form_errors(form.customerplus_6) }}
  150.         </div>
  151.     </dd>
  152. </dl>
  153. {% endif %}
  154. {% if form.customerplus_5 is defined %}
  155. <dl>
  156.     <dt>{{ form_label(form.customerplus_5,'', { 'label_attr': {'class': 'ec-label' }}) }}</dt>
  157.     <dd>
  158.         <div class="ec-checkbox{{ has_errors(form.customerplus_5) ? ' error' }}">
  159.             {{ form_widget(form.customerplus_5) }}
  160.             {{ form_errors(form.customerplus_5) }}
  161.         </div>
  162.     </dd>
  163. </dl>
  164. {% endif %}
  165. {% if form.customerplus_2 is defined %}
  166. <dl>
  167.     <dt>{{ form_label(form.customerplus_2,'', { 'label_attr': {'class': 'ec-label' }}) }}</dt>
  168.     <dd>
  169.         <div class="ec-input{{ has_errors(form.customerplus_2) ? ' error' }}">
  170.             {{ form_widget(form.customerplus_2) }}
  171.             {{ form_errors(form.customerplus_2) }}
  172.         </div>
  173.     </dd>
  174. </dl>
  175. {% endif %}
  176.                         <dl>
  177.                             <dt>
  178.                                 {{ form_label(form.contents, 'お問い合わせ内容', { 'label_attr': { 'class': 'ec-label' }}) }}
  179.                             </dt>
  180.                             <dd>
  181.                                 <div class="ec-input{{ has_errors(form.contents) ? ' error' }}">
  182.                                     {{ form_widget(form.contents) }}
  183.                                     {{ form_errors(form.contents) }}
  184.                                 </div>
  185.                                 <p>{{ 'ご注文に関するお問い合わせには、必ず「ご注文番号」をご記入くださいますようお願いいたします。'|trans }}</p>
  186.                             </dd>
  187.                         </dl>
  188.                         {# エンティティ拡張の自動出力 #}
  189.                         {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  190.                             {% if f.vars.eccube_form_options.form_theme %}
  191.                                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  192.                                 {{ form_row(f) }}
  193.                             {% else %}
  194.                                 <dl>
  195.                                     <dt>
  196.                                         {% set label_class =  f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
  197.                                         {{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
  198.                                     </dt>
  199.                                     <dd>
  200.                                         <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  201.                                             {{ form_widget(f) }}
  202.                                             {{ form_errors(f) }}
  203.                                         </div>
  204.                                     </dd>
  205.                                 </dl>
  206.                             {% endif %}
  207.                         {% endfor %}
  208.                     </div>
  209.                     <div class="ec-RegisterRole__actions">
  210.                         <div class="ec-off4Grid">
  211.                             <div class="ec-off4Grid__cell">
  212.                                 <button type="submit" class="ec-blockBtn--action" name="mode" value="confirm">{{ '確認ページへ'|trans }}
  213.                                 </button>
  214.                             </div>
  215.                         </div>
  216.                     </div>
  217.                 </form>
  218.             </div>
  219.         </div>
  220.     </div>
  221. {% endblock %}