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