app/template/default/Mypage/login.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. {% block stylesheet %}
  11.     <style>
  12.         #login_email,
  13.         #login_pass {
  14.             padding: 16px 12px;
  15.             width: 100%;
  16.             border-width: 1px;
  17.             border-color: #CCCCCC;
  18.             border-radius: 3px;
  19.             text: #BBBBBB;
  20.             height: 48px;
  21.         }
  22.         #breadcrumbs {
  23.             width: 100vw;
  24.             margin-left: -50vw;
  25.             position: relative;
  26.             left: 50%;
  27.         }
  28.         @media(max-width: 768px) {
  29.             #breadcrumbs {
  30.                 padding-left: 40px;
  31.             }
  32.         }
  33.     </style>
  34. {% endblock %}
  35. {% block main %}
  36.     <div class="pb-20 md:px-6 whitespace-nowrap bg-background-default rounded">
  37.         <div class="flex gap-4 items-start mx-auto w-full pl-[136px] md:pl-0 pt-20 pb-6">
  38.             <hr class="md:h-[64px] h-[160px] w-[1px] bg-gradient-to-b from-[#ADAAA6] to-[#F0EDE900] border-none">
  39.             <h1 class="text-[32px] md:text-xl font-light leading-9 tracking-widest">新規会員登録・ログイン</h1>
  40.         </div>
  41.         <div class="w-full">
  42.             {% set breadcrumbs = [{'name': "新規会員登録・ログイン"}] %}
  43.             {{ include('Block/breadcrumb.twig') }}
  44.         </div>
  45.         <div class="max-w-[798px] w-full flex flex-col items-center justify-center mx-auto">
  46.             <div>
  47.                 <div class="flex w-full gap-[72px] lg:flex-col lg:gap-10">
  48.                     <div
  49.                         class="w-1/2 lg:w-full">
  50.                         {# 新規会員登録 #}
  51.                         <h3 class="mb-[22px] text-xl font-medium">はじめてのご利用はこちら</h3>
  52.                         <a href="{{url('entry')}}" class="block text-sm text-center bg-black w-[327px] text-white py-3 rounded-[3px] font-bold hover">{{ 'common.signup'|trans }}</a>
  53.                     </div>
  54.                     <hr class="bg-[#F0EDE9] border-none w-[1px] h-[327px] lg:w-[327px] lg:h-[1px]">
  55.                     <form name="login_mypage" id="login_mypage" method="post" action="{{ url('mypage_login') }}" class="w-1/2 lg:w-full">
  56.                         {% if app.session.flashBag.has('eccube.login.target.path') %}
  57.                             {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  58.                                 <input type="hidden" name="_target_path" value="{{ targetPath }}"/>
  59.                             {% endfor %}
  60.                         {% endif %}
  61.                         {# ログイン #}
  62.                         <h3 class="mb-[22px] text-xl font-medium">会員の方</h3>
  63.                         <p class="text-lg mb-[18px] font-medium">ログイン</p>
  64.                         <div class="flex flex-col">
  65.                             <div class="mb-4 text-sm font-medium">
  66.                                 <p class="mb-2 font-medium">メールアドレス</p>
  67.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'common.mail_address', 'autofocus': true}}) }}
  68.                                 {{ form_errors(form.login_email) }}
  69.                             </div>
  70.                             <div class="mb-10">
  71.                                 <p class="mb-2 text-sm font-medium">パスワード</p>
  72.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'common.password' }}) }}
  73.                                 {{ form_errors(form.login_pass) }}
  74.                             </div>
  75.                             <div class="flex flex-col items-center">
  76.                                 <button type="submit" class="mb-4 text-sm bg-red w-[327px] h-[45px] py-3 rounded-[3px] text-white font-bold hover">{{ 'common.login'|trans }}</button>
  77.                                 {% if error %}
  78.                                     <div class="!text-red text-xs flex items-center gap-2 pb-2">
  79.                                         <img src="{{asset('assets/icon/error.svg')}}" alt="Error Image" class="w-3 h-3">
  80.                                         <span class="flex ">
  81.                                             {{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}
  82.                                         </span>
  83.                                     </div>
  84.                                 {% endif %}
  85.                                 <a class="border-b border-black leading-4 tracking-widest text-sm font-normal hover" href="{{ url('forgot') }}">パスワードを忘れた方</a>
  86.                             </div>
  87.                         </div>
  88.                         <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  89.                     </form>
  90.                 </div>
  91.                 <div></div>
  92.             </div>
  93.         </div>
  94.     </div>
  95. {% endblock %}