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