app/template/default/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 stylesheet %}
  14. <style>
  15. </style>
  16.   
  17. {% endblock %}
  18. {% block main %}
  19.     <div class="ec-contactRole">
  20.         <div class="ec-pageHeader">
  21.             <h1 class="km_pagetitle_ft">{{ 'front.contact.title'|trans }}</h1>
  22.         </div>
  23.         <div class="ec-off1Grid">
  24.             <div class="ec-off1Grid__cell">
  25.                 <form method="post" action="{{ url('contact') }}" novalidate>
  26.                     {{ form_widget(form._token) }}
  27.                     <p class="ec-para-normal">{{ 'front.contact.inquiry_notice'|trans|nl2br }}</p>
  28.                     <div class="ec-borderedDefs">
  29.                         <dl>
  30.                             <dt>
  31.                                 {{ form_label(form.name, 'common.name', { 'label_attr': { 'class': 'ec-label' }}) }}
  32.                             </dt>
  33.                             <dd>
  34.                                 <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error' }}">
  35.                                     {{ form_widget(form.name.name01, {'attr': { 'placeholder': 'common.last_name' }}) }}
  36.                                     {{ form_widget(form.name.name02, {'attr': { 'placeholder': 'common.first_name' }}) }}
  37.                                     {{ form_errors(form.name.name01) }}
  38.                                     {{ form_errors(form.name.name02) }}
  39.                                 </div>
  40.                             </dd>
  41.                         </dl>
  42.                         <dl style="display: none;">
  43.                             {{ form_widget(form.kana.kana01) }}
  44.                             {{ form_widget(form.kana.kana02) }}
  45.                         </dl>
  46.                         <dl>
  47.                             <dt>
  48.                                 {{ form_label(form.phone_number, 'common.phone_number', { 'label_attr': { 'class': 'ec-label' }}) }}
  49.                             </dt>
  50.                             <dd>
  51.                                 <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  52.                                     {{ form_widget(form.phone_number) }}
  53.                                     {{ form_errors(form.phone_number) }}
  54.                                 </div>
  55.                             </dd>
  56.                         </dl>
  57.                         <dl>
  58.                             <dt>
  59.                                 {{ form_label(form.email, 'common.mail_address', { 'label_attr': { 'class': 'ec-label' }}) }}
  60.                             </dt>
  61.                             <dd>
  62.                                 <div class="ec-input{{ has_errors(form.email.first) ? ' error' }}">
  63.                                     {{ form_widget(form.email.first, { 'attr': { 'placeholder': 'common.mail_address_sample' }}) }}
  64.                                     {{ form_errors(form.email.first) }}
  65.                                 </div>
  66.                                 <div class="ec-input{{ has_errors(form.email.second) ? ' error' }}">
  67.                                     {{ form_widget(form.email.second, { 'attr': { 'placeholder': 'common.repeated_confirm' }}) }}
  68.                                     {{ form_errors(form.email.second) }}
  69.                                 </div>
  70.                             </dd>
  71.                         </dl>
  72.                         <dl>
  73.                             <dt>
  74.                                 {{ form_label(form.contents, 'front.contact.inquiry_contents', { 'label_attr': { 'class': 'ec-label' }}) }}
  75.                             </dt>
  76.                             <dd>
  77.                                 <div class="ec-input{{ has_errors(form.contents) ? ' error' }}">
  78.                                     {{ form_widget(form.contents) }}
  79.                                     {{ form_errors(form.contents) }}
  80.                                 </div>
  81.                                 <p>{{ 'front.contact.order_notice'|trans }}</p>
  82.                             </dd>
  83.                         </dl>
  84.                         {# エンティティ拡張の自動出力 #}
  85.                         {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  86.                             {% if f.vars.eccube_form_options.form_theme %}
  87.                                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  88.                                 {{ form_row(f) }}
  89.                             {% else %}
  90.                                 <dl>
  91.                                     <dt>
  92.                                         {% set label_class =  f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
  93.                                         {{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
  94.                                     </dt>
  95.                                     <dd>
  96.                                         <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  97.                                             {{ form_widget(f) }}
  98.                                             {{ form_errors(f) }}
  99.                                         </div>
  100.                                     </dd>
  101.                                 </dl>
  102.                             {% endif %}
  103.                         {% endfor %}
  104.                     </div>
  105.                     <div class="ec-RegisterRole__actions">
  106.                         <div class="ec-off4Grid">
  107.                             <div class="ec-off4Grid__cell">
  108.                                 <button type="submit" class="ec-blockBtn--action" name="mode" value="confirm">{{ 'common.go_to_confirm'|trans }}
  109.                                 </button>
  110.                             </div>
  111.                         </div>
  112.                     </div>
  113.                 </form>
  114.                 <p>{{ 'front.contact.form_message1'|trans }}<br>
  115.                     {{ 'front.contact.form_message2'|trans }}<a href="https://kofun.co.jp/contact">コチラ</a>
  116.                     {{ 'front.contact.form_message3'|trans }}
  117.                 </p>
  118.             </div>
  119.         </div>
  120.     </div>
  121. {% endblock %}