{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'mypage' %}
{% block stylesheet %}
<link rel="stylesheet" href="{{ asset('assets/css/mypage-login.css') }}" type="text/css" media="all" />
{% endblock %}
{% block main %}
<section id="main-visual">
<div class="mainvisual" style="background-image: url('{{ asset('assets/img/common/mv_img_01.jpg') }}'); ?>)"></div>
</section>
<section id="main-title">
<h2 class="page-title">LOGIN</h2>
<div class="scroll">
<a href="#topic-path">
<p>scroll</p>
<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">
</a>
</div>
</section>
<section id="topic-path">
<div class="wrapper">
<div class="container">
<div class="page">
<a href="/">
<span class="home">HOME</span>
</a>
<span>></span>
<span class="current">ログイン</span>
</div>
</div>
</div>
</section>
<div class="ec-role">
<div class="ec-pageHeader">
<h1>{{ 'ログイン'|trans }}</h1>
</div>
<div class="ec-off2Grid">
<div class="ec-off2Grid__cell">
<form name="login_mypage" id="login_mypage" method="post" action="{{ url('mypage_login') }}">
{% if app.session.flashBag.has('eccube.login.target.path') %}
{% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
<input type="hidden" name="_target_path" value="{{ targetPath }}" />
{% endfor %}
{% endif %}
<div class="ec-login">
<div class="ec-login__icon">
<div class="ec-icon"><img src="{{ asset('assets/icon/user.svg') }}" alt=""></div>
</div>
<div class="ec-login__input">
<div class="ec-input">
{{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}
{{ form_widget(form.login_pass, {'attr': {'placeholder' : 'パスワード' }}) }}
</div>
{% if BaseInfo.option_remember_me %}
<div class="ec-checkbox">
<label>
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<input type="hidden" name="login_memory" value="1">
{% else %}
{{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
{% endif %}
</label>
</div>
{% endif %}
{% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
<p>{{ reset_complete|trans }}</p>
{% endfor %}
{% if error %}
<p class="ec-errorMessage">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
{% endif %}
</div>
<div class="ec-grid2">
<div class="ec-grid2__cell">
<div class="ec-login__actions">
<button type="submit"
class="ec-blockBtn--cancel">{{ 'ログイン'|trans }}</button>
</div>
</div>
<div class="ec-grid2__cell">
<div class="ec-login__link"><a class="ec-link"
href="{{ url('forgot') }}">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
</div>
<div class="ec-login__link"><a class="ec-link"
href="{{ url('entry') }}">{{ '新規会員登録'|trans }}</a>
</div>
</div>
</div>
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
</form>
</div>
</div>
</div>
{% endblock %}