app/template/default/Inquiry/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.         {{ include('Block/banner.twig', { 'image': asset('assets/img/contact.png', "user_data"), 'title': 'CONTACT', 'subtitle': 'お問い合わせ' }) }}
  15.     <div class="ec-inquiryRole">
  16.         <div class="ec-inquiryRole__container">
  17.             <form method="post" action="{{ url('inquiry') }}" class="h-adr" novalidate>
  18.                 <span class="p-country-name" style="display:none;">Japan</span>
  19.                 {{ form_widget(form._token) }}
  20.                 <p class="inquiry__note scroll-fadein">{{ '興味を持っていただきありがとうございます
  21.                         下記フォーム、お電話から、お気軽にお問い合わせください。
  22.                     '|trans|nl2br }}
  23.                 </p>
  24.                 <div class="inquiry__info text-center scroll-fadein">
  25.                     <p class="phone">
  26.                         <i class="fa fa-phone" aria-hidden="true" style="transform: rotate(90deg);"></i>
  27.                         <span>0120-356-100</span>
  28.                     </p>
  29.                     <p>
  30.                         {{
  31.                             '[受付時間] 平日9:00~18:00 
  32.                             (土・日・祝日定休)'|nl2br
  33.                         }}
  34.                     </p>
  35.                 </div>
  36.                 <div class="ec-borderedDefs scroll-fadein">
  37.                     <dl>
  38.                         <dt>
  39.                             {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  40.                         </dt>
  41.                         <dd>
  42.                             <div class="ec-input{{ has_errors(form.name) ? ' error' }}">
  43.                                 {{ form_widget(form.name, {'attr': { 'placeholder': 'お名前' }}) }}
  44.                                 {{ form_errors(form.name) }}
  45.                             </div>
  46.                         </dd>
  47.                     </dl>
  48.                     <dl>
  49.                         <dt>
  50.                             {{ form_label(form.kana, 'フリガナ', {'label_attr': {'class': 'ec-label'}}) }}
  51.                         </dt>
  52.                         <dd>
  53.                             <div class="ec-input{{ has_errors(form.kana) ? ' error' }}">
  54.                                 {{ form_widget(form.kana, {'attr': { 'placeholder': 'フリガナ' }}) }}
  55.                                 {{ form_errors(form.kana) }}
  56.                             </div>
  57.                         </dd>
  58.                     </dl>
  59.                     <dl>
  60.                         <dt>
  61.                             {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  62.                         </dt>
  63.                         <dd>
  64.                             <div class="ec-input{{ has_errors(form.email) ? ' error' }}">
  65.                                 {{ form_widget(form.email, {'attr': { 'placeholder': 'XXXXXX@XXXX.OO.com' }}) }}
  66.                                 {{ form_errors(form.email) }}
  67.                             </div>
  68.                         </dd>
  69.                     </dl>
  70.                     <dl>
  71.                         <dt>
  72.                             {{ form_label(form.title, 'お問い合わせ内容', { 'label_attr': { 'class': 'ec-label' }}) }}
  73.                         </dt>
  74.                         <dd>
  75.                             <div class="ec-input{{ has_errors(form.title) ? ' error' }}">
  76.                                 {{ form_widget(form.title) }}
  77.                                 {{ form_errors(form.title) }}
  78.                             </div>
  79.                         </dd>
  80.                     </dl>
  81.                     <dl>
  82.                         <dt>
  83.                             {{ form_label(form.content, 'お問い合わせ内容詳細', { 'label_attr': { 'class': 'ec-label' }}) }}
  84.                         </dt>
  85.                         <dd>
  86.                             <div class="ec-input{{ has_errors(form.content) ? ' error' }}">
  87.                                 {{ form_widget(form.content) }}
  88.                                 {{ form_errors(form.content) }}
  89.                             </div>
  90.                         </dd>
  91.                     </dl>
  92.                     {# エンティティ拡張の自動出力 #}
  93.                     {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  94.                         {% if f.vars.eccube_form_options.form_theme %}
  95.                             {% form_theme f f.vars.eccube_form_options.form_theme %}
  96.                             {{ form_row(f) }}
  97.                         {% else %}
  98.                             <dl>
  99.                                 <dt>
  100.                                     {% set label_class =  f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
  101.                                     {{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
  102.                                 </dt>
  103.                                 <dd>
  104.                                     <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  105.                                         {{ form_widget(f) }}
  106.                                         {{ form_errors(f) }}
  107.                                     </div>
  108.                                 </dd>
  109.                             </dl>
  110.                         {% endif %}
  111.                     {% endfor %}
  112.                 </div>
  113.                 <div class="ec-RegisterRole__actions">
  114.                     <div class="ec-off4Grid">
  115.                         <div class="ec-off4Grid__cell">
  116.                             <button type="submit" class="inquiry__btn h-transparent" name="mode" value="confirm">{{ '送信'|trans }}
  117.                             </button>
  118.                         </div>
  119.                     </div>
  120.                 </div>
  121.             </form>
  122.         </div>
  123.     </div>
  124. {% endblock %}