var/cache/dev/twig/69/699ceb22bd0f6f55c491c492fd3430ae78008590ceb0ed5e5df0cbc0995e5b4d.php line 16

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Mypage/login.twig */
  14. class __TwigTemplate_cb744b1a33e7345c9497e31d2b08d76f7ebd5cbe9d6410d74bcfe0575cf10a39 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'main' => [$this'block_main'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 11
  29.         return "default_frame.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  38.         // line 13
  39.         $context["body_class"] = "mypage";
  40.         // line 11
  41.         $this->parent $this->loadTemplate("default_frame.twig""Mypage/login.twig"11);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 15
  49.     public function block_main($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  56.         // line 16
  57.         echo "    <div class=\"ec-role\">
  58.         <div class=\"ec-pageHeader\">
  59.             <h1>";
  60.         // line 18
  61.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  62.         echo "</h1>
  63.         </div>
  64.         <div class=\"ec-off2Grid\">
  65.             <div class=\"ec-off2Grid__cell\">
  66.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  67.         // line 22
  68.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  69.         echo "\">
  70.                     ";
  71.         // line 30
  72.         echo "                    ";
  73.         // line 31
  74.         echo "                    <input type=\"hidden\" name=\"_target_path\" value=\"";
  75.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("redirectlogin_redirect");
  76.         echo "\" />
  77.                     <div class=\"ec-login\">
  78.                         <div class=\"ec-login__icon\">
  79.                             <div class=\"ec-icon\"><img src=\"";
  80.         // line 34
  81.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/user.svg"), "html"nulltrue);
  82.         echo "\" alt=\"\"></div>
  83.                         </div>
  84.                         <div class=\"ec-login__input\">
  85.                             <div class=\"ec-input\">
  86.                                 ";
  87.         // line 38
  88.         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.'38$this->source); })()), "login_email", [], "any"falsefalsefalse38), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => "メールアドレスまたは学籍番号""autofocus" => true]]);
  89.         echo "
  90.                                 ";
  91.         // line 39
  92.         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.'39$this->source); })()), "login_pass", [], "any"falsefalsefalse39), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
  93.         echo "
  94.                             </div>
  95.                             ";
  96.         // line 41
  97.         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.'41$this->source); })()), "option_remember_me", [], "any"falsefalsefalse41)) {
  98.             // line 42
  99.             echo "                            <div class=\"ec-checkbox\">
  100.                                 <label>
  101.                                     ";
  102.             // line 44
  103.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  104.                 // line 45
  105.                 echo "                                        <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  106.                                     ";
  107.             } else {
  108.                 // line 47
  109.                 echo "                                        ";
  110.                 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.'47$this->source); })()), "login_memory", [], "any"falsefalsefalse47), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  111.                 echo "
  112.                                     ";
  113.             }
  114.             // line 49
  115.             echo "                                </label>
  116.                             </div>
  117.                             ";
  118.         }
  119.         // line 52
  120.         echo "                            ";
  121.         $context['_parent'] = $context;
  122.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'52$this->source); })()), "session", [], "any"falsefalsefalse52), "flashbag", [], "any"falsefalsefalse52), "get", [=> "password_reset_complete"], "method"falsefalsefalse52));
  123.         foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
  124.             // line 53
  125.             echo "                                <p>";
  126.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["reset_complete"]), "html"nulltrue);
  127.             echo "</p>
  128.                             ";
  129.         }
  130.         $_parent $context['_parent'];
  131.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
  132.         $context array_intersect_key($context$_parent) + $_parent;
  133.         // line 55
  134.         echo "                            ";
  135.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'55$this->source); })())) {
  136.             // line 56
  137.             echo "                                <p class=\"ec-errorMessage\">";
  138.             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.'56$this->source); })()), "messageKey", [], "any"falsefalsefalse56), 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.'56$this->source); })()), "messageData", [], "any"falsefalsefalse56), "validators"), "html"nulltrue));
  139.             echo "</p>
  140.                             ";
  141.         }
  142.         // line 58
  143.         echo "                        </div>
  144.                         <div class=\"ec-grid2\">
  145.                             <div class=\"ec-grid2__cell\">
  146.                                 <div class=\"ec-login__actions\">
  147.                                     <button type=\"submit\"
  148.                                             class=\"ec-blockBtn--cancel\">";
  149.         // line 63
  150.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  151.         echo "</button>
  152.                                 </div>
  153.                             </div>
  154.                             <div class=\"ec-grid2__cell\">
  155.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  156.                                                                href=\"";
  157.         // line 68
  158.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  159.         echo "\">";
  160.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン情報をお忘れですか?"), "html"nulltrue);
  161.         echo "</a>
  162.                                 </div>
  163.                             </div>
  164.                         </div>
  165.                     </div>
  166.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  167.         // line 73
  168.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  169.         echo "\">
  170.                 </form>
  171.             </div>
  172.         </div>
  173.     </div>
  174. ";
  175.         
  176.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  177.         
  178.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  179.     }
  180.     public function getTemplateName()
  181.     {
  182.         return "Mypage/login.twig";
  183.     }
  184.     public function isTraitable()
  185.     {
  186.         return false;
  187.     }
  188.     public function getDebugInfo()
  189.     {
  190.         return array (  182 => 73,  172 => 68,  164 => 63,  157 => 58,  151 => 56,  148 => 55,  139 => 53,  134 => 52,  129 => 49,  123 => 47,  119 => 45,  117 => 44,  113 => 42,  111 => 41,  106 => 39,  102 => 38,  95 => 34,  88 => 31,  86 => 30,  82 => 22,  75 => 18,  71 => 16,  61 => 15,  50 => 11,  48 => 13,  35 => 11,);
  191.     }
  192.     public function getSourceContext()
  193.     {
  194.         return new Source("{#
  195. This file is part of EC-CUBE
  196. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  197. http://www.ec-cube.co.jp/
  198. For the full copyright and license information, please view the LICENSE
  199. file that was distributed with this source code.
  200. #}
  201. {% extends 'default_frame.twig' %}
  202. {% set body_class = 'mypage' %}
  203. {% block main %}
  204.     <div class=\"ec-role\">
  205.         <div class=\"ec-pageHeader\">
  206.             <h1>{{ 'ログイン'|trans }}</h1>
  207.         </div>
  208.         <div class=\"ec-off2Grid\">
  209.             <div class=\"ec-off2Grid__cell\">
  210.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  211.                     {# {% if app.session.flashBag.has('eccube.login.target.path') %}
  212.                         {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  213.                             <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  214.                         {% endfor %}
  215.                     {% else %}
  216.                         <input type=\"hidden\" name=\"_target_path\" value=\"{{ url('homepage') }}\" />
  217.                     {% endif %} #}
  218.                     {# add spec No.37 ログイン時に検索条件を持っている場合は検索へリダイレクト #}
  219.                     <input type=\"hidden\" name=\"_target_path\" value=\"{{ url('redirectlogin_redirect') }}\" />
  220.                     <div class=\"ec-login\">
  221.                         <div class=\"ec-login__icon\">
  222.                             <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt=\"\"></div>
  223.                         </div>
  224.                         <div class=\"ec-login__input\">
  225.                             <div class=\"ec-input\">
  226.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレスまたは学籍番号', 'autofocus': true}}) }}
  227.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}
  228.                             </div>
  229.                             {% if BaseInfo.option_remember_me %}
  230.                             <div class=\"ec-checkbox\">
  231.                                 <label>
  232.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  233.                                         <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  234.                                     {% else %}
  235.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  236.                                     {% endif %}
  237.                                 </label>
  238.                             </div>
  239.                             {% endif %}
  240.                             {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  241.                                 <p>{{ reset_complete|trans }}</p>
  242.                             {% endfor %}
  243.                             {% if error %}
  244.                                 <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  245.                             {% endif %}
  246.                         </div>
  247.                         <div class=\"ec-grid2\">
  248.                             <div class=\"ec-grid2__cell\">
  249.                                 <div class=\"ec-login__actions\">
  250.                                     <button type=\"submit\"
  251.                                             class=\"ec-blockBtn--cancel\">{{ 'ログイン'|trans }}</button>
  252.                                 </div>
  253.                             </div>
  254.                             <div class=\"ec-grid2__cell\">
  255.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  256.                                                                href=\"{{ url('forgot') }}\">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
  257.                                 </div>
  258.                             </div>
  259.                         </div>
  260.                     </div>
  261.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  262.                 </form>
  263.             </div>
  264.         </div>
  265.     </div>
  266. {% endblock %}""Mypage/login.twig""/var/www/BELmate-new/app/template/default/Mypage/login.twig");
  267.     }
  268. }