{#
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 main %}
<div class="ec-loginPage">
<div class="ec-loginPage__header">
<h1 class="ec-loginPage__title">{{ 'ログイン'|trans }}</h1>
</div>
</div>
<div class="ec-blockspliter"></div>
<div class="ec-loginBody">
<div class="ec-loginBody__container">
<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-loginBody__grid">
<div class="ec-login ec-loginBody__grid1">
<div class="ec-login__input">
<div class="ec-input">
<span>メールアドレスでログイン</span>
{{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレスを入力ください', 'autofocus': true}}) }}
<span>パスワード</span>
{{ 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>
<a class="ec-link" href="{{ url('forgot') }}">{{ 'パスワードをお忘れですか?'|trans }}</a>
</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-login__actions">
<button type="submit" class="ec-blockBtn--cancel">{{ 'ログイン'|trans }}</button>
</div>
</div>
<div class="vertical-line show-resultPC"></div>
<div class="ec-blockspliter show-resultSP"></div>
<div class="ec-login ec-loginBody__grid2">
<div class="ec-login__actions">
<span>会員登録がお済みでないお客様はこちら</span>
<a href="{{ url('entry') }}">
<button type="button" class="ec-blockBtn--cancel">{{ '新規会員登録'|trans }}</button>
</a>
</div>
<div class="ec-login__actions link-btn">#}
<span>{{ '法人のお客様はこちら'|trans }}</span>
<a href="https://three-m.online/houjin" target="_blank">
<button type="button" class="ec-blockBtn--cancel">{{ '法人様専用ログイン'|trans }}</button>
</a>
</div>
</div>
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
</form>
</div>
</div>
<div class="ec-blockspliter"></div>
<div class="ec-blockempty"></div>
{% endblock %}