app/template/default/Contact2/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.     <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('contact2') }}" 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. また、土日、祝祭日、年末年始、夏季期間は翌営業日以降の対応となりますのでご了承ください。
  26. '|trans|nl2br }}</p>
  27.  
  28.                     <div class="ec-borderedDefs">
  29.  <dl>
  30.     <dt>
  31.         {{ form_label(form.company_name, '企業・団体名', { 'label_attr': { 'class': 'ec-label' }}) }}
  32.     </dt>
  33.     <dd>
  34.     <div class="ec-select{{ has_errors(form.company_name) ? ' error' }}">
  35.         {{ form.company_name.vars.data }}
  36.         {{ form_widget(form.company_name) }}
  37.         {{ form_errors(form.company_name) }}
  38.     </div>
  39.     </dd>
  40. </dl>
  41.                         <dl>
  42.                             <dt>
  43.                                 {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  44.                             </dt>
  45.                             <dd>
  46.                                 <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error' }}">
  47.                                     {{ form_widget(form.name.name01, {'attr': { 'placeholder': '姓' }}) }}
  48.                                     {{ form_widget(form.name.name02, {'attr': { 'placeholder': '名' }}) }}
  49.                                     {{ form_errors(form.name.name01) }}
  50.                                     {{ form_errors(form.name.name02) }}
  51.                                 </div>
  52.                             </dd>
  53.                         </dl>
  54.                         <dl>
  55.                             <dt>
  56.                                 {{ form_label(form.kana, 'お名前(カナ)', {'label_attr': {'class': 'ec-label'}}) }}
  57.                             </dt>
  58.                             <dd>
  59.                                 <div class="ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error' }}">
  60.                                     {{ form_widget(form.kana.kana01, {'attr': { 'placeholder': 'セイ' }}) }}
  61.                                     {{ form_widget(form.kana.kana02, {'attr': { 'placeholder': 'メイ' }}) }}
  62.                                     {{ form_errors(form.kana.kana01) }}
  63.                                     {{ form_errors(form.kana.kana02) }}
  64.                                 </div>
  65.                             </dd>
  66.                         </dl>
  67.                         <dl>
  68.                             <dt>
  69.                                 {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  70.                             </dt>
  71.                             <dd>
  72.                                 <div class="ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}">
  73.                                     <span>{{ '〒'|trans }}</span>
  74.                                     {{ form_widget(form.postal_code) }}
  75.                                     <div class="ec-zipInputHelp">
  76.                                         <div class="ec-zipInputHelp__icon">
  77.                                             <div class="ec-icon"><img
  78.                                                     src="{{ asset('assets/icon/question-white.svg') }}" alt="">
  79.                                             </div>
  80.                                         </div><a href="https://www.post.japanpost.jp/zipcode/" target="_blank"><span>{{ '郵便番号検索'|trans }}</span></a>
  81.                                     </div>
  82.                                     {{ form_errors(form.postal_code) }}
  83.                                 </div>
  84.                                 <div class="ec-select{{ has_errors(form.address.pref) ? ' error' }}">
  85.                                     {{ form_widget(form.address.pref) }}
  86.                                     {{ form_errors(form.address.pref) }}
  87.                                 </div>
  88.                                 <div class="ec-input{{ has_errors(form.address.addr01) ? ' error' }}">
  89.                                     {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  90.                                     {{ form_errors(form.address.addr01) }}
  91.                                 </div>
  92.                                 <div class="ec-input{{ has_errors(form.address.addr02) ? ' error' }}">
  93.                                     {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  94.                                     {{ form_errors(form.address.addr02) }}
  95.                                 </div>
  96.                             </dd>
  97.                         </dl>
  98.                         <dl>
  99.                             <dt>
  100.                                 {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  101.                             </dt>
  102.                             <dd>
  103.                                 <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  104.                                     {{ form_widget(form.phone_number) }}
  105.                                     {{ form_errors(form.phone_number) }}
  106.                                 </div>
  107.                             </dd>
  108.                         </dl>
  109.                         <dl>
  110.                             <dt>
  111.                                 {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  112.                             </dt>
  113.                             <dd>
  114.                                 <div class="ec-input{{ has_errors(form.email) ? ' error' }}">
  115.                                     {{ form_widget(form.email) }}
  116.                                     {{ form_errors(form.email) }}
  117.                                 </div>
  118.                             </dd>
  119.                         </dl>
  120.                           <tr>
  121.                             <td colspan="2"><b>物件概要</b></td>
  122.                           </tr>        
  123.                          <dl>
  124.                             <dt>
  125.                                 {{ form_label(form.sale_type, 'タイプ', { 'label_attr': {'class': 'ec-label' }}) }}
  126.                             </dt>
  127.                             <dd>
  128.                                 <div class="ec-select{{ has_errors(form.sale_type) ? ' error' }}">
  129.                                     {{ form.sale_type.vars.data }}
  130.                                     {{ form_widget(form.sale_type) }}
  131.                                     {{ form_errors(form.sale_type) }}
  132.                                 </div>
  133.                             </dd>
  134.                         </dl>
  135.                         <dl>
  136.                             <dt>
  137.                                 {{ form_label(form.sale_price, '販売希望価格', { 'label_attr': { 'class': 'ec-label' }}) }}
  138.                             </dt>
  139.                             <dd>
  140.                                 <div class="ec-halfInput{{ has_errors(form.sale_price) ? ' error' }}">
  141.                                     {{ form.sale_price.vars.data }}
  142.                                     {{ form_widget(form.sale_price, {'attr': { 'placeholder': '販売希望価格' }}) }}
  143.                                     {{ form_errors(form.sale_price) }}
  144.                                 </div>
  145.                             </dd>
  146.                         </dl>
  147.                         <dl>
  148.                             <dt>
  149.                                 {{ form_label(form.adDetail, '所在番地', { 'label_attr': { 'class': 'ec-label' }}) }}
  150.                             </dt>
  151.                             <dd>
  152.                                 <div class="ec-halfInput{{ has_errors(form.adDetail) ? ' error' }}">
  153.                                     {{ form_widget(form.adDetail, {'attr': { 'placeholder': '所在番地' }}) }}
  154.                                     {{ form_errors(form.adDetail) }}
  155.                                 </div>
  156.                             </dd>
  157.                         </dl>
  158.                         <dl>
  159.                             <dt>
  160.                                 {{ form_label(form.landArea, '土地面積', { 'label_attr': { 'class': 'ec-label' }}) }}
  161.                             </dt>
  162.                             <dd>
  163.                                 <div class="ec-halfInput{{ has_errors(form.landArea) ? ' error' }}">
  164.                                     {{ form_widget(form.landArea, {'attr': { 'placeholder': '土地面積' }}) }}
  165.                                     {{ form_errors(form.landArea) }}
  166.                                 </div>
  167.                             </dd>
  168.                         </dl>
  169.                         <dl>
  170.                             <dt>
  171.                                 {{ form_label(form.buildArea, '建物(専有)面積', { 'label_attr': { 'class': 'ec-label' }}) }}
  172.                             </dt>
  173.                             <dd>
  174.                                 <div class="ec-halfInput{{ has_errors(form.buildArea) ? ' error' }}">
  175.                                     {{ form_widget(form.buildArea, {'attr': { 'placeholder': '建物(専有)面積' }}) }}
  176.                                     {{ form_errors(form.buildArea) }}
  177.                                 </div>
  178.                             </dd>
  179.                         </dl>
  180.                         <dl>
  181.                             <dt>
  182.                                 {{ form_label(form.year, '築年月', { 'label_attr': { 'class': 'ec-label' }}) }}
  183.                             </dt>
  184.                             <dd>
  185.                                 <div class="ec-halfInput{{ has_errors(form.year) ? ' error' }}">
  186.                                     {{ form_widget(form.year, {'attr': { 'placeholder': '築年月' }}) }}
  187.                                     {{ form_errors(form.year) }}
  188.                                 </div>
  189.                             </dd>
  190.                         </dl>
  191.                         <dl>
  192.                             <dt>
  193.                                 {{ form_label(form.chimoku, '地目', { 'label_attr': { 'class': 'ec-label' }}) }}
  194.                             </dt>
  195.                             <dd>
  196.                                 <div class="ec-halfInput{{ has_errors(form.chimoku) ? ' error' }}">
  197.                                     {{ form_widget(form.chimoku, {'attr': { 'placeholder': '地目' }}) }}
  198.                                     {{ form_errors(form.chimoku) }}
  199.                                 </div>
  200.                             </dd>
  201.                         </dl>
  202.                         <dl>
  203.                             <dt>
  204.                                 {{ form_label(form.meiginin, '名義人', { 'label_attr': { 'class': 'ec-label' }}) }}
  205.                             </dt>
  206.                             <dd>
  207.                                 <div class="ec-halfInput{{ has_errors(form.meiginin) ? ' error' }}">
  208.                                     {{ form_widget(form.meiginin, {'attr': { 'placeholder': '名義人' }}) }}
  209.                                     {{ form_errors(form.meiginin) }}
  210.                                 </div>
  211.                             </dd>
  212.                         </dl>
  213.                         <dl>
  214.                             <dt>
  215.                                 {{ form_label(form.contents, 'お問い合わせ内容', { 'label_attr': { 'class': 'ec-label' }}) }}
  216.                             </dt>
  217.                             <dd> 
  218.                                 <div class="ec-input{{ has_errors(form.contents) ? ' error' }}">
  219.                                     {{ form_widget(form.contents) }}
  220.                                     {{ form_errors(form.contents) }}
  221.                                 </div>
  222.                             </dd>
  223.                         </dl>
  224.                         {# エンティティ拡張の自動出力 #}
  225.                         {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  226.                             {% if f.vars.eccube_form_options.form_theme %}
  227.                                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  228.                                 {{ form_row(f) }}
  229.                             {% else %}
  230.                                 <dl>
  231.                                     <dt>
  232.                                         {{ form_label(f) }}
  233.                                     </dt>
  234.                                     <dd>
  235.                                         <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  236.                                             {{ form_widget(f) }}
  237.                                             {{ form_errors(f) }}
  238.                                         </div>
  239.                                     </dd>
  240.                                 </dl>
  241.                             {% endif %}
  242.                         {% endfor %}
  243.                     </div>
  244.                     <div class="ec-RegisterRole__actions">
  245.                         <div class="ec-off4Grid">
  246.                             <div class="ec-off4Grid__cell">
  247.                                 <button type="submit" class="ec-blockBtn--action" name="mode" value="confirm">{{ '確認ページへ'|trans }}
  248.                                 </button>
  249.                             </div>
  250.                         </div>
  251.                     </div>
  252.                 </form>
  253.             </div>
  254.         </div>
  255.     </div>
  256. {% endblock %}