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