app/template/kaorime/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.     <style>
  15.         /*EC-CUBEのCSSを強制上書きしてデザインに揃える*/
  16.         .ec-halfInput input, .ec-telInput input{
  17.             width: 100% !important;
  18.             max-width: 100% !important;
  19.         }
  20.     </style>
  21.     <div role="main">
  22.         <!-- PAGE CONTENTS -->
  23.         <div class="contact contactIndex">
  24.             <div class="sub-container">
  25.                 <!-- H1 -->
  26.                 <div class="sub-h1">
  27.                     <h1 class="itemTitle">
  28.                         お問い合わせ
  29.                     </h1>
  30.                 </div>
  31.                 <!-- /H1 -->
  32.                 <!-- CONTENTS -->
  33.                 <div class="l-container l-2ColumnContainer">
  34.                     <!-- MAIN-CONTENTS -->
  35.                     <div class="l-main">
  36.                         <!-- BREAD CRUMBS -->
  37.                         <div class="sub-breadcrumbsWrap">
  38.                             <ul class="sub-breadcrumbs">
  39.                                 <li><a href="/">TOP</a></li>
  40.                                 <li>お問い合わせ</li>
  41.                             </ul>
  42.                         </div>
  43.                         <!-- /BREAD CRUMBS -->
  44.                         <!-- MAIN CONTENTS -->
  45.                         <section class="contact-section">
  46.                             <h2 class="mod-hl-01">お問い合わせフォーム</h2>
  47.                             <!-- FORM -->
  48.                             <form action="{{ url('contact') }}" method="post" class="h-adr" novalidate>
  49.                                 <span class="p-country-name" style="display:none;">Japan</span>
  50.                                 {{ form_widget(form._token) }}
  51.                                 <section class="contact-formCell">
  52.                                     <h3 class="mod-hl-04">お名前</h3>
  53.                                     <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error' }}">
  54.                                         <div class="contact-input2clm">
  55.                                             <div class="boxItem">
  56.                                                 {{ form_widget(form.name.name01, {'attr': { 'placeholder': '姓', 'class': 'mod-form-input-text--03' }}) }}
  57.                                                 {{ form_errors(form.name.name01) }}
  58.                                             </div>
  59.                                             <div class="boxItem">
  60.                                                 {{ form_widget(form.name.name02, {'attr': { 'placeholder': '名', 'class': 'mod-form-input-text--03' }}) }}
  61.                                                 {{ form_errors(form.name.name02) }}
  62.                                             </div>
  63.                                         </div>
  64.                                     </div>
  65.                                 </section>
  66.                                 <section class="contact-formCell">
  67.                                     <h3 class="mod-hl-04">メールアドレス</h3>
  68.                                     <div class="ec-input{{ has_errors(form.email) ? ' error' }}">
  69.                                         {{ form_widget(form.email, {'attr':{ 'class': 'mod-form-input-text--03', 'placeholder': '例:sample@kaorimee.co.jp' }}) }}
  70.                                         {{ form_errors(form.email) }}
  71.                                     </div>
  72.                                 </section>
  73.                                 <section class="contact-formCell">
  74.                                     <h3 class="mod-hl-04">お電話番号 <span class="mod-form-ninniTag">任意</span></h3>
  75.                                     <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  76.                                         {{ form_widget(form.phone_number, {'attr':{ 'class': 'mod-form-input-text--03', 'placeholder': '例:00011112222' }}) }}
  77.                                         {{ form_errors(form.phone_number) }}
  78.                                     </div>
  79.                                 </section>
  80.                                 <section class="contact-formCell">
  81.                                     <h3 class="mod-hl-04">オーダー番号 <span class="mod-form-ninniTag">任意</span></h3>
  82.                                     {{ form_widget(form.order_number, {'attr': {'class': 'mod-form-input-text--03', 'placeholder': '例:1234567890'}}) }}
  83.                                     {{ form_errors(form.order_number) }}
  84.                                 </section>
  85.                                 <section class="contact-formCell">
  86.                                     <h3 class="mod-hl-04">お問い合わせ内容</h3>
  87.                                     <div class="ec-input{{ has_errors(form.contents) ? ' error' }}">
  88.                                         {{ form_widget(form.contents, {'attr': {'class': 'mod-form-input-textArea', 'placeholder': 'お問い合わせ内容をご記入ください'}}) }}
  89.                                         {{ form_errors(form.contents) }}
  90.                                     </div>
  91.                                 </section>
  92.                                 <p class="contact-formPolicyTxt">
  93.                                     <a href="/help/privacy" target="_blank">個人情報保護方針</a>にご同意の上、<br class="dn-pc">入力内容の確認に進んでください。
  94.                                 </p>
  95.                                 {# エンティティ拡張の自動出力 #}
  96.                                 {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  97.                                     {% if f.vars.eccube_form_options.form_theme %}
  98.                                         {% form_theme f f.vars.eccube_form_options.form_theme %}
  99.                                         {{ form_row(f) }}
  100.                                     {% else %}
  101.                                         <dl>
  102.                                             <dt>
  103.                                                 {% set label_class =  f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
  104.                                                 {{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
  105.                                             </dt>
  106.                                             <dd>
  107.                                                 <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  108.                                                     {{ form_widget(f) }}
  109.                                                     {{ form_errors(f) }}
  110.                                                 </div>
  111.                                             </dd>
  112.                                         </dl>
  113.                                     {% endif %}
  114.                                 {% endfor %}
  115.                                 <div class="mod-btn-cMain contact-form-submit-send">
  116.                                     <span class="btnInner">同意して確認画面へ</span>
  117.                                     <input type="submit" name="mode" value="confirm">
  118.                                 </div>
  119.                                 <!-- リセット&送信ボタン
  120.                                 <div class="mod-btnContainer">
  121.                                   <div class="mod-btn-cGray contact-form-submit-send">
  122.                                     <span class="btnInner">リセット</span>
  123.                                     <input class="form-submit" id="BtnMessageBack" type="submit" value="リセット">
  124.                                   </div>
  125.                                   <div class="mod-btn-cMain contact-form-submit-send">
  126.                                     <span class="btnInner">送信</span>
  127.                                     <input type="submit" value="送信">
  128.                                   </div>
  129.                                 </div> -->
  130.                             </form>
  131.                             <!-- /FORM -->
  132.                         </section>
  133.                         <!-- /MAIN CONTENTS -->
  134.                     </div>
  135.                     <!-- /MAIN-CONTENTS -->
  136.                     <!-- SIDE-CONTENTS -->
  137.                     {{ include('Block/side_menu.twig') }}
  138.                     <!-- /SIDE-CONTENTS -->
  139.                 </div>
  140.                 <!-- /CONTENTS -->
  141.             </div>
  142.         </div>
  143.         <!-- /PAGE CONTENTS -->
  144.     </div>
  145. {% endblock %}