app/template/mizunasu/Contact/confirm.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 main %}
  11.     <div class="ec-contactConfirmRole">
  12.         <div class="ec-pageHeader">
  13.             <h1>{{ 'お問い合わせ'|trans }}</h1>
  14.         </div>
  15.         <div class="ec-off1Grid">
  16.             <div class="ec-off1Grid__cell">
  17.                 <form method="post" action="{{ url('contact') }}" class="h-adr">
  18.                     {{ form_widget(form._token) }}
  19.                     <p>{{ '内容によっては回答をさしあげるのにお時間をいただくこともございます。
  20. また、休業日は翌営業日以降の対応となりますのでご了承ください。
  21. '|trans|nl2br }}</p>
  22.                     <div class="ec-borderedDefs">
  23.                         <dl>
  24.                             <dt>
  25.                                 {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label '}}) }}
  26.                             </dt>
  27.                             <dd>
  28.                                 {{ form.name.name01.vars.data }}
  29.                                 {{ form.name.name02.vars.data }}
  30.                                 {{ form_widget(form.name.name01, { type : 'hidden' }) }}
  31.                                 {{ form_widget(form.name.name02, { type : 'hidden' }) }}
  32.                             </dd>
  33.                         </dl>
  34.                         <dl>
  35.                             <dt>
  36.                                 {{ form_label(form.kana, 'お名前(カナ)', { 'label_attr': { 'class': 'ec-label' }}) }}
  37.                             </dt>
  38.                             <dd>
  39.                                 {{ form.kana.kana01.vars.data }}
  40.                                 {{ form.kana.kana02.vars.data }}
  41.                                 {{ form_widget(form.kana.kana01, { type : 'hidden' }) }}
  42.                                 {{ form_widget(form.kana.kana02, { type : 'hidden' }) }}
  43.                             </dd>
  44.                         </dl>
  45.                         <dl>
  46.                             <dt>
  47.                                 {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  48.                             </dt>
  49.                             <dd>
  50.                                 {# 郵便番号 #}
  51.                                 <span><span>{{ '〒'|trans }}</span></span>{{ form.postal_code.vars.data }}
  52.                                 {{ form_widget(form.postal_code, { type : 'hidden' }) }}
  53.                                 {# 都道府県・住所 #}
  54.                                 {{ form.address.pref.vars.data }} {{ form.address.addr01.vars.data }} {{ form.address.addr02.vars.data }}
  55.                                 {{ form_widget(form.address.pref, { type : 'hidden' }) }}
  56.                                 {{ form_widget(form.address.addr01, { type : 'hidden' }) }}
  57.                                 {{ form_widget(form.address.addr02, { type : 'hidden' }) }}
  58.                             </dd>
  59.                         </dl>
  60.                         <dl>
  61.                             <dt>
  62.                                 {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  63.                             </dt>
  64.                             <dd>{{ form.phone_number.vars.data }}
  65.                                 {{ form_widget(form.phone_number, { type : 'hidden' }) }}
  66.                             </dd>
  67.                         </dl>
  68.                         <dl>
  69.                             <dt>
  70.                                 {{ form_label(form.email, 'メールアドレス', {'label_attr': {'class': 'ec-label'}}) }}
  71.                             </dt>
  72.                             <dd>
  73.                                 {{ form.email.vars.data }}
  74.                                 {{ form_widget(form.email, { type : 'hidden' }) }}
  75.                             </dd>
  76.                         </dl>
  77.                         <dl>
  78.                             <dt>
  79.                                 {{ form_label(form.contents, 'お問い合わせ内容', { 'label_attr': { 'class': 'ec-label' }}) }}
  80.                             </dt>
  81.                             <dd>
  82.                                 {{ form.contents.vars.data|nl2br }}
  83.                                 {{ form_widget(form.contents, { type : 'hidden' }) }}
  84.                             </dd>
  85.                         </dl>
  86.                         {# エンティティ拡張の自動出力 #}
  87.                         {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  88.                             {% if f.vars.eccube_form_options.form_theme %}
  89.                                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  90.                                 {{ form_row(f) }}
  91.                             {% else %}
  92.                                 <dl>
  93.                                     <dt>
  94.                                         {{ form_label(f) }}
  95.                                     </dt>
  96.                                     <dd>
  97.                                         <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  98.                                             {{ f.vars.data }}
  99.                                             {{ form_widget(f, { type: 'hidden'}) }}
  100.                                         </div>
  101.                                     </dd>
  102.                                 </dl>
  103.                             {% endif %}
  104.                         {% endfor %}
  105.                     </div>
  106.                     <div class="ec-RegisterRole__actions">
  107.                         <div class="ec-off4Grid">
  108.                             <div class="ec-off4Grid__cell">
  109.                                 <button type="submit"
  110.                                         class="ec-blockBtn--action"
  111.                                         name="mode"
  112.                                         value="complete">{{ '送信する'|trans }}
  113.                                 </button>
  114.                                 <button type="submit"
  115.                                         class="ec-blockBtn--cancel"
  116.                                         name="mode"
  117.                                         value="back">{{ '戻る'|trans }}
  118.                                 </button>
  119.                             </div>
  120.                         </div>
  121.                     </div>
  122.                 </form>
  123.             </div>
  124.         </div>
  125.     </div>
  126. {% endblock %}