app/template/mieuree/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 main %}
  11.     <div class="ec-role">
  12.         <div class="ec-pageHeader">
  13.             <h1 class="page-title-en" data-title="Login">ログイン</h1>
  14.         </div>
  15.         <div class="ec-off2Grid">
  16.             <div class="ec-off2Grid__cell">
  17.                 <form name="login_mypage" id="login_mypage" method="post" action="{{ url('mypage_login') }}">
  18.                     {% if app.session.flashBag.has('eccube.login.target.path') %}
  19.                         {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  20.                             <input type="hidden" name="_target_path" value="{{ targetPath }}" />
  21.                         {% endfor %}
  22.                     {% endif %}
  23.                     <div class="ec-login">
  24.                         <div class="ec-login__input">
  25.                             <div class="ec-input">
  26.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}
  27.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}
  28.                             </div>
  29.                             {% if BaseInfo.option_remember_me %}
  30.                             <div class="ec-checkbox">
  31.                                 <label>
  32.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  33.                                         <input type="hidden" name="login_memory" value="1">
  34.                                     {% else %}
  35.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  36.                                     {% endif %}
  37.                                 </label>
  38.                             </div>
  39.                             {% endif %}
  40.                             {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  41.                                 <p>{{ reset_complete|trans }}</p>
  42.                             {% endfor %}
  43.                             {% if error %}
  44.                                 <p class="ec-errorMessage">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  45.                             {% endif %}
  46.                         </div>
  47.                     </div>
  48.                         <div class="mt-5">
  49.                             <div class="text-center mb-5">
  50.                                 <div class="ec-login__actions text-center">
  51.                                     <button type="submit"
  52.                                             class="ec-inlineBtn px-5">{{ 'ログイン'|trans }}</button>
  53.                                 </div>
  54.                             </div>
  55.                             <div class="text-center">
  56.                                 <div class="ec-login__link mb-3"><a class="ec-link"
  57.                                                                href="{{ url('forgot') }}">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
  58.                                 </div>
  59.                                 <div class="ec-login__link mb-3"><a class="ec-link"
  60.                                                                href="{{ url('entry') }}">{{ '新規会員登録'|trans }}</a>
  61.                                 </div>
  62.                             </div>
  63.                         </div>
  64.                     <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  65.                 </form>
  66.             </div>
  67.         </div>
  68.     </div>
  69. {% endblock %}