app/template/bravers/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.         <ul class="breadcrumb p-none">
  16.             <li class="breadcrumb__item">
  17.                 <a href="{{ url('homepage') }}" class="breadcrumb__item__link">
  18.                     ホーム
  19.                 </a>
  20.             </li>
  21.             <li class="breadcrumb__item">
  22.                 <p class="breadcrumb__item__arrow">></p>
  23.             </li>
  24.             <li class="breadcrumb__item">
  25.                 <p class="breadcrumb__item__text">お問い合わせ</p>
  26.             </li>
  27.         </ul>
  28.         <div class="ec-pageHeader text-center">
  29.             <h1>{{ 'お問い合わせ'|trans }}</h1>
  30.         </div>
  31.         <div class="ec-contactRole__inner">
  32.             <form method="post" action="{{ url('contact') }}" class="h-adr" novalidate>
  33.                 <span class="p-country-name" style="display:none;">Japan</span>
  34.                 {{ form_widget(form._token) }}
  35.                 <p class="ec-para-normal text-center text-normal">{{ '内容によっては回答をさしあげるのにお時間をいただくこともございます。
  36. また、休業日は翌営業日以降の対応となりますのでご了承ください。
  37. '|trans|nl2br }}</p>
  38.                 <div class="ec-borderedDefs">
  39.                     <dl>
  40.                         <dt>
  41.                             {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  42.                         </dt>
  43.                         <dd>
  44.                             <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error' }}">
  45.                                 {{ form_widget(form.name.name01, {'attr': { 'placeholder': '姓' }}) }}
  46.                                 {{ form_widget(form.name.name02, {'attr': { 'placeholder': '名' }}) }}
  47.                                 {{ form_errors(form.name.name01) }}
  48.                                 {{ form_errors(form.name.name02) }}
  49.                             </div>
  50.                         </dd>
  51.                     </dl>
  52.                     <dl>
  53.                         <dt>
  54.                             {{ form_label(form.kana, 'お名前(カナ)', {'label_attr': {'class': 'ec-label'}}) }}
  55.                         </dt>
  56.                         <dd>
  57.                             <div class="ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error' }}">
  58.                                 {{ form_widget(form.kana.kana01, {'attr': { 'placeholder': 'セイ' }}) }}
  59.                                 {{ form_widget(form.kana.kana02, {'attr': { 'placeholder': 'メイ' }}) }}
  60.                                 {{ form_errors(form.kana.kana01) }}
  61.                                 {{ form_errors(form.kana.kana02) }}
  62.                             </div>
  63.                         </dd>
  64.                     </dl>
  65.                     <dl>
  66.                         <dt>
  67.                             {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  68.                         </dt>
  69.                         <dd>
  70.                             <div class="ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}">
  71.                                 {{ form_widget(form.postal_code) }}
  72.                                 <div class="ec-zipInputHelp">
  73.                                     <div class="ec-zipInputHelp__icon">
  74.                                         <div class="ec-icon"><img
  75.                                                 src="{{ asset('assets/icon/question-white.svg') }}" alt="">
  76.                                         </div>
  77.                                     </div><a href="https://www.post.japanpost.jp/zipcode/" target="_blank"><span>{{ '郵便番号検索'|trans }}</span></a>
  78.                                 </div>
  79.                                 {{ form_errors(form.postal_code) }}
  80.                             </div>
  81.                             <div class="ec-select{{ has_errors(form.address.pref) ? ' error' }}">
  82.                                 {{ form_widget(form.address.pref) }}
  83.                                 {{ form_errors(form.address.pref) }}
  84.                             </div>
  85.                             <div class="ec-input{{ has_errors(form.address.addr01) ? ' error' }}">
  86.                                 {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  87.                                 {{ form_errors(form.address.addr01) }}
  88.                             </div>
  89.                             <div class="ec-input{{ has_errors(form.address.addr02) ? ' error' }}">
  90.                                 {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  91.                                 {{ form_errors(form.address.addr02) }}
  92.                             </div>
  93.                         </dd>
  94.                     </dl>
  95.                     <dl>
  96.                         <dt>
  97.                             {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  98.                         </dt>
  99.                         <dd>
  100.                             <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  101.                                 {{ form_widget(form.phone_number) }}
  102.                                 {{ form_errors(form.phone_number) }}
  103.                             </div>
  104.                         </dd>
  105.                     </dl>
  106.                     <dl>
  107.                         <dt>
  108.                             {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  109.                         </dt>
  110.                         <dd>
  111.                             <div class="ec-input{{ has_errors(form.email) ? ' error' }}">
  112.                                 {{ form_widget(form.email) }}
  113.                                 {{ form_errors(form.email) }}
  114.                             </div>
  115.                         </dd>
  116.                     </dl>
  117.                     <dl>
  118.                         <dt>
  119.                             {{ form_label(form.contents, 'お問い合わせ内容', { 'label_attr': { 'class': 'ec-label' }}) }}
  120.                         </dt>
  121.                         <dd>
  122.                             <div class="ec-input{{ has_errors(form.contents) ? ' error' }}">
  123.                                 {{ form_widget(form.contents) }}
  124.                                 {{ form_errors(form.contents) }}
  125.                             </div>
  126.                             <p>{{ 'ご注文に関するお問い合わせには、必ず「ご注文番号」をご記入くださいますようお願いいたします。'|trans }}</p>
  127.                         </dd>
  128.                     </dl>
  129.                     {# エンティティ拡張の自動出力 #}
  130.                     {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  131.                         {% if f.vars.eccube_form_options.form_theme %}
  132.                             {% form_theme f f.vars.eccube_form_options.form_theme %}
  133.                             {{ form_row(f) }}
  134.                         {% else %}
  135.                             <dl>
  136.                                 <dt>
  137.                                     {% set label_class =  f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
  138.                                     {{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
  139.                                 </dt>
  140.                                 <dd>
  141.                                     <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  142.                                         {{ form_widget(f) }}
  143.                                         {{ form_errors(f) }}
  144.                                     </div>
  145.                                 </dd>
  146.                             </dl>
  147.                         {% endif %}
  148.                     {% endfor %}
  149.                 </div>
  150.                 <div class="ec-RegisterRole__actions">
  151.                     <div class="btn-size">
  152.                     <button type="submit" class="ec-blockBtn--action ec-yellow-btn" name="mode" value="confirm">{{ '確認ページへ'|trans }}
  153.                     </button>
  154.                     </div>
  155.                 </div>
  156.             </form>
  157.         </div>
  158.     </div>
  159. {% endblock %}