app/template/bootcube2/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. {% if form.customerplus_1 is defined %}
  175. <dl>
  176.     <dt>
  177. {{ form_label(form.customerplus_1,'', { 'label_attr': {'class': 'ec-label' }}) }}
  178. </dt>
  179.     <dd>
  180.     
  181.         <div class="ec-input{{ has_errors(form.customerplus_1) ? ' error' }}">
  182.             {{ form_widget(form.customerplus_1) }}
  183.             {{ form_errors(form.customerplus_1) }}
  184.         </div>
  185.     </dd>
  186. </dl>
  187. {% endif %}
  188. {% if form.customerplus_3 is defined %}
  189. <dl>
  190.     <dt>{{ form_label(form.customerplus_3,'', { 'label_attr': {'class': 'ec-label' }}) }}</dt>
  191.     <dd>
  192.         <div class="ec-checkbox{{ has_errors(form.customerplus_3) ? ' error' }}">
  193.             {{ form_widget(form.customerplus_3) }}
  194.             {{ form_errors(form.customerplus_3) }}
  195.         </div>
  196.     </dd>
  197. </dl>
  198. {% endif %}
  199. {% if form.customerplus_4 is defined %}
  200. <dl>
  201.     <dt>{{ form_label(form.customerplus_4,'', { 'label_attr': {'class': 'ec-label' }}) }}</dt>
  202.     <dd>
  203.         <div class="ec-checkbox{{ has_errors(form.customerplus_4) ? ' error' }}">
  204.             {{ form_widget(form.customerplus_4) }}
  205.             {{ form_errors(form.customerplus_4) }}
  206.         </div>
  207.     </dd>
  208. </dl>
  209. {% endif %}
  210. {% if form.customerplus_6 is defined %}
  211. <dl>
  212.     <dt>
  213. {{ form_label(form.customerplus_6,'', { 'label_attr': {'class': 'ec-label' }}) }}
  214. </dt>
  215.     <dd>
  216.         <div class="ec-input{{ has_errors(form.customerplus_6) ? ' error' }}">
  217.             {{ form_widget(form.customerplus_6) }}
  218.             {{ form_errors(form.customerplus_6) }}
  219.         </div>
  220.     </dd>
  221. </dl>
  222. {% endif %}
  223. {% if form.customerplus_5 is defined %}
  224. <dl>
  225.     <dt>{{ form_label(form.customerplus_5,'', { 'label_attr': {'class': 'ec-label' }}) }}</dt>
  226.     <dd>
  227.         <div class="ec-checkbox{{ has_errors(form.customerplus_5) ? ' error' }}">
  228.             {{ form_widget(form.customerplus_5) }}
  229.             {{ form_errors(form.customerplus_5) }}
  230.         </div>
  231.     </dd>
  232. </dl>
  233. {% endif %}
  234. {% if form.customerplus_2 is defined %}
  235. <dl>
  236.     <dt>{{ form_label(form.customerplus_2,'', { 'label_attr': {'class': 'ec-label' }}) }}</dt>
  237.     <dd>
  238.         <div class="ec-input{{ has_errors(form.customerplus_2) ? ' error' }}">
  239.             {{ form_widget(form.customerplus_2) }}
  240.             {{ form_errors(form.customerplus_2) }}
  241.         </div>
  242.     </dd>
  243. </dl>
  244. {% endif %}
  245.                         {# エンティティ拡張の自動出力 #}
  246.                         {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  247.                             {% if f.vars.eccube_form_options.form_theme %}
  248.                                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  249.                                 {{ form_row(f) }}
  250.                             {% else %}
  251.                                 <dl>
  252.                                     <dt>
  253.                                         {% set label_class =  f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
  254.                                         {{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
  255.                                     </dt>
  256.                                     <dd>
  257.                                         <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  258.                                             {{ form_widget(f) }}
  259.                                             {{ form_errors(f) }}
  260.                                         </div>
  261.                                     </dd>
  262.                                 </dl>
  263.                             {% endif %}
  264.                         {% endfor %}
  265.                     </div>
  266.                     <div class="ec-registerRole__actions">
  267.                         <div class="ec-checkbox{{ has_errors(form.user_policy_check) ? ' error' }}">
  268.                             <label>
  269.                                 {{ form_widget(form.user_policy_check) }}
  270.                                 {{ '<a class="ec-link" href="%url%" target="_blank">利用規約</a>に同意してお進みください'|trans({ '%url%': url('help_agreement') })|raw }}
  271.                             </label>
  272.                             {{ form_errors(form.user_policy_check) }}
  273.                         </div>
  274.                         <div class="ec-off4Grid">
  275.                             <div class="ec-off4Grid__cell">
  276.                                 <button class="ec-blockBtn--action" type="submit" name="mode" value="confirm">{{ '同意する'|trans }}</button>
  277.                                 <a class="ec-blockBtn--cancel" href="{{ url('homepage') }}">{{ '同意しない'|trans }}</a>
  278.                             </div>
  279.                         </div>
  280.                     </div>
  281.                 </form>
  282.             </div>
  283.         </div>
  284.     </div>
  285. {% endblock %}