app/template/default/Entry/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. {% set body_class = 'registration_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-registerRole">
  16.         <div class="ec-pageHeader">
  17.             <h1>{{ '新規会員登録'|trans }}</h1>
  18.         </div>
  19.         <div class="ec-off1Grid">
  20.             <div class="ec-off1Grid__cell">
  21.                 <form method="post" action="{{ url('entry') }}" novalidate class="h-adr">
  22.                     <span class="p-country-name" style="display:none;">Japan</span>
  23.                     {{ form_widget(form._token) }}
  24.                     <div class="ec-borderedDefs">
  25.                         <dl>
  26.                             <dt>
  27.                                 {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  28.                             </dt>
  29.                             <dd>
  30.                                 <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error'}}">
  31.                                     {{ form_widget(form.name.name01, { 'attr': { 'placeholder': '姓' }}) }}
  32.                                     {{ form_widget(form.name.name02, { 'attr': { 'placeholder': '名' }}) }}
  33.                                     {{ form_errors(form.name.name01) }}
  34.                                     {{ form_errors(form.name.name02) }}
  35.                                 </div>
  36.                             </dd>
  37.                         </dl>
  38.                         <dl>
  39.                             <dt>
  40.                                 {{ form_label(form.kana, 'お名前(カナ)', { 'label_attr': { 'class': 'ec-label' }}) }}
  41.                             </dt>
  42.                             <dd>
  43.                                 <div class="ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error'}}">
  44.                                     {{ form_widget(form.kana.kana01, { 'attr': { 'placeholder': 'セイ' }}) }}
  45.                                     {{ form_widget(form.kana.kana02, { 'attr': { 'placeholder': 'メイ' }}) }}
  46.                                     {{ form_errors(form.kana.kana01) }}
  47.                                     {{ form_errors(form.kana.kana02) }}
  48.                                 </div>
  49.                             </dd>
  50.                         </dl>
  51.                         <dl>
  52.                             <dt>
  53.                                 {{ form_label(form.company_name, '会社名', { 'label_attr': { 'class': 'ec-label' }}) }}
  54.                             </dt>
  55.                             <dd>
  56.                                 <div class="ec-halfInput{{ has_errors(form.company_name) ? ' error' }}">
  57.                                     {{ form_widget(form.company_name) }}
  58.                                     {{ form_errors(form.company_name) }}
  59.                                 </div>
  60.                             </dd>
  61.                         </dl>
  62.                         <dl>
  63.                             <dt>
  64.                                 {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  65.                             </dt>
  66.                             <dd>
  67.                                 <div class="ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}"><span>{{ '〒'|trans }}</span>
  68.                                     {{ form_widget(form.postal_code) }}
  69.                                     <div class="ec-zipInputHelp">
  70.                                         <div class="ec-zipInputHelp__icon">
  71.                                             <div class="ec-icon"><img
  72.                                                         src="{{ asset('assets/icon/question-white.svg') }}" alt="">
  73.                                             </div>
  74.                                         </div><a href="https://www.post.japanpost.jp/zipcode/" target="_blank"><span>{{ '郵便番号検索'|trans }}</span></a>
  75.                                     </div>
  76.                                     {{ form_errors(form.postal_code) }}
  77.                                 </div>
  78.                                 <div class="ec-select{{ has_errors(form.address.pref) ? ' error' }}">
  79.                                     {{ form_widget(form.address.pref) }}
  80.                                     {{ form_errors(form.address.pref) }}
  81.                                 </div>
  82.                                 <div class="ec-input{{ has_errors(form.address.addr01) ? ' error' }}">
  83.                                     {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  84.                                     {{ form_errors(form.address.addr01) }}
  85.                                 </div>
  86.                                 <div class="ec-input{{ has_errors(form.address.addr02) ? ' error' }}">
  87.                                     {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  88.                                     {{ form_errors(form.address.addr02) }}
  89.                                 </div>
  90.                             </dd>
  91.                         </dl>
  92.                         <dl>
  93.                             <dt>
  94.                                 {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  95.                             </dt>
  96.                             <dd>
  97.                                 <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  98.                                     {{ form_widget(form.phone_number) }}
  99.                                     {{ form_errors(form.phone_number) }}
  100.                                 </div>
  101.                             </dd>
  102.                         </dl>
  103.                         <dl>
  104.                             <dt>
  105.                                 {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  106.                             </dt>
  107.                             <dd>
  108.                                 <div class="ec-input{{ has_errors(form.email.first) ? ' error' }}">
  109.                                     {{ form_widget(form.email.first, { 'attr': { 'placeholder': '例:ec-cube@example.com' }}) }}
  110.                                     {{ form_errors(form.email.first) }}
  111.                                 </div>
  112.                                 <div class="ec-input{{ has_errors(form.email.second) ? ' error' }}">
  113.                                     {{ form_widget(form.email.second, { 'attr': { 'placeholder': '確認のためもう一度入力してください' }}) }}
  114.                                     {{ form_errors(form.email.second) }}
  115.                                 </div>
  116.                             </dd>
  117.                         </dl>
  118.                         <dl>
  119.                             <dt>
  120.                                 {{ form_label(form.plain_password, 'パスワード', { 'label_attr': {'class': 'ec-label' }}) }}
  121.                             </dt>
  122.                             <dd>
  123.                                 <div class="ec-input{{ has_errors(form.plain_password.first) ? ' error' }}">
  124.                                     {{ form_widget(form.plain_password.first, {
  125.                                         'attr': { 'placeholder': '半角英数記号%min%〜%max%文字'|trans({ '%min%': eccube_config.eccube_password_min_len, '%max%': eccube_config.eccube_password_max_len }) },
  126.                                         'type': 'password'
  127.                                     }) }}
  128.                                     {{ form_errors(form.plain_password.first) }}
  129.                                 </div>
  130.                                 <div class="ec-input{{ has_errors(form.plain_password.second) ? ' error' }}">
  131.                                     {{ form_widget(form.plain_password.second, {
  132.                                         'attr': { 'placeholder': '確認のためもう一度入力してください'|trans },
  133.                                         'type': 'password'
  134.                                     }) }}
  135.                                     {{ form_errors(form.plain_password.second) }}
  136.                                 </div>
  137.                             </dd>
  138.                         </dl>
  139.                         {# エンティティ拡張の自動出力 #}
  140.                         {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  141.                             {% if f.vars.eccube_form_options.form_theme %}
  142.                                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  143.                                 {{ form_row(f) }}
  144.                             {% else %}
  145.                                 <dl>
  146.                                     <dt>
  147.                                         {% set label_class =  f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
  148.                                         {{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
  149.                                     </dt>
  150.                                     <dd>
  151.                                         <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  152.                                             {{ form_widget(f) }}
  153.                                             {{ form_errors(f) }}
  154.                                         </div>
  155.                                     </dd>
  156.                                 </dl>
  157.                             {% endif %}
  158.                         {% endfor %}
  159.                     </div>
  160.                     <div class="ec-registerRole__actions">
  161.                         <div class="ec-checkbox{{ has_errors(form.user_policy_check) ? ' error' }}">
  162.                             <label>
  163.                                 {{ form_widget(form.user_policy_check) }}
  164.                                 {{ '<a class="ec-link" href="%url%" target="_blank">利用規約</a>に同意してお進みください'|trans({ '%url%': url('help_agreement') })|raw }}
  165.                             </label>
  166.                             {{ form_errors(form.user_policy_check) }}
  167.                         </div>
  168.                         <div class="ec-off4Grid">
  169.                             <div class="ec-off4Grid__cell">
  170.                                 <button class="ec-blockBtn--action" type="submit" name="mode" value="confirm">{{ '同意する'|trans }}</button>
  171.                                 <a class="ec-blockBtn--cancel" href="{{ url('homepage') }}">{{ '同意しない'|trans }}</a>
  172.                             </div>
  173.                         </div>
  174.                     </div>
  175.                 </form>
  176.             </div>
  177.         </div>
  178.     </div>
  179. {% endblock %}