app/template/yamaria/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.                     <p>以下のフォームの項目を入力し、よろしければ「確認画面へ」ボタンをクリックしてお進みください。</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.                                     {{ form_errors(form.postal_code) }}
  63.                                 </div>
  64.                                 <div class="ec-zipInputHelp">
  65.                                     <div class="ec-zipInputHelp__icon">
  66.                                         <div class="ec-icon"><img
  67.                                                     src="{{ asset('assets/icon/question-white.svg') }}" alt="">
  68.                                         </div>
  69.                                     </div><a href="https://www.post.japanpost.jp/zipcode/" target="_blank"><span>{{ '郵便番号検索'|trans }}</span></a>
  70.                                 </div>
  71.                                 {{ form_errors(form.postal_code) }}
  72.                                 <div class="ec-select{{ has_errors(form.address.pref) ? ' error' }}">
  73.                                     {{ form_widget(form.address.pref) }}
  74.                                     {{ form_errors(form.address.pref) }}
  75.                                 </div>
  76.                                 <div class="ec-input{{ has_errors(form.address.addr01) ? ' error' }}">
  77.                                     {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  78.                                     {{ form_errors(form.address.addr01) }}
  79.                                 </div>
  80.                                 <div class="ec-input{{ has_errors(form.address.addr02) ? ' error' }}">
  81.                                     {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  82.                                     {{ form_errors(form.address.addr02) }}
  83.                                 </div>
  84.                             </dd>
  85.                         </dl>
  86.                         <dl>
  87.                             <dt>
  88.                                 {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  89.                             </dt>
  90.                             <dd>
  91.                                 <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  92.                                     {{ form_widget(form.phone_number) }}
  93.                                     {{ form_errors(form.phone_number) }}
  94.                                 </div>
  95.                             </dd>
  96.                         </dl>
  97.                         <dl>
  98.                             <dt>
  99.                                 {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  100.                             </dt>
  101.                             <dd>
  102.                                 <div class="ec-input{{ has_errors(form.email) ? ' error' }}">
  103.                                     {{ form_widget(form.email) }}
  104.                                     {{ form_errors(form.email) }}
  105.                                 </div>
  106.                             </dd>
  107.                         </dl>
  108.                         <dl>
  109.                             <dt>
  110.                                 {{ form_label(form.email, 'お問い合わせ内容', { 'label_attr': { 'class': 'ec-label' }}) }}
  111.                             </dt>
  112.                             <dd>
  113.                                 <div class="ec-input{{ has_errors(form.contents) ? ' error' }}">
  114.                                     {{ form_widget(form.contents) }}
  115.                                     {{ form_errors(form.contents) }}
  116.                                 </div>
  117.                                 <p>{{ 'ご購入済の商品に関するお問い合わせには、必ずお買上げ明細書(納品書)に記された「ご注文管理番号」をご記入くださいますようお願いいたします。'|trans }}</p>
  118.                             </dd>
  119.                         </dl>
  120.                         {# エンティティ拡張の自動出力 #}
  121.                         {% for f in form if f.vars.eccube_form_options.auto_render %}
  122.                             {% if f.vars.eccube_form_options.form_theme %}
  123.                                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  124.                                 {{ form_row(f) }}
  125.                             {% else %}
  126.                                 <dl>
  127.                                     <dt>
  128.                                         {{ form_label(f) }}
  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.                     
  141.                     <div>
  142.                         <div class="ec-heading-bold"><p>個人情報保護ポリシー</p></div>
  143.                         <div style="height:20em;overflow-y:scroll;margin:0 0 2em;border:1px solid #DDD;">
  144.                             {{ include('Block/privacy.twig') }}
  145.                         </div>
  146.                     </div>
  147.                     
  148.                     <div class="ec-RegisterRole__actions">
  149.                         <div class="ec-off4Grid">
  150.                             <div class="ec-off4Grid__cell">
  151.                                 <button type="submit" class="ec-blockBtn--action" name="mode" value="confirm">{{ '確認ページへ'|trans }}
  152.                                 </button>
  153.                             </div>
  154.                         </div>
  155.                     </div>
  156.                 </form>
  157.             </div>
  158.         </div>
  159.     </div>
  160. {% endblock %}