<?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_8acb1fd860aaf9967834910db5731183b395e5b1e261efbf19d892730d8a795c 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Mypage/login.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Mypage/login.twig"));
// line 13
$context["body_class"] = "mypage";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Mypage/login.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 15
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 16
echo " <div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1>";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html", null, true);
echo "</h1>
</div>
<div class=\"ec-off2Grid\">
<div class=\"ec-off2Grid__cell\">
<form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
// line 22
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\">
";
// line 23
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.', 23, $this->source); })()), "session", [], "any", false, false, false, 23), "flashBag", [], "any", false, false, false, 23), "has", [0 => "eccube.login.target.path"], "method", false, false, false, 23)) {
// line 24
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.', 24, $this->source); })()), "session", [], "any", false, false, false, 24), "flashBag", [], "any", false, false, false, 24), "peek", [0 => "eccube.login.target.path"], "method", false, false, false, 24));
foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
// line 25
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 27
echo " ";
}
// line 28
echo " <div class=\"ec-login\">
<div class=\"ec-login__icon\">
<div class=\"ec-icon\"><img src=\"";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/user.svg"), "html", null, true);
echo "\" alt=\"\"></div>
</div>
<div class=\"ec-login__input\">
<div class=\"ec-input\">
";
// line 34
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.', 34, $this->source); })()), "login_email", [], "any", false, false, false, 34), 'widget', ["attr" => ["style" => "ime-mode: disabled;", "placeholder" => "メールアドレス", "autofocus" => true]]);
echo "
";
// line 35
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.', 35, $this->source); })()), "login_pass", [], "any", false, false, false, 35), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
echo "
</div>
";
// line 37
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.', 37, $this->source); })()), "option_remember_me", [], "any", false, false, false, 37)) {
// line 38
echo " <div class=\"ec-checkbox\">
<label>
";
// line 40
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 41
echo " <input type=\"hidden\" name=\"login_memory\" value=\"1\">
";
} else {
// line 43
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.', 43, $this->source); })()), "login_memory", [], "any", false, false, false, 43), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
echo "
";
}
// line 45
echo " </label>
</div>
";
}
// line 48
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.', 48, $this->source); })()), "session", [], "any", false, false, false, 48), "flashbag", [], "any", false, false, false, 48), "get", [0 => "password_reset_complete"], "method", false, false, false, 48));
foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
// line 49
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 51
echo " ";
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 51, $this->source); })())) {
// line 52
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.', 52, $this->source); })()), "messageKey", [], "any", false, false, false, 52), 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.', 52, $this->source); })()), "messageData", [], "any", false, false, false, 52), "validators"), "html", null, true));
echo "</p>
";
}
// line 54
echo " </div>
<div class=\"ec-grid2\">
<div class=\"ec-grid2__cell\">
<div class=\"ec-login__actions\">
<button type=\"submit\"
class=\"ec-blockBtn--cancel\">";
// line 59
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\">
<div class=\"ec-login__link\"><a class=\"ec-link\"
href=\"";
// line 64
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 class=\"ec-login__link\"><a class=\"ec-link\"
href=\"";
// line 67
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>
</div>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 72
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
</form>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Mypage/login.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 204 => 72, 194 => 67, 186 => 64, 178 => 59, 171 => 54, 165 => 52, 162 => 51, 153 => 49, 148 => 48, 143 => 45, 137 => 43, 133 => 41, 131 => 40, 127 => 38, 125 => 37, 120 => 35, 116 => 34, 109 => 30, 105 => 28, 102 => 27, 93 => 25, 88 => 24, 86 => 23, 82 => 22, 75 => 18, 71 => 16, 61 => 15, 50 => 11, 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' %}
{% block main %}
<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 %}
", "Mypage/login.twig", "/home/daiwafood/www/ec/app/template/mizunasu/Mypage/login.twig");
}
}