app/template/airconwork/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 title %}
  14. <h1 class="c-title-06">
  15. <span class="s-text">
  16. お問い合わせ
  17. </span>
  18. </h1>
  19. {% endblock %}
  20. {% block main %}
  21. <div class="p-contact-form">
  22.     <form method="post" action="{{ url('contact') }}" class="h-adr" novalidate>
  23.         <span class="p-country-name" style="display:none;">Japan</span>
  24.         {{ form_widget(form._token) }}
  25.         <p class="ec-para-normal">{{ '内容によっては回答をさしあげるのにお時間をいただくこともございます。
  26. また、休業日は翌営業日以降の対応となりますのでご了承ください。
  27. '|trans|nl2br }}</p>
  28.         <div class="ec-borderedDefs">
  29.             <table class="c-table-02  s-sp" summary="問い合わせフォーム">
  30. <tr>
  31.                 <th>
  32.                     {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  33.                 </th>
  34.                 <td>
  35.                     <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error' }}">
  36.                         {{ form_widget(form.name.name01, {'attr': { 'placeholder': '姓' }}) }}
  37.                         {{ form_widget(form.name.name02, {'attr': { 'placeholder': '名' }}) }}
  38.                         {{ form_errors(form.name.name01) }}
  39.                         {{ form_errors(form.name.name02) }}
  40.                     </div>
  41.                 </td>
  42.             </tr>
  43.             <tr>
  44.                 <th>
  45.                     {{ form_label(form.kana, 'お名前(カナ)', {'label_attr': {'class': 'ec-label'}}) }}
  46.                 </th>
  47.                 <td>
  48.                     <div class="ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error' }}">
  49.                         {{ form_widget(form.kana.kana01, {'attr': { 'placeholder': 'セイ' }}) }}
  50.                         {{ form_widget(form.kana.kana02, {'attr': { 'placeholder': 'メイ' }}) }}
  51.                         {{ form_errors(form.kana.kana01) }}
  52.                         {{ form_errors(form.kana.kana02) }}
  53.                     </div>
  54.                 </td>
  55.             </tr>
  56.             <tr>
  57.                 <th>
  58.                     {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  59.                 </th>
  60.                 <td>
  61.                     <div class="ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}">
  62.                         <span>{{ '〒'|trans }}</span>
  63.                         {{ form_widget(form.postal_code) }}
  64.                         <a href="https://www.post.japanpost.jp/zipcode/" target="_blank"><span>{{ '郵便番号検索'|trans }}</span></a>
  65.                         {{ form_errors(form.postal_code) }}
  66.                     </div>
  67.                     <div class="ec-select{{ has_errors(form.address.pref) ? ' error' }}">
  68.                         {{ form_widget(form.address.pref) }}
  69.                         {{ form_errors(form.address.pref) }}
  70.                     </div>
  71.                     <div class="ec-input{{ has_errors(form.address.addr01) ? ' error' }}">
  72.                         {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  73.                         {{ form_errors(form.address.addr01) }}
  74.                     </div>
  75.                     <div class="ec-input{{ has_errors(form.address.addr02) ? ' error' }}">
  76.                         {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  77.                         {{ form_errors(form.address.addr02) }}
  78.                     </div>
  79.                     <p>住所は2つに分けてご記入ください。マンション名は必ず記入してください。</p>
  80.                 </td>
  81.             </tr>
  82.             <tr>
  83.                 <th>
  84.                     {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  85.                 </th>
  86.                 <td>
  87.                     <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  88.                         {{ form_widget(form.phone_number) }}
  89.                         {{ form_errors(form.phone_number) }}
  90.                     </div>
  91.                 </td>
  92.             </tr>
  93.             <tr>
  94.                 <th>
  95.                     {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  96.                 </th>
  97.                 <td>
  98.                     <div class="ec-input{{ has_errors(form.email) ? ' error' }}">
  99.                         {{ form_widget(form.email) }}
  100.                         {{ form_errors(form.email) }}
  101.                     </div>
  102.                 </td>
  103.             </tr>
  104.             <tr>
  105.                 <th>
  106.                     {{ form_label(form.contents, 'お問い合わせ内容', { 'label_attr': { 'class': 'ec-label' }}) }}
  107.                 </th>
  108.                 <td>
  109.                     <div class="ec-input{{ has_errors(form.contents) ? ' error' }}">
  110.                         {{ form_widget(form.contents) }}
  111.                         {{ form_errors(form.contents) }}
  112.                     </div>
  113.                 </td>
  114.             </tr>
  115.             {# エンティティ拡張の自動出力 #}
  116.             {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  117.                 {% if f.vars.eccube_form_options.form_theme %}
  118.                     {% form_theme f f.vars.eccube_form_options.form_theme %}
  119.                     {{ form_row(f) }}
  120.                 {% else %}
  121.                     <tr>
  122.                         <th>
  123.                             {% set label_class =  f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
  124.                             {{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
  125.                         </th>
  126.                         <td>
  127.                             <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  128.                                 {{ form_widget(f) }}
  129.                                 {{ form_errors(f) }}
  130.                             </div>
  131.                         </td>
  132.                     </tr>
  133.                 {% endif %}
  134.             {% endfor %}
  135.             </table>
  136.         </div>
  137.         <div class="p-contact-form__btn">
  138.             <button type="submit" class="ec-blockBtn--action c-btn-01" name="mode" value="confirm">
  139.             <span class="s-text">{{ '入力内容を確認する'|trans }}</span>
  140.             <i class="s-icon">
  141.                 <svg>
  142.                 <use xlink:href="/html/template/airconwork/assets/img/ico/ico_arrow_forward.svg#obj"></use>
  143.                 </svg>
  144.             </i>
  145.             </button>
  146.         </div>
  147.     </form>
  148. </div>
  149. {% endblock %}