app/template/myTemplate/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. <link rel="stylesheet" href="{{ asset('assets/css/mypage-login.css') }}" type="text/css" media="all" />
  12. {% endblock %}
  13. {% block main %}
  14.     <section id="main-visual">
  15.         <div class="mainvisual" style="background-image: url('{{ asset('assets/img/common/mv_img_01.jpg') }}'); ?>)"></div>
  16.     </section>
  17.     <section id="main-title">
  18.         <h2 class="page-title">LOGIN</h2>
  19.         <div class="scroll">
  20.             <a href="#topic-path">
  21.                 <p>scroll</p>
  22.                 <img src="https://mx-build.jp/wp-content/themes/%E3%82%BF%E3%82%A4%E3%82%A8%E3%82%A4%E5%8C%97%E6%B5%B7%E9%81%93%E3%82%A8%E3%83%B3%E3%82%B7%E3%82%99%E3%83%8B%E3%82%A2%E3%82%A2%E3%83%AA%E3%83%B3%E3%82%AF%E3%82%99/img/scroll.png" alt="scroll-arrow">
  23.             </a>
  24.         </div>
  25.     </section>
  26.     <section id="topic-path">
  27.         <div class="wrapper">
  28.             <div class="container">
  29.                 <div class="page">
  30.                     <a href="/">
  31.                         <span class="home">HOME</span>
  32.                     </a>
  33.                     <span>&gt;</span>
  34.                     <span class="current">ログイン</span>
  35.                 </div>
  36.             </div>
  37.         </div>
  38.     </section>
  39.     <div class="ec-role">
  40.         <div class="ec-pageHeader">
  41.             <h1>{{ 'ログイン'|trans }}</h1>
  42.         </div>
  43.         <div class="ec-off2Grid">
  44.             <div class="ec-off2Grid__cell">
  45.                 <form name="login_mypage" id="login_mypage" method="post" action="{{ url('mypage_login') }}">
  46.                     {% if app.session.flashBag.has('eccube.login.target.path') %}
  47.                         {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  48.                             <input type="hidden" name="_target_path" value="{{ targetPath }}" />
  49.                         {% endfor %}
  50.                     {% endif %}
  51.                     <div class="ec-login">
  52.                         <div class="ec-login__icon">
  53.                             <div class="ec-icon"><img src="{{ asset('assets/icon/user.svg') }}" alt=""></div>
  54.                         </div>
  55.                         <div class="ec-login__input">
  56.                             <div class="ec-input">
  57.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}
  58.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}
  59.                             </div>
  60.                             {% if BaseInfo.option_remember_me %}
  61.                             <div class="ec-checkbox">
  62.                                 <label>
  63.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  64.                                         <input type="hidden" name="login_memory" value="1">
  65.                                     {% else %}
  66.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  67.                                     {% endif %}
  68.                                 </label>
  69.                             </div>
  70.                             {% endif %}
  71.                             {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  72.                                 <p>{{ reset_complete|trans }}</p>
  73.                             {% endfor %}
  74.                             {% if error %}
  75.                                 <p class="ec-errorMessage">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  76.                             {% endif %}
  77.                         </div>
  78.                         <div class="ec-grid2">
  79.                             <div class="ec-grid2__cell">
  80.                                 <div class="ec-login__actions">
  81.                                     <button type="submit"
  82.                                             class="ec-blockBtn--cancel">{{ 'ログイン'|trans }}</button>
  83.                                 </div>
  84.                             </div>
  85.                             <div class="ec-grid2__cell">
  86.                                 <div class="ec-login__link"><a class="ec-link"
  87.                                                                href="{{ url('forgot') }}">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
  88.                                 </div>
  89.                                 <div class="ec-login__link"><a class="ec-link"
  90.                                                                href="{{ url('entry') }}">{{ '新規会員登録'|trans }}</a>
  91.                                 </div>
  92.                             </div>
  93.                         </div>
  94.                     </div>
  95.                     <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  96.                 </form>
  97.             </div>
  98.         </div>
  99.     </div>
  100. {% endblock %}