app/template/mizunasu/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.                         <dl>
  140.                             <dt>
  141.                                 {{ form_label(form.birth, '生年月日', { 'label_attr': {'class': 'ec-label' }}) }}
  142.                             </dt>
  143.                             <dd>
  144.                                 <div class="ec-birth{{ has_errors(form.birth) ? ' error' }}">
  145.                                     {{ form_widget(form.birth.year) }}<span>/</span>
  146.                                     {{ form_widget(form.birth.month) }}<span>/</span>
  147.                                     {{ form_widget(form.birth.day) }}
  148.                                     {{ form_errors(form.birth) }}
  149.                                 </div>
  150.                             </dd>
  151.                         </dl>
  152.                         <dl>
  153.                             <dt>
  154.                                 {{ form_label(form.sex, '性別', { 'label_attr': { 'class': 'ec-label' }}) }}
  155.                             </dt>
  156.                             <dd>
  157.                                 <div class="ec-radio{{ has_errors(form.sex) ? ' error' }}">
  158.                                     {{ form_widget(form.sex) }}
  159.                                     {{ form_errors(form.sex) }}
  160.                                 </div>
  161.                             </dd>
  162.                         </dl>
  163.                         <dl>
  164.                             <dt>
  165.                                 {{ form_label(form.job, '職業', { 'label_attr': {'class': 'ec-label' }}) }}
  166.                             </dt>
  167.                             <dd>
  168.                                 <div class="ec-select{{ has_errors(form.job) ? ' error' }}">
  169.                                     {{ form_widget(form.job) }}
  170.                                     {{ form_errors(form.job) }}
  171.                                 </div>
  172.                             </dd>
  173.                         </dl>
  174.                         {# エンティティ拡張の自動出力 #}
  175.                         {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  176.                             {% if f.vars.eccube_form_options.form_theme %}
  177.                                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  178.                                 {{ form_row(f) }}
  179.                             {% else %}
  180.                                 <dl>
  181.                                     <dt>
  182.                                         {{ form_label(f) }}
  183.                                     </dt>
  184.                                     <dd>
  185.                                         <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  186.                                             {{ form_widget(f) }}
  187.                                             {{ form_errors(f) }}
  188.                                         </div>
  189.                                     </dd>
  190.                                 </dl>
  191.                             {% endif %}
  192.                         {% endfor %}
  193.                     </div>
  194.                     <div class="ec-registerRole__actions">
  195.                         <div class="ec-checkbox{{ has_errors(form.user_policy_check) ? ' error' }}">
  196.                             <label>
  197.                                 {{ form_widget(form.user_policy_check) }}
  198.                                 {{ '<a class="ec-link" href="%url%" target="_blank">利用規約</a>に同意してお進みください'|trans({ '%url%': url('help_agreement') })|raw }}
  199.                             </label>
  200.                             {{ form_errors(form.user_policy_check) }}
  201.                         </div>
  202.                         <div class="ec-off4Grid">
  203.                             <div class="ec-off4Grid__cell">
  204.                                 <button class="ec-blockBtn--action" type="submit" name="mode" value="confirm">{{ '同意する'|trans }}</button>
  205.                                 <a class="ec-blockBtn--cancel" href="{{ url('homepage') }}">{{ '同意しない'|trans }}</a>
  206.                             </div>
  207.                         </div>
  208.                     </div>
  209.                 </form>
  210.             </div>
  211.         </div>
  212.     </div>
  213. {% endblock %}