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