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