app/template/yamaria/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. <script>
  14. //モーダルを表示する
  15. $(function(){
  16.     {% if has_errors(form.name.name01, form.name.name02, form.kana.kana01, form.kana.kana02, form.company_name, form.postal_code, form.address.pref, form.address.addr01, form.address.addr02, form.phone_number, form.email.first, form.email.second, form.plain_password.first, form.plain_password.second, form.birth, form.sex, form.job, form.user_policy_check) or form.name.name01.vars.data != "" %}
  17.         $('#modalArea').hide();
  18.         $('.view1').hide();
  19.         $('.view2, .view3').hide();
  20.     {% else %}
  21.         $('#modalArea').fadeIn();
  22.         $('.view1').show();
  23.         $('.view2, .view3').hide();
  24.     {% endif %}
  25.     
  26.     $('.next_2').click(function(){
  27.         $('.view1').hide();
  28.         $('.view2').fadeIn();
  29.     });
  30.     $('.next_3').click(function(){
  31.         $('.view1').hide();
  32.         $('.view3').fadeIn();
  33.     });
  34.     $('#closeModal_ , #modalBg_, .func_close').click(function(){
  35.         $('#modalArea').fadeOut();
  36.     });
  37.     
  38.     
  39.     /*
  40.     $('.js-modal-open').on('click',function(){
  41.         $('.js-modal').fadeIn();
  42.         return false;
  43.     });
  44.     $('.js-modal-close').on('click',function(){
  45.         $('.js-modal').fadeOut();
  46.         return false;
  47.     });
  48.     */
  49. });
  50. </script>
  51. <style>
  52. /* モーダルCSS */
  53.     .ym-btn{
  54.         margin-top: 10px;
  55.     }
  56.     .ym-btn a{
  57.         min-width: 45%;
  58.     }
  59. .modalArea {
  60.   display: none;
  61.   position: fixed;
  62.   z-index: 9999; /*サイトによってここの数値は調整 */
  63.   top: 0;
  64.   left: 0;
  65.   width: 100%;
  66.   height: 100%;
  67. }
  68.     .modalContents{
  69.         display: table;
  70.         width: 100%;
  71.         height: 100%;
  72.     }
  73.     .view1, .view2, .view3{
  74.         display: table-cell;
  75.         vertical-align: middle;
  76.         width: 100%;
  77.     }
  78.     .ym-heading_lv2{
  79.         margin-bottom: 10px;
  80.     }
  81. .modalBg {
  82.     z-index: 9998;
  83.   width: 100%;
  84.   height: 100%;
  85.   background-color: rgba(30,30,30,0.8);
  86. }
  87. .modalWrapper {
  88.   position: absolute;
  89.   top: 50%;
  90.   left: 50%;
  91.   transform:translate(-50%,-50%);
  92.   width: 95%;
  93.   max-width: 640px;
  94.   padding: 20px 20px;
  95.   background-color: #fff;
  96.     height : 90%;
  97.     overflow : auto;
  98. }
  99. .closeModal {
  100.   position: absolute;
  101.   top: 0.5rem;
  102.   right: 1rem;
  103.   cursor: pointer;
  104. }
  105. /* 以下ボタンスタイル */
  106. button {
  107.   padding: 10px;
  108.   background-color: #fff;
  109.   border: 1px solid #282828;
  110.   border-radius: 2px;
  111.   cursor: pointer;
  112. }
  113. #openModal {
  114.   position: absolute;
  115.   top: 50%;
  116.   left: 50%;
  117.   transform:translate(-50%,-50%);
  118. }
  119. </style>
  120. {% endblock javascript %}
  121. {% block main %}
  122.     <div class="ec-registerRole">
  123.         <div class="ec-pageHeader">
  124.             <h1>{{ '新規会員登録'|trans }}</h1>
  125.         </div>
  126.         <div class="ec-off1Grid">
  127.             <div class="ec-off1Grid__cell">
  128.                 <form method="post" action="{{ url('entry') }}" novalidate class="h-adr">
  129.                     <span class="p-country-name" style="display:none;">Japan</span>
  130.                     {{ form_widget(form._token) }}
  131.                     <div class="ec-borderedDefs">
  132.                         <dl>
  133.                             <dt>
  134.                                 {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  135.                             </dt>
  136.                             <dd>
  137.                                 <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error'}}">
  138.                                     {{ form_widget(form.name.name01, { 'attr': { 'placeholder': '姓' }}) }}
  139.                                     {{ form_widget(form.name.name02, { 'attr': { 'placeholder': '名' }}) }}
  140.                                     {{ form_errors(form.name.name01) }}
  141.                                     {{ form_errors(form.name.name02) }}
  142.                                 </div>
  143.                             </dd>
  144.                         </dl>
  145.                         <dl>
  146.                             <dt>
  147.                                 {{ form_label(form.kana, 'お名前(カナ)', { 'label_attr': { 'class': 'ec-label' }}) }}
  148.                             </dt>
  149.                             <dd>
  150.                                 <div class="ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error'}}">
  151.                                     {{ form_widget(form.kana.kana01, { 'attr': { 'placeholder': 'セイ' }}) }}
  152.                                     {{ form_widget(form.kana.kana02, { 'attr': { 'placeholder': 'メイ' }}) }}
  153.                                     {{ form_errors(form.kana.kana01) }}
  154.                                     {{ form_errors(form.kana.kana02) }}
  155.                                 </div>
  156.                             </dd>
  157.                         </dl>
  158.                         <dl>
  159.                             <dt>
  160.                                 {{ form_label(form.company_name, '会社名', { 'label_attr': { 'class': 'ec-label' }}) }}
  161.                             </dt>
  162.                             <dd>
  163.                                 <div class="ec-halfInput{{ has_errors(form.company_name) ? ' error' }}">
  164.                                     {{ form_widget(form.company_name) }}
  165.                                     {{ form_errors(form.company_name) }}
  166.                                     ご入力いただいた場合、発送先に会社名が印字されます
  167.                                 </div>
  168.                             </dd>
  169.                         </dl>
  170.                         <dl>
  171.                             <dt>
  172.                                 {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  173.                             </dt>
  174.                             <dd>
  175.                                 <div class="ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}"><span>{{ '〒'|trans }}</span>
  176.                                     {{ form_widget(form.postal_code) }}
  177.                                     {#
  178.                                     <div class="ec-zipInputHelp">
  179.                                         <div class="ec-zipInputHelp__icon">
  180.                                             <div class="ec-icon"><img
  181.                                                         src="{{ asset('assets/icon/question-white.svg') }}" alt="">
  182.                                             </div>
  183.                                         </div><a href="https://www.post.japanpost.jp/zipcode/" target="_blank"><span>{{ '郵便番号検索'|trans }}</span></a>
  184.                                     </div>
  185.                                     #}
  186.                                     {{ form_errors(form.postal_code) }}
  187.                                 </div>
  188.                                 <div class="ec-select{{ has_errors(form.address.pref) ? ' error' }}">
  189.                                     {{ form_widget(form.address.pref) }}
  190.                                     {{ form_errors(form.address.pref) }}
  191.                                 </div>
  192.                                 <div class="ec-input{{ has_errors(form.address.addr01) ? ' error' }}">
  193.                                     {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  194.                                     {{ form_errors(form.address.addr01) }}
  195.                                 </div>
  196.                                 <div class="ec-input{{ has_errors(form.address.addr02) ? ' error' }}">
  197.                                     {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  198.                                     {{ form_errors(form.address.addr02) }}
  199.                                 </div>
  200.                             </dd>
  201.                         </dl>
  202.                         <dl>
  203.                             <dt>
  204.                                 {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  205.                             </dt>
  206.                             <dd>
  207.                                 <div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
  208.                                     {{ form_widget(form.phone_number) }}
  209.                                     {{ form_errors(form.phone_number) }}
  210.                                 </div>
  211.                             </dd>
  212.                         </dl>
  213.                         <dl>
  214.                             <dt>
  215.                                 {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  216.                             </dt>
  217.                             <dd>
  218.                                 <div class="ec-input{{ has_errors(form.email.first) ? ' error' }}">
  219.                                     {{ form_widget(form.email.first, { 'attr': { 'placeholder': '例:ec-cube@example.com' }}) }}
  220.                                     {{ form_errors(form.email.first) }}
  221.                                 </div>
  222.                                 <div class="ec-input{{ has_errors(form.email.second) ? ' error' }}">
  223.                                     {{ form_widget(form.email.second, { 'attr': { 'placeholder': '確認のためもう一度入力してください' }}) }}
  224.                                     {{ form_errors(form.email.second) }}
  225.                                 </div>
  226.                                 <p>「info_com@yamaria.com」からのメールを受信できる様、ドメイン設定を解除して頂いただくか、ドメイン「@yamaria.com」を 受信リストに加えていただきますよう、お願い申し上げます。</p>
  227.                             </dd>
  228.                         </dl>
  229.                         <dl>
  230.                             <dt>
  231.                                 {{ form_label(form.plain_password, 'パスワード', { 'label_attr': {'class': 'ec-label' }}) }}
  232.                             </dt>
  233.                             <dd>
  234.                                 <div class="ec-input{{ has_errors(form.plain_password.first) ? ' error' }}">
  235.                                     {{ form_widget(form.plain_password.first, {
  236.                                         'attr': { 'placeholder': '半角英数記号%min%〜%max%文字'|trans({ '%min%': eccube_config.eccube_password_min_len, '%max%': eccube_config.eccube_password_max_len }) },
  237.                                         'type': 'password'
  238.                                     }) }}
  239.                                     {{ form_errors(form.plain_password.first) }}
  240.                                 </div>
  241.                                 <div class="ec-input{{ has_errors(form.plain_password.second) ? ' error' }}">
  242.                                     {{ form_widget(form.plain_password.second, {
  243.                                         'attr': { 'placeholder': '確認のためもう一度入力してください'|trans },
  244.                                         'type': 'password'
  245.                                     }) }}
  246.                                     {{ form_errors(form.plain_password.second) }}
  247.                                 </div>
  248.                             </dd>
  249.                         </dl>
  250.                         <dl>
  251.                             <dt>
  252.                                 {{ form_label(form.birth, '生年月日', { 'label_attr': {'class': 'ec-label' }}) }}
  253.                             </dt>
  254.                             <dd>
  255.                                 <div class="ec-birth{{ has_errors(form.birth) ? ' error' }}">
  256.                                     {{ form_widget(form.birth.year) }}<span>/</span>
  257.                                     {{ form_widget(form.birth.month) }}<span>/</span>
  258.                                     {{ form_widget(form.birth.day) }}
  259.                                     {{ form_errors(form.birth) }}
  260.                                 </div>
  261.                             </dd>
  262.                         </dl>
  263.                         <dl>
  264.                             <dt>
  265.                                 {{ form_label(form.sex, '性別', { 'label_attr': { 'class': 'ec-label' }}) }}
  266.                             </dt>
  267.                             <dd>
  268.                                 <div class="ec-radio{{ has_errors(form.sex) ? ' error' }}">
  269.                                     {{ form_widget(form.sex) }}
  270.                                     {{ form_errors(form.sex) }}
  271.                                 </div>
  272.                             </dd>
  273.                         </dl>
  274.                         <dl>
  275.                             <dt>
  276.                                 {{ form_label(form.job, '職業', { 'label_attr': {'class': 'ec-label' }}) }}
  277.                             </dt>
  278.                             <dd>
  279.                                 <div class="ec-select{{ has_errors(form.job) ? ' error' }}">
  280.                                     {{ form_widget(form.job) }}
  281.                                     {{ form_errors(form.job) }}
  282.                                 </div>
  283.                             </dd>
  284.                         </dl>
  285.                         {# エンティティ拡張の自動出力 #}
  286.                         {# 自動出力をなくす
  287.                         {% for f in form if f.vars.eccube_form_options.auto_render %}
  288.                             {% if f.vars.eccube_form_options.form_theme %}
  289.                                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  290.                                 {{ form_row(f) }}
  291.                             {% else %}
  292.                                 <dl>
  293.                                     <dt>
  294.                                         {{ form_label(f) }}
  295.                                     </dt>
  296.                                     <dd>
  297.                                         <div class="{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}">
  298.                                             {{ form_widget(f) }}
  299.                                             {{ form_errors(f) }}
  300.                                         </div>
  301.                                     </dd>
  302.                                 </dl>
  303.                             {% endif %}
  304.                         {% endfor %}
  305.                         #}
  306.                     </div>
  307.                     <div class="ec-registerRole__actions">
  308.                         <div class="ec-off4Grid">
  309.                             <div class="ec-off4Grid__cell">
  310.                                 <div class="ec-checkbox{{ has_errors(form.user_policy_check) ? ' error' }}">
  311.                                     <label>
  312.                                         {{ form_widget(form.user_policy_check) }}
  313.                                         {{ '<a class="ec-link" href="%url%" target="_blank">利用規約</a>に同意してお進みください'|trans({ '%url%': url('help_agreement') })|raw }}
  314.                                     </label>
  315.                                     {{ form_errors(form.user_policy_check) }}
  316.                                 </div>
  317.                                 <button class="ec-blockBtn--action" type="submit" name="mode" value="confirm">{{ '同意する'|trans }}</button>
  318.                                 <a class="ec-blockBtn--cancel" href="{{ url('homepage') }}">{{ '同意しない'|trans }}</a>
  319.                             </div>
  320.                         </div>
  321.                     </div>
  322.                 </form>
  323.             </div>
  324.         </div>
  325.     </div>
  326. <!-- モーダルエリアここから -->
  327. <section id="modalArea" class="modalArea">
  328.   <div id="modalBg" class="modalBg"></div>
  329.   <div class="modalWrapper">
  330.     <div class="modalContents">
  331.         <div class="view1">
  332.             <p class="ym-heading ym-heading_lv2" style="margin-bottom: 20px;">YAMASHITA Maria ONLINE STOREの<br>連携サイト「エギCOM」に登録されていますか?</p>
  333.             <p class="ym-more ym-btn">
  334.                 <a href="javascript:void(0);" class="next_2">は い</a>&nbsp;&nbsp;
  335.                 <a href="javascript:void(0);" class="next_3">いいえ</a>
  336.             </p>
  337.             <!--
  338.             <p style="text-align: center;">
  339.                 <button>はい</button>&nbsp;
  340.                 <button>いいえ</button>
  341.             </p>
  342.             -->
  343.         </div>
  344.         <div class="view2">
  345.             <!--
  346.             <p class="ym-heading ym-heading_lv2">エギCOMにメールアドレス・パスワードが設定されていますか?</p>
  347.             <p class="ym-more ym-btn">
  348.                 <a href="javascript:void(0);" class="next_2">はい</a>
  349.                 <a href="javascript:void(0);" class="next_3">いいえ</a>
  350.             </p>
  351.             <p style="text-align: center;">
  352.                 <button>はい</button>&nbsp;
  353.                 <button>いいえ</button>
  354.             </p>
  355.             <br><br>
  356.             -->
  357.             <p class="ym-heading ym-heading_lv2">エギCOMにメールアドレス・パスワードが登録されている方</p>
  358.             <p>エギCOMのメールアドレスとパスワードで当ストアへログインしてください。</p>
  359.             <p class="ym-more ym-btn"><a href="/mypage/login" style="min-width: 300px;">ログインページへ</a></p>
  360.             <br><br>
  361.             <p class="ym-heading ym-heading_lv2">メールアドレス・パスワードが登録されていない方(SNSログインをご利用の方)</p>
  362.             <p>エギCOMのプロフィール編集画面でメールアドレスとパスワードを登録してください。</p>
  363.             <p class="ym-more ym-btn"><a href="https://www.yamaria.com/users/prof_edit" target="_blank" style="min-width: 300px;">エギCOM プロフィール編集へ</a></p>
  364.             <p style="margin-top: 15px;">登録が完了しましたら当ストアへログインしてください。</p>
  365.             <p class="ym-more ym-btn"><a href="/mypage/login" style="min-width: 300px;">ログインページへ</a></p>
  366.         </div>
  367.         <div class="view3">
  368.             <p class="ym-heading ym-heading_lv2">当ストアの新規会員登録へお進みください</p>
  369.             <p>当ストアで会員登録をすると、登録された同じメールアドレス・パスワードで連携サイト「エギCOM」にもログインできます。</p>
  370.             <p class="ym-more ym-btn"><a href="javascript:void(0);" class="func_close" style="min-width: 300px;">会員登録へ進む</a></p>
  371.         </div>
  372.     </div>
  373.     <!--
  374.     <div id="closeModal" class="closeModal">
  375.       ×
  376.     </div>
  377.     -->
  378.   </div>
  379. </section>
  380. <!-- モーダルエリアここまで -->
  381. {% endblock %}