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 main %}
  11.     <div class="ec-role">
  12.         <div class="ec-pageHeader">
  13.             <h1>{{ 'LOGIN'|trans }}</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__icon">
  25.                             <div class="ec-icon"><img src="{{ asset('assets/icon/user.svg') }}" alt=""></div>
  26.                         </div>
  27.                         <div class="ec-login__input">
  28.                             <div class="ec-input">
  29.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}
  30.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}
  31.                             </div>
  32.                             {% if BaseInfo.option_remember_me %}
  33.                             <div class="ec-checkbox">
  34.                                 <label>
  35.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  36.                                         <input type="hidden" name="login_memory" value="1">
  37.                                     {% else %}
  38.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  39.                                     {% endif %}
  40.                                 </label>
  41.                             </div>
  42.                             {% endif %}
  43.                             {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  44.                                 <p>{{ reset_complete|trans }}</p>
  45.                             {% endfor %}
  46.                             {% if error %}
  47.                                 <p class="ec-errorMessage">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  48.                             {% endif %}
  49.                         </div>
  50.                         <div class="ec-grid2">
  51.                             <div class="ec-grid2__cell">
  52.                                 <div class="ec-login__actions">
  53.                                     <button type="submit"
  54.                                             class="ec-blockBtn--cancel">{{ 'ログイン'|trans }}</button>
  55.                                 </div>
  56.                             </div>
  57.                             <div class="ec-grid2__cell">
  58.                                 <div class="ec-login__link"><a class="ec-link"
  59.                                                                href="{{ url('forgot') }}">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
  60.                                 </div>
  61.                                 <div class="ec-login__link"><a class="ec-link"
  62.                                                                href="{{ url('entry') }}">{{ '新規会員登録'|trans }}</a>
  63.                                 </div>
  64.                             </div>
  65.                         </div>
  66.                     </div>
  67.                     <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  68.                 </form>
  69.             </div>
  70.         </div>
  71.     </div>
  72. {% endblock %}