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