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