<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Mypage/login.twig */
class __TwigTemplate_42df12b43f8fdb4d667b5cb293c16d30 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Mypage/login.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Mypage/login.twig"));
// line 13
$context["body_class"] = "mypage";
// line 14
$context["mypage_css"] = "ture";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Mypage/login.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 16
echo " <div class=\"ec-role\">
<div class=\"ec-pageHeader\" data-aos=\"fade-up\">
<h2>";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html", null, true);
echo "</h2>
</div>
<div class=\"ec-role\">
<div class=\"ec-loginRole\">
<div class=\"ec-loginRole__inner standard-inner3\">
<div class=\"ec-login\">
<form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
// line 24
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\">
";
// line 25
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "session", [], "any", false, false, false, 25), "flashBag", [], "any", false, false, false, 25), "has", [0 => "eccube.login.target.path"], "method", false, false, false, 25)) {
// line 26
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 26, $this->source); })()), "session", [], "any", false, false, false, 26), "flashBag", [], "any", false, false, false, 26), "peek", [0 => "eccube.login.target.path"], "method", false, false, false, 26));
foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
// line 27
echo " <input type=\"hidden\" name=\"_target_path\" value=\"";
echo twig_escape_filter($this->env, $context["targetPath"], "html", null, true);
echo "\" />
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo " ";
}
// line 30
echo " <div class=\"ec-login__text\" data-aos=\"fade-up\">
会員の方は、登録時に入力されたE-mailとパスワードでログインしてください。<br>
<a href=\"";
// line 32
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("新規会員登録はこちら"), "html", null, true);
echo "</a>
</div>
<div class=\"ec-login__input\" data-aos=\"fade-up\">
<div class=\"ec-login__input-row\">
";
// line 36
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 36, $this->source); })()), "login_email", [], "any", false, false, false, 36), 'label', (twig_test_empty($_label_ = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メールアドレス")) ? [] : ["label" => $_label_]));
echo "
";
// line 37
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 37, $this->source); })()), "login_email", [], "any", false, false, false, 37), 'widget', ["attr" => ["style" => "ime-mode: disabled;", "placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メールアドレス"), "autofocus" => true]]);
echo "
</div>
<div class=\"ec-login__input-row\">
";
// line 40
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 40, $this->source); })()), "login_pass", [], "any", false, false, false, 40), 'label', (twig_test_empty($_label_ = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("パスワード")) ? [] : ["label" => $_label_]));
echo "
";
// line 41
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 41, $this->source); })()), "login_pass", [], "any", false, false, false, 41), 'widget', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("パスワード")]]);
echo "
</div>
";
// line 43
if (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 43, $this->source); })()), "option_remember_me", [], "any", false, false, false, 43)) {
// line 44
echo " <div class=\"ec-checkbox\">
<label>
";
// line 46
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 47
echo " <input type=\"hidden\" name=\"login_memory\" value=\"1\">
";
} else {
// line 49
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 49, $this->source); })()), "login_memory", [], "any", false, false, false, 49), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログインしたままにする")]);
echo "
";
}
// line 51
echo " </label>
</div>
";
}
// line 54
echo " </div>
";
// line 55
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 55, $this->source); })()), "session", [], "any", false, false, false, 55), "flashbag", [], "any", false, false, false, 55), "get", [0 => "password_reset_complete"], "method", false, false, false, 55));
foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
// line 56
echo " <p>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["reset_complete"]), "html", null, true);
echo "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 58
echo " ";
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 58, $this->source); })())) {
// line 59
echo " <p class=\"ec-errorMessage\">";
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 59, $this->source); })()), "messageKey", [], "any", false, false, false, 59), twig_get_attribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 59, $this->source); })()), "messageData", [], "any", false, false, false, 59), "validators"), "html", null, true));
echo "</p>
";
}
// line 61
echo " <div class=\"ec-grid2\">
<div class=\"ec-grid2__cell\" data-aos=\"fade-up\">
<div class=\"ec-login__actions\">
<button type=\"submit\" class=\"ec-blockBtn--cancel\">";
// line 64
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html", null, true);
echo "</button>
</div>
</div>
<div class=\"ec-grid2__cell\" data-aos=\"fade-up\">
<div class=\"ec-login__link\"><a class=\"ec-link\" href=\"";
// line 68
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("パスワードを忘れた方はこちら"), "html", null, true);
echo "</a></div>
</div>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 71
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
</form>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Mypage/login.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 209 => 71, 201 => 68, 194 => 64, 189 => 61, 183 => 59, 180 => 58, 171 => 56, 167 => 55, 164 => 54, 159 => 51, 153 => 49, 149 => 47, 147 => 46, 143 => 44, 141 => 43, 136 => 41, 132 => 40, 126 => 37, 122 => 36, 113 => 32, 109 => 30, 106 => 29, 97 => 27, 92 => 26, 90 => 25, 86 => 24, 77 => 18, 73 => 16, 63 => 15, 52 => 11, 50 => 14, 48 => 13, 35 => 11,);
}
public function getSourceContext()
{
return new Source("{#
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' %}
{% set mypage_css = 'ture' %}
{% block main %}
<div class=\"ec-role\">
<div class=\"ec-pageHeader\" data-aos=\"fade-up\">
<h2>{{ 'ログイン'|trans }}</h2>
</div>
<div class=\"ec-role\">
<div class=\"ec-loginRole\">
<div class=\"ec-loginRole__inner standard-inner3\">
<div class=\"ec-login\">
<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__text\" data-aos=\"fade-up\">
会員の方は、登録時に入力されたE-mailとパスワードでログインしてください。<br>
<a href=\"{{ url('entry') }}\">{{ '新規会員登録はこちら'|trans }}</a>
</div>
<div class=\"ec-login__input\" data-aos=\"fade-up\">
<div class=\"ec-login__input-row\">
{{ form_label(form.login_email, 'メールアドレス'|trans) }}
{{ form_widget(form.login_email, { attr: { 'style' : 'ime-mode: disabled;', placeholder: 'メールアドレス'|trans, 'autofocus': true }}) }}
</div>
<div class=\"ec-login__input-row\">
{{ form_label(form.login_pass, 'パスワード'|trans) }}
{{ form_widget(form.login_pass, { attr: { placeholder: 'パスワード'|trans }}) }}
</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 %}
</div>
{% 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 class=\"ec-grid2\">
<div class=\"ec-grid2__cell\" data-aos=\"fade-up\">
<div class=\"ec-login__actions\">
<button type=\"submit\" class=\"ec-blockBtn--cancel\">{{ 'ログイン'|trans}}</button>
</div>
</div>
<div class=\"ec-grid2__cell\" data-aos=\"fade-up\">
<div class=\"ec-login__link\"><a class=\"ec-link\" href=\"{{ url('forgot') }}\">{{ 'パスワードを忘れた方はこちら'|trans}}</a></div>
</div>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
</form>
</div>
</div>
</div>
</div>
{% endblock %}
", "Mypage/login.twig", "/home/daishi37x/dis61.work/public_html/shosen-east.dis61.work/shop/app/template/default/Mypage/login.twig");
}
}