app/template/kaorime/Shopping/nonmember.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. {% set body_class = 'cart_page' %}
  10. {% form_theme form 'Form/form_div_layout.twig' %}
  11. {% block javascript %}
  12. <script src="//yubinbango.github.io/yubinbango/yubinbango.js" charset="UTF-8"></script>
  13. {% endblock javascript %}
  14. {% block main %}
  15. <div class="ec-customerRole">
  16.     <div class="ec-pageHeader">
  17.         <h1>{{ 'お客様情報の入力'|trans }}</h1>
  18.     </div>
  19.     <div class="ec-cartRole">
  20.         <div class="ec-cartRole__progress">
  21.             <ul class="ec-progress">
  22.                 {% set step = 1 %}
  23.                 <li class="ec-progress__item">
  24.                     <div class="ec-progress__number">{{ step }}{% set step = step + 1 %}
  25.                     </div>
  26.                     <div class="ec-progress__label">{{ 'カートの商品'|trans }}
  27.                     </div>
  28.                 </li>
  29.                 {% if is_granted('ROLE_USER') == false %}
  30.                     <li class="ec-progress__item is-complete">
  31.                         <div class="ec-progress__number">{{ step }}{% set step = step + 1 %}
  32.                         </div>
  33.                         <div class="ec-progress__label">{{ 'お客様情報'|trans }}
  34.                         </div>
  35.                     </li>
  36.                 {% endif %}
  37.                 <li class="ec-progress__item">
  38.                     <div class="ec-progress__number">{{ step }}{% set step = step + 1 %}
  39.                     </div>
  40.                     <div class="ec-progress__label">{{ 'ご注文手続き'|trans }}
  41.                     </div>
  42.                 </li>
  43.                 <li class="ec-progress__item">
  44.                     <div class="ec-progress__number">{{ step }}{% set step = step + 1 %}
  45.                     </div>
  46.                     <div class="ec-progress__label">{{ 'ご注文内容確認'|trans }}
  47.                     </div>
  48.                 </li>
  49.                 <li class="ec-progress__item">
  50.                     <div class="ec-progress__number">{{ step }}{% set step = step + 1 %}
  51.                     </div>
  52.                     <div class="ec-progress__label">{{ '完了'|trans }}
  53.                     </div>
  54.                 </li>
  55.             </ul>
  56.         </div>
  57.     </div>
  58.     <div class="ec-off1Grid">
  59.         <div class="ec-off1Grid__cell">
  60.             <form method="post" action="{{ url('shopping_nonmember') }}" class="h-adr">
  61.             <span class="p-country-name" style="display:none;">Japan</span>
  62.             {{ form_widget(form._token) }}
  63.             <div class="ec-borderedDefs">
  64.                 <dl>
  65.                     <dt>
  66.                         {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  67.                     </dt>
  68.                     <dd>
  69.                         <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error'}}">
  70.                             {{ form_widget(form.name.name01, { 'attr': { 'placeholder': '姓' }}) }}
  71.                             {{ form_widget(form.name.name02, { 'attr': { 'placeholder': '名' }}) }}
  72.                             {{ form_errors(form.name.name01) }}
  73.                             {{ form_errors(form.name.name02) }}
  74.                         </div>
  75.                     </dd>
  76.                 </dl>
  77.                 <dl>
  78.                     <dt>
  79.                         {{ form_label(form.kana, 'お名前(カナ)', { 'label_attr': { 'class': 'ec-label' }}) }}
  80.                     </dt>
  81.                     <dd>
  82.                         <div class="ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error'}}">
  83.                             {{ form_widget(form.kana.kana01, { 'attr': { 'placeholder': 'セイ' }}) }}
  84.                             {{ form_widget(form.kana.kana02, { 'attr': { 'placeholder': 'メイ' }}) }}
  85.                             {{ form_errors(form.kana.kana01) }}
  86.                             {{ form_errors(form.kana.kana02) }}
  87.                         </div>
  88.                     </dd>
  89.                 </dl>
  90.                 <dl>
  91.                     <dt>
  92.                         {{ form_label(form.company_name, '会社名', { 'label_attr': { 'class': 'ec-label' }}) }}
  93.                     </dt>
  94.                     <dd>
  95.                         <div class="ec-halfInput{{ has_errors(form.company_name) ? ' error' }}">
  96.                             {{ form_widget(form.company_name) }}
  97.                             {{ form_errors(form.company_name) }}
  98.                         </div>
  99.                     </dd>
  100.                 </dl>
  101.                 <dl>
  102.                     <dt>
  103.                         {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  104.                     </dt>
  105.                     <dd>
  106.                         <div class="ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}"><span>{{ '〒'|trans }}</span>
  107.                             {{ form_widget(form.postal_code) }}
  108.                             <div class="ec-zipInputHelp">
  109.                                 <div class="ec-zipInputHelp__icon">
  110.                                     <div class="ec-icon"><img
  111.                                                 src="{{ asset('assets/icon/question-white.svg') }}" alt="">
  112.                                     </div>
  113.                                 </div><a href="https://www.post.japanpost.jp/zipcode/" target="_blank"><span>{{ '郵便番号検索'|trans }}</span></a>
  114.                             </div>
  115.                             {{ form_errors(form.postal_code) }}
  116.                         </div>
  117.                         <div class="ec-select{{ has_errors(form.address.pref) ? ' error' }}">
  118.                             {{ form_widget(form.address.pref) }}
  119.                             {{ form_errors(form.address.pref) }}
  120.                         </div>
  121.                         <div class="ec-input{{ has_errors(form.address.addr01) ? ' error' }}">
  122.                             {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  123.                             {{ form_errors(form.address.addr01) }}
  124.                         </div>
  125.                         <div class="ec-input{{ has_errors(form.address.addr02) ? ' error' }}">
  126.                             {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  127.                             {{ form_errors(form.address.addr02) }}
  128.                         </div>
  129.                     </dd>
  130.                 </dl>
  131.                 <dl>
  132.                     <dt>
  133.                         {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  134.                     </dt>
  135.                     <dd>
  136.                         <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  137.                             {{ form_widget(form.phone_number) }}
  138.                             {{ form_errors(form.phone_number) }}
  139.                         </div>
  140.                     </dd>
  141.                 </dl>
  142.                 <dl>
  143.                     <dt>
  144.                         {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  145.                     </dt>
  146.                     <dd>
  147.                         <div class="ec-input{{ has_errors(form.email.first) ? ' error' }}">
  148.                             {{ form_widget(form.email.first, { 'attr': { 'placeholder': '例:ec-cube@example.com' }}) }}
  149.                             {{ form_errors(form.email.first) }}
  150.                         </div>
  151.                         <div class="ec-input{{ has_errors(form.email.second) ? ' error' }}">
  152.                             {{ form_widget(form.email.second, { 'attr': { 'placeholder': '確認のためもう一度入力してください' }}) }}
  153.                             {{ form_errors(form.email.second) }}
  154.                         </div>
  155.                     </dd>
  156.                 </dl>
  157.             </div>
  158.             <div class="ec-RegisterRole__actions">
  159.                 <div class="ec-off4Grid">
  160.                     <div class="ec-off4Grid__cell">
  161.                         <button type="submit" class="ec-blockBtn--action">{{ '次へ'|trans }}</button>
  162.                         <a class="ec-blockBtn--cancel" href="{{ url('cart') }}">{{ '戻る'|trans }}</a>
  163.                     </div>
  164.                 </div>
  165.             </div>
  166.         </form>
  167.         </div>
  168.     </div>
  169. </div>
  170. {% endblock %}