app/template/yamaria/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>{{ 'ログイン'|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.                         <p>連携サイト”エギCOM”と同じメールアドレス、パスワードでログイン可能です。</p>
  28.                         <div class="ec-login__input">
  29.                             <div class="ec-input">
  30.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}
  31.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}
  32.                             </div>
  33.                             {% if BaseInfo.option_remember_me %}
  34.                             <div class="ec-checkbox">
  35.                                 <label>
  36.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  37.                                         <input type="hidden" name="login_memory" value="1">
  38.                                     {% else %}
  39.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  40.                                     {% endif %}
  41.                                 </label>
  42.                             </div>
  43.                             {% endif %}
  44.                             {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  45.                                 <p>{{ reset_complete|trans }}</p>
  46.                             {% endfor %}
  47.                             {% if error %}
  48.                                 <p class="ec-errorMessage">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  49.                             {% endif %}
  50.                             {% for error in app.session.flashbag.get('eccube.front.request.error') %}
  51.                                 <p class="ec-errorMessage">{{ error|trans|nl2br }}</p>
  52.                             {% endfor %}
  53.                         </div>
  54.                         <div class="ec-grid2">
  55.                             <div class="ec-grid2__cell">
  56.                                 <div class="ec-login__actions">
  57.                                     <button type="submit"
  58.                                             class="ec-blockBtn--cancel">{{ 'ログイン'|trans }}</button>
  59.                                 </div>
  60.                             </div>
  61.                             <div class="ec-grid2__cell">
  62.                                 <div class="ec-login__link"><a class="ec-link"
  63.                                                                href="{{ url('forgot') }}">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
  64.                                 </div>
  65.                                 <div class="ec-login__link"><a class="ec-link"
  66.                                                                href="{{ url('entry') }}">{{ '新規会員登録'|trans }}</a>
  67.                                 </div>
  68.                             </div>
  69.                         </div>
  70.                     </div>
  71.                     <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  72.                 </form>
  73.             </div>
  74.         </div>
  75.     </div>
  76. {% endblock %}