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