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 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('contact') }}" 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. '|trans|nl2br }}</p>
  25.                     <p class="ec-para-normal">{{ 'ご連絡お待ちしております!
  26. '|trans|nl2br }}</p>
  27.                     <div class="ec-borderedDefs">
  28.                         <dl>
  29.                             <dt>
  30.                                 {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  31.                             </dt>
  32.                             <dd>
  33.                                 <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error' }}">
  34.                                     {{ form_widget(form.name.name01, {'attr': { 'placeholder': '姓' }}) }}
  35.                                     {{ form_widget(form.name.name02, {'attr': { 'placeholder': '名' }}) }}
  36.                                     {{ form_errors(form.name.name01) }}
  37.                                     {{ form_errors(form.name.name02) }}
  38.                                 </div>
  39.                             </dd>
  40.                         </dl>
  41.                         <dl>
  42.                             <dt>
  43.                                 {{ form_label(form.kana, 'お名前(カナ)', {'label_attr': {'class': 'ec-label'}}) }}
  44.                             </dt>
  45.                             <dd>
  46.                                 <div class="ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error' }}">
  47.                                     {{ form_widget(form.kana.kana01, {'attr': { 'placeholder': 'セイ' }}) }}
  48.                                     {{ form_widget(form.kana.kana02, {'attr': { 'placeholder': 'メイ' }}) }}
  49.                                     {{ form_errors(form.kana.kana01) }}
  50.                                     {{ form_errors(form.kana.kana02) }}
  51.                                 </div>
  52.                             </dd>
  53.                         </dl>
  54.                         <dl>
  55.                             <dt>
  56.                                 {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  57.                             </dt>
  58.                             <dd>
  59.                                 <div class="ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}">
  60.                                     <span>{{ '〒'|trans }}</span>
  61.                                     {{ form_widget(form.postal_code) }}
  62.                                     <div class="ec-zipInputHelp">
  63.                                         <div class="ec-zipInputHelp__icon">
  64.                                             <div class="ec-icon"><img
  65.                                                         src="{{ asset('assets/icon/question-white.svg') }}" alt="">
  66.                                             </div>
  67.                                         </div>
  68.                                         <a href="https://www.post.japanpost.jp/zipcode/"
  69.                                            target="_blank"><span>{{ '郵便番号検索'|trans }}</span></a>
  70.                                     </div>
  71.                                     {{ form_errors(form.postal_code) }}
  72.                                 </div>
  73.                                 <div class="ec-select{{ has_errors(form.address.pref) ? ' error' }}">
  74.                                     {{ form_widget(form.address.pref) }}
  75.                                     {{ form_errors(form.address.pref) }}
  76.                                 </div>
  77.                                 <div class="ec-input{{ has_errors(form.address.addr01) ? ' error' }}">
  78.                                     {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  79.                                     {{ form_errors(form.address.addr01) }}
  80.                                 </div>
  81.                                 <div class="ec-input{{ has_errors(form.address.addr02) ? ' error' }}">
  82.                                     {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  83.                                     {{ form_errors(form.address.addr02) }}
  84.                                 </div>
  85.                             </dd>
  86.                         </dl>
  87.                         <dl>
  88.                             <dt>
  89.                                 {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  90.                             </dt>
  91.                             <dd>
  92.                                 <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  93.                                     {{ form_widget(form.phone_number) }}
  94.                                     {{ form_errors(form.phone_number) }}
  95.                                 </div>
  96.                             </dd>
  97.                         </dl>
  98.                         <dl>
  99.                             <dt>
  100.                                 {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  101.                             </dt>
  102.                             <dd>
  103.                                 <div class="ec-input{{ has_errors(form.email) ? ' error' }}">
  104.                                     {{ form_widget(form.email) }}
  105.                                     {{ form_errors(form.email) }}
  106.                                 </div>
  107.                             </dd>
  108.                         </dl>
  109.                         <dl>
  110.                             <dt>
  111.                                 {{ form_label(form.sheets, '何枚のうちわに納めるか', { 'label_attr': { 'class': 'ec-label' }}) }}
  112.                             </dt>
  113.                             <dd>
  114.                                 <div class="ec-input{{ has_errors(form.sheets) ? ' error' }}">
  115.                                     {{ form_widget(form.sheets) }}
  116.                                     {{ form_errors(form.sheets) }}
  117.                                 </div>
  118.                             </dd>
  119.                         </dl>
  120.                         <dl>
  121.                             <dt>
  122.                                 {{ form_label(form.hope_text, '入れたい文字', { 'label_attr': { 'class': 'ec-label' }}) }}
  123.                             </dt>
  124.                             <dd>
  125.                                 <div class="ec-input{{ has_errors(form.hope_text) ? ' error' }}">
  126.                                     {{ form_widget(form.hope_text) }}
  127.                                     {{ form_errors(form.hope_text) }}
  128.                                 </div>
  129.                             </dd>
  130.                         </dl>
  131.                         <dl>
  132.                             <dt>
  133.                                 {{ form_label(form.hope_color, 'ご希望の色', { 'label_attr': { 'class': 'ec-label' }}) }}
  134.                             </dt>
  135.                             <dd>
  136.                                 <div class="ec-input{{ has_errors(form.hope_color) ? ' error' }}">
  137.                                     {{ form_widget(form.hope_color) }}
  138.                                     {{ form_errors(form.hope_color) }}
  139.                                 </div>
  140.                             </dd>
  141.                         </dl>
  142.                         <dl>
  143.                             <dt>
  144.                                 {{ form_label(form.back_color, '背面の色', { 'label_attr': { 'class': 'ec-label' }}) }}
  145.                             </dt>
  146.                             <dd>
  147.                                 <div class="ec-input{{ has_errors(form.back_color) ? ' error' }}">
  148.                                     {{ form_widget(form.back_color) }}
  149.                                     {{ form_errors(form.back_color) }}
  150.                                 </div>
  151.                             </dd>
  152.                         </dl>
  153.                         <dl>
  154.                             <dt>
  155.                                 {{ form_label(form.decoration, '装飾(★や♥など)', { 'label_attr': { 'class': 'ec-label' }}) }}
  156.                             </dt>
  157.                             <dd>
  158.                                 <div class="ec-input{{ has_errors(form.decoration) ? ' error' }}">
  159.                                     {{ form_widget(form.decoration) }}
  160.                                     {{ form_errors(form.decoration) }}
  161.                                 </div>
  162.                             </dd>
  163.                         </dl>
  164.                         <dl>
  165.                             <dt>
  166.                                 {{ form_label(form.top_text, '上の小文字追加', { 'label_attr': { 'class': 'ec-label' }}) }}
  167.                             </dt>
  168.                             <dd>
  169.                                 <div class="ec-input{{ has_errors(form.top_text) ? ' error' }}">
  170.                                     {{ form_widget(form.top_text) }}
  171.                                     {{ form_errors(form.top_text) }}
  172.                                 </div>
  173.                             </dd>
  174.                         </dl>
  175.                         <dl>
  176.                             <dt>
  177.                                 {{ form_label(form.top_color, '上の小文字色', { 'label_attr': { 'class': 'ec-label' }}) }}
  178.                             </dt>
  179.                             <dd>
  180.                                 <div class="ec-input{{ has_errors(form.top_color) ? ' error' }}">
  181.                                     {{ form_widget(form.top_color) }}
  182.                                     {{ form_errors(form.top_color) }}
  183.                                 </div>
  184.                             </dd>
  185.                         </dl>
  186.                         <dl>
  187.                             <dt>
  188.                                 {{ form_label(form.bot_text, '下の小文字追加', { 'label_attr': { 'class': 'ec-label' }}) }}
  189.                             </dt>
  190.                             <dd>
  191.                                 <div class="ec-input{{ has_errors(form.bot_text) ? ' error' }}">
  192.                                     {{ form_widget(form.bot_text) }}
  193.                                     {{ form_errors(form.bot_text) }}
  194.                                 </div>
  195.                             </dd>
  196.                         </dl>
  197.                         <dl>
  198.                             <dt>
  199.                                 {{ form_label(form.bot_color, '下の小文字色', { 'label_attr': { 'class': 'ec-label' }}) }}
  200.                             </dt>
  201.                             <dd>
  202.                                 <div class="ec-input{{ has_errors(form.bot_color) ? ' error' }}">
  203.                                     {{ form_widget(form.bot_color) }}
  204.                                     {{ form_errors(form.bot_color) }}
  205.                                 </div>
  206.                             </dd>
  207.                         </dl>
  208.                         <dl>
  209.                             <dt>
  210.                                 {{ form_label(form.hope_font, 'ご希望のフォント', { 'label_attr': { 'class': 'ec-label' }}) }}
  211.                             </dt>
  212.                             <dd>
  213.                                 <div class="ec-input{{ has_errors(form.hope_font) ? ' error' }}">
  214.                                     {{ form_widget(form.hope_font) }}
  215.                                     {{ form_errors(form.hope_font) }}
  216.                                 </div>
  217.                             </dd>
  218.                         </dl>
  219.                         <dl>
  220.                             <dt>
  221.                                 {{ form_label(form.contents, '詳細内容', { 'label_attr': { 'class': 'ec-label' }}) }}
  222.                             </dt>
  223.                             <dd>
  224.                                 <div class="ec-input{{ has_errors(form.contents) ? ' error' }}">
  225.                                     {{ form_widget(form.contents) }}
  226.                                     {{ form_errors(form.contents) }}
  227.                                 </div>
  228.                                 <p>{{ '必須項目を入力のうえ、お問い合わせください'|trans }}</p>
  229.                             </dd>
  230.                         </dl>
  231.                         {# エンティティ拡張の自動出力 #}
  232.                         {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  233.                             {% if f.vars.eccube_form_options.form_theme %}
  234.                                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  235.                                 {{ form_row(f) }}
  236.                             {% else %}
  237.                                 <dl>
  238.                                     <dt>
  239.                                         {% set label_class =  f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
  240.                                         {{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
  241.                                     </dt>
  242.                                     <dd>
  243.                                         <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  244.                                             {{ form_widget(f) }}
  245.                                             {{ form_errors(f) }}
  246.                                         </div>
  247.                                     </dd>
  248.                                 </dl>
  249.                             {% endif %}
  250.                         {% endfor %}
  251.                     </div>
  252.                     <div class="ec-RegisterRole__actions">
  253.                         <div class="ec-off4Grid">
  254.                             <div class="ec-off4Grid__cell">
  255.                                 <button type="submit" class="ec-blockBtn--action" name="mode"
  256.                                         value="confirm">{{ '確認ページへ'|trans }}
  257.                                 </button>
  258.                             </div>
  259.                         </div>
  260.                     </div>
  261.                 </form>
  262.             </div>
  263.         </div>
  264.         <div class="font__sample">
  265.             <p>フォントサンプル</p>
  266.             <ul>
  267.                 <li>
  268.                     <p class="">1. M PLUS Rounded 1c w400</p>
  269.                     <img src="/ecshop/html/user_data/assets/img/font/font1.png" alt="" >
  270.                 </li>
  271.                 <li>
  272.                     <p class="">2. RocknRoll One w400</p>
  273.                     <img src="/ecshop/html/user_data/assets/img/font/font2.png" alt="" >
  274.                 </li>
  275.                 <li>
  276.                     <p class="">3. Dela Gothic One w400</p>
  277.                     <img src="/ecshop/html/user_data/assets/img/font/font3.png" alt="" >
  278.                 </li>
  279.                 <li>
  280.                     <p class="">4. M PLUS Rounded 1c w900</p>
  281.                     <img src="/ecshop/html/user_data/assets/img/font/font4.png" alt="" >
  282.                 </li>
  283.                 <li>
  284.                     <p class="">5. Potta One w800</p>
  285.                     <img src="/ecshop/html/user_data/assets/img/font/font5.png" alt="" >
  286.                 </li>
  287.                 <li>
  288.                     <p class="">6. Kaisei Tokumin</p>
  289.                     <img src="/ecshop/html/user_data/assets/img/font/font6.png" alt="" >
  290.                 </li>
  291.                 <li>
  292.                     <p class="">7. M PLUS 1p w900</p>
  293.                     <img src="/ecshop/html/user_data/assets/img/font/font7.png" alt="" >
  294.                 </li>
  295.                 <li>
  296.                     <p class="">8. Hachi Maru Pop w400</p>
  297.                     <img src="/ecshop/html/user_data/assets/img/font/font8.png" alt="" >
  298.                 </li>
  299.                 <li>
  300.                     <p class="">9. Noto Sans KR</p>
  301.                     <img src="/ecshop/html/user_data/assets/img/font/font9.png" alt="" >
  302.                 </li>
  303.                 <li>
  304.                     <p class="">10. Jua</p>
  305.                     <img src="/ecshop/html/user_data/assets/img/font/font10.png" alt="" >
  306.                 </li>
  307.             </ul>
  308.         </div>
  309.     </div>
  310. {% endblock %}