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

Open in your IDE?
  1. {% extends 'fullwidth_frame.twig' %}
  2. {% form_theme form 'Form/form_div_layout.twig' %}
  3. {% block javascript %}
  4.     <script src="//yubinbango.github.io/yubinbango/yubinbango.js" charset="UTF-8"></script>
  5.     <script>
  6.         $(document).ready(function() {
  7.         $('#privacy_policy').change(function() {
  8.             if ($(this).is(':checked')) {
  9.                 $('#submit_button').removeAttr('disabled');
  10.             } else {
  11.                 $('#submit_button').attr('disabled', 'disabled');
  12.             }
  13.         });
  14.     });
  15.     </script>
  16. {% endblock javascript %}
  17. {% block main %}
  18. <div class="home_title__inner">
  19.     <h2 class="home_en_title "><span class="en">Contact </span><small>お問い合わせ</small></h2>
  20. </div><!--/.home_title__inner-->
  21. <section class="page_section">
  22.     <div class="page_container">
  23.         <p class="ec-para-normal">
  24.             家具・インテリアのオンライン通販をご利用いただき、誠にありがとうございます。<br>
  25.             ご不明な点がございましたら、まずは「<a target="_blank" href="{{ url('homepage') }}guide">ご利用ガイド</a>」または「<a target="_blank" href="{{ url('homepage') }}faq">よくある質問</a>」をご確認ください。
  26.         </p>
  27.         <br>
  28.         <h2 class="page_h2">ご利用ガイド</h2>
  29.         <div class="page_link_nav">
  30.             <nav>
  31.                 <ul class="page_link_nav__list">
  32.                     <li>
  33.                         <a href="{{ url('homepage') }}guide#target_01"><span>ご注文について</span></a>
  34.                     </li>
  35.                     <li>
  36.                         <a href={{ url('homepage') }}guide"#target_02"><span>ご注文方法について</span></a>
  37.                     </li>
  38.                     <li>
  39.                         <a href="#target_03"><span>お支払い方法について</span></a>
  40.                     </li>
  41.                     <li>
  42.                         <a href="{{ url('homepage') }}guide#target_04"><span>配送・送料について</span></a>
  43.                     </li>
  44.                     <li>
  45.                         <a href="{{ url('homepage') }}guide#target_05"><span>搬入・設置について</span></a>
  46.                     </li>
  47.                     <li>
  48.                         <a href="{{ url('homepage') }}guide#target_06"><span>キャンセル・返品について</span></a>
  49.                     </li>
  50.                 </ul>
  51.             </nav>
  52.         </div><!--/.page_link_nav-->
  53.         <h2 class="page_h2">よくある質問</h2>
  54.         <div class="contact_faq_area">
  55.             <h3>よく閲覧されているご質問内容</h3>
  56.             <ul class="contact_faq_list">
  57.                 <li>掲載商品を実際に見てみたいのですが可能ですか?</li>
  58.                 <li>不要になった家具の引き取りや処分をお願いできますか?</li>
  59.                 <li>配送時間は指定できますか?</li>
  60.                 <li>商品不良(傷・汚れ・パーツ不足)のため返品、交換したい</li>
  61.             </ul>
  62.             <a class="base_link_brn" href="{{ url('homepage') }}faq">
  63.                 <span>よくある質問を全て見る</span>
  64.                 <span>よくある質問を全て見る</span>
  65.             </a>
  66.         </div>
  67.         {% if has_errors(form.contact_type) or has_errors(form.name.name01) or has_errors(form.name.name02) or has_errors(form.kana.kana01) or has_errors(form.kana.kana02) or has_errors(form.kana.kana02) or has_errors(form.postal_code) or has_errors(form.address.pref) or has_errors(form.address.addr01) or has_errors(form.address.addr02) or has_errors(form.phone_number) or has_errors(form.email) or has_errors(form.contents) %}
  68.         <div class="accordion_area accordion_area__contact has_error">
  69.         {% else %}
  70.         <div class="accordion_area accordion_area__contact">
  71.         {% endif %}
  72.             <div class="ac_header">
  73.                 <h2 class="page_h2">お問い合わせフォーム</h2>
  74.                 <div class="i_box"><span>フォームを入力する</span></div>
  75.             </div><!--/.ac_header-->
  76.             <div class="ac_inner">
  77.                 <p>下記より内容を入力のうえ、お問い合わせください。受付時間は24時間となります。内容によっては回答を差し上げるのにお時間を頂くこともございます。<br>また、休業日は翌営業日以降の対応となりますのでご了承ください。</p>
  78.                 <div class="ec-contactRole form_all_wrap">
  79.                             <form method="post" action="{{ url('contact') }}" class="h-adr" novalidate>
  80.                                 <span class="p-country-name" style="display:none;">Japan</span>
  81.                                 {{ form_widget(form._token) }}
  82.                                 <div class="ec-borderedDefs contact_input_area">
  83.                                     <dl>
  84.                                         <dt>
  85.                                             {{ form_label(form.contact_type, 'お問い合わせ項目', { 'label_attr': { 'class': 'ec-label' }}) }}
  86.                                         </dt>
  87.                                         <dd>
  88.                                             <div class="ec-halfInput{{ has_errors(form.contact_type) ? ' error' }}">
  89.                                                 {{ form_widget(form.contact_type) }}
  90.                                                 {{ form_errors(form.contact_type) }}
  91.                                             </div>
  92.                                         </dd>
  93.                                     </dl>
  94.                                     <dl>
  95.                                         <dt>
  96.                                             {{ form_label(form.order_number, 'ご注文番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  97.                                         </dt>
  98.                                         <dd>
  99.                                             <div class="ec-halfInput{{ has_errors(form.order_number) ? ' error' }}">
  100.                                                 {{ form_widget(form.order_number, {'attr': { 'placeholder': '(例)1234567890' }}) }}
  101.                                                <span class="form_caution_text">※注文履歴や、メール等に記載されている00桁の番号を半角英数で入力してください。</span>
  102.                                             </div>
  103.                                         </dd>
  104.                                     </dl>
  105.                                     <dl>
  106.                                         <dt>
  107.                                             {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  108.                                         </dt>
  109.                                         <dd>
  110.                                             <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error' }}">
  111.                                                 {{ form_widget(form.name.name01, {'attr': { 'placeholder': '姓' }}) }}
  112.                                                 {{ form_widget(form.name.name02, {'attr': { 'placeholder': '名' }}) }}
  113.                                                 {{ form_errors(form.name.name01) }}
  114.                                                 {{ form_errors(form.name.name02) }}
  115.                                             </div>
  116.                                         </dd>
  117.                                     </dl>
  118.                                     <dl>
  119.                                         <dt>
  120.                                             {{ form_label(form.kana, 'フリガナ', {'label_attr': {'class': 'ec-label'}}) }}
  121.                                         </dt>
  122.                                         <dd>
  123.                                             <div class="ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error' }}">
  124.                                                 {{ form_widget(form.kana.kana01, {'attr': { 'placeholder': 'セイ' }}) }}
  125.                                                 {{ form_widget(form.kana.kana02, {'attr': { 'placeholder': 'メイ' }}) }}
  126.                                                 {{ form_errors(form.kana.kana01) }}
  127.                                                 {{ form_errors(form.kana.kana02) }}
  128.                                             </div>
  129.                                         </dd>
  130.                                     </dl>
  131.                                     <dl>
  132.                                         <dt>
  133.                                             {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  134.                                         </dt>
  135.                                         <dd>
  136.                                             <div class="ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}">
  137.                                                 <span>{{ '〒'|trans }}</span>
  138.                                                 {{ form_widget(form.postal_code) }}
  139.                                                 <div class="ec-zipInputHelp">
  140.                                                     <a href="https://www.post.japanpost.jp/zipcode/" target="_blank">{{ '郵便番号検索'|trans }}</a>
  141.                                                 </div>
  142.                                                 {{ form_errors(form.postal_code) }}
  143.                                             </div>
  144.                                             <div class="ec-select{{ has_errors(form.address.pref) ? ' error' }}">
  145.                                                 {{ form_widget(form.address.pref) }}
  146.                                                 {{ form_errors(form.address.pref) }}
  147.                                             </div>
  148.                                             <div class="ec-input{{ has_errors(form.address.addr01) ? ' error' }}">
  149.                                                 {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  150.                                                 {{ form_errors(form.address.addr01) }}
  151.                                             </div>
  152.                                             <div class="ec-input{{ has_errors(form.address.addr02) ? ' error' }}">
  153.                                                 {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  154.                                                 {{ form_errors(form.address.addr02) }}
  155.                                             </div>
  156.                                         </dd>
  157.                                     </dl>
  158.                                     <dl>
  159.                                         <dt>
  160.                                             {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  161.                                         </dt>
  162.                                         <dd>
  163.                                             <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  164.                                                 {{ form_widget(form.phone_number) }}
  165.                                                 {{ form_errors(form.phone_number) }}
  166.                                                 <span class="form_caution_text">※ハイフンなしで半角英数で入力してください。</span>
  167.                                             </div>
  168.                                         </dd>
  169.                                     </dl>
  170.                                     <dl>
  171.                                         <dt>
  172.                                             {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  173.                                         </dt>
  174.                                         <dd>
  175.                                             <div class="ec-input{{ has_errors(form.email) ? ' error' }}">
  176.                                                 {{ form_widget(form.email) }}
  177.                                                 {{ form_errors(form.email) }}
  178.                                                 <span class="form_caution_text">※半角英数で入力してください。</span>
  179.                                             </div>
  180.                                         </dd>
  181.                                     </dl>
  182.                                     <dl>
  183.                                         <dt>
  184.                                             {{ form_label(form.contents, 'お問い合わせ内容', { 'label_attr': { 'class': 'ec-label' }}) }}
  185.                                         </dt>
  186.                                         <dd>
  187.                                             <div class="ec-input{{ has_errors(form.contents) ? ' error' }}">
  188.                                                 {{ form_widget(form.contents) }}
  189.                                                 {{ form_errors(form.contents) }}
  190.                                             </div>
  191.                                         </dd>
  192.                                     </dl>
  193.                                     {# エンティティ拡張の自動出力 #}
  194.                                     {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  195.                                         {% if f.vars.eccube_form_options.form_theme %}
  196.                                             {% form_theme f f.vars.eccube_form_options.form_theme %}
  197.                                             {{ form_row(f) }}
  198.                                         {% else %}
  199.                                             <dl>
  200.                                                 <dt>
  201.                                                     {% set label_class =  f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
  202.                                                     {{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
  203.                                                 </dt>
  204.                                                 <dd>
  205.                                                     <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  206.                                                         {{ form_widget(f) }}
  207.                                                         {{ form_errors(f) }}
  208.                                                     </div>
  209.                                                 </dd>
  210.                                             </dl>
  211.                                         {% endif %}
  212.                                     {% endfor %}
  213.                                 </div>
  214.                                 {# 個人情報保護方針のチェック #}
  215.                                 <div class="policy_form_check">
  216.                                     <input class="form-check-input" type="checkbox" value="" id="privacy_policy">
  217.                                     <label class="form-check-label" for="privacy_policy">
  218.                                         <a target="_blank" href="{{ url('homepage') }}policy">個人情報保護方針</a>に同意する
  219.                                     </label>
  220.                                 </div>
  221.                                 <div class="ec-RegisterRole__actions">
  222.                                     <div class="ec-off4Grid">
  223.                                         <div class="ec-off4Grid__cell">
  224.                                             <button type="submit" class="ec-blockBtn--action" name="mode" value="confirm" id="submit_button" disabled>{{ '確認ページへ'|trans }}
  225.                                             </button>
  226.                                         </div>
  227.                                     </div>
  228.                                 </div>
  229.                             </form>
  230.                 </div>
  231.             </div><!--/.ac_inner-->
  232.         </div><!--/.accordion_area-->
  233.     </div><!--/.page_container-->
  234. </section><!--/.page_section-->
  235. {% endblock %}