var/cache/dev/twig/0b/0b0fcec117dc2c2108c37b930e52a208.php line 38

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_b3a992c721e51e88a2a2df591aee59a3 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  38.         // line 13
  39.         $context["body_class"] = "mypage";
  40.         // line 15
  41.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'15$this->source); })()), [=> "Form/form_div_layout.twig"], true);
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""Mypage/login.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 17
  51.     public function block_main($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  58.         // line 18
  59.         echo "    <section class=\"p-mypage\">
  60.         <div class=\"p-mypage__heading\">
  61.             <h1 class=\"c-page-title\">
  62.                 <span class=\"c-page-title__text\">";
  63.         // line 22
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  65.         echo "</span>
  66.             </h1>
  67.         </div>
  68.         <div class=\"p-mypage__contents\">
  69.             <div class=\"p-mypage__login\">
  70.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  71.         // line 29
  72.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  73.         echo "\">
  74.                     ";
  75.         // line 30
  76.         if (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.'30$this->source); })()), "session", [], "any"falsefalsefalse30), "flashBag", [], "any"falsefalsefalse30), "has", [=> "eccube.login.target.path"], "method"falsefalsefalse30)) {
  77.             // line 31
  78.             echo "                        ";
  79.             $context['_parent'] = $context;
  80.             $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.'31$this->source); })()), "session", [], "any"falsefalsefalse31), "flashBag", [], "any"falsefalsefalse31), "peek", [=> "eccube.login.target.path"], "method"falsefalsefalse31));
  81.             foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
  82.                 // line 32
  83.                 echo "                            <input type=\"hidden\" name=\"_target_path\" value=\"";
  84.                 echo twig_escape_filter($this->env$context["targetPath"], "html"nulltrue);
  85.                 echo "\" />
  86.                         ";
  87.             }
  88.             $_parent $context['_parent'];
  89.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
  90.             $context array_intersect_key($context$_parent) + $_parent;
  91.             // line 34
  92.             echo "                    ";
  93.         }
  94.         // line 35
  95.         echo "                    <div class=\"c-form is-input\">
  96.                         <div class=\"c-form__box\">
  97.                             <div class=\"c-form__box-item\">
  98.                                 <div class=\"p-mypage__login-user\">
  99.                                     <i class=\"p-mypage__login-user-icon material-icons\">account_circle</i>
  100.                                 </div>
  101.                             </div>
  102.                         </div>
  103.                         <div class=\"c-form__box\">
  104.                             <div class=\"c-form__box-item\">
  105.                                 <div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
  106.                                     ";
  107.         // line 46
  108.         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.'46$this->source); })()), "login_email", [], "any"falsefalsefalse46), 'widget', ["attr" => ["class" => "c-text-field__input mdc-text-field__input""autofocus" => true]]);
  109.         echo "
  110.                                     <div class=\"mdc-notched-outline\">
  111.                                         <div class=\"mdc-notched-outline__leading\"></div>
  112.                                         <div class=\"mdc-notched-outline__notch\">
  113.                                             <label class=\"c-floating-label mdc-floating-label\" for=\"login_email\">メールアドレス</label>
  114.                                         </div>
  115.                                         <div class=\"mdc-notched-outline__trailing\"></div>
  116.                                     </div>
  117.                                 </div>
  118.                             </div>
  119.                         </div>
  120.                         <div class=\"c-form__box\">
  121.                             <div class=\"c-form__box-item\">
  122.                                 <div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
  123.                                     ";
  124.         // line 60
  125.         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.'60$this->source); })()), "login_pass", [], "any"falsefalsefalse60), 'widget', ["attr" => ["class" => "c-text-field__input mdc-text-field__input"]]);
  126.         echo "
  127.                                     <div class=\"mdc-notched-outline\">
  128.                                         <div class=\"mdc-notched-outline__leading\"></div>
  129.                                         <div class=\"mdc-notched-outline__notch\">
  130.                                             <label class=\"c-floating-label mdc-floating-label\" for=\"login_pass\">パスワード</label>
  131.                                         </div>
  132.                                         <div class=\"mdc-notched-outline__trailing\"></div>
  133.                                     </div>
  134.                                 </div>
  135.                             </div>
  136.                         </div>
  137.                         ";
  138.         // line 71
  139.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'71$this->source); })())) {
  140.             // line 72
  141.             echo "                            <p class=\"c-form__error-text\">";
  142.             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.'72$this->source); })()), "messageKey", [], "any"falsefalsefalse72), 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.'72$this->source); })()), "messageData", [], "any"falsefalsefalse72), "validators"), "html"nulltrue));
  143.             echo "</p>
  144.                         ";
  145.         }
  146.         // line 74
  147.         echo "                        ";
  148.         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.'74$this->source); })()), "option_remember_me", [], "any"falsefalsefalse74)) {
  149.             // line 75
  150.             echo "                            <div class=\"c-form__box\">
  151.                                 <div class=\"c-form__box-item\">
  152.                                     ";
  153.             // line 77
  154.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  155.                 // line 78
  156.                 echo "                                        <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  157.                                     ";
  158.             } else {
  159.                 // line 80
  160.                 echo "                                        ";
  161.                 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.'80$this->source); })()), "login_memory", [], "any"falsefalsefalse80), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  162.                 echo "
  163.                                     ";
  164.             }
  165.             // line 82
  166.             echo "                                </div>
  167.                             </div>
  168.                         ";
  169.         }
  170.         // line 85
  171.         echo "                        ";
  172.         $context['_parent'] = $context;
  173.         $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.'85$this->source); })()), "session", [], "any"falsefalsefalse85), "flashbag", [], "any"falsefalsefalse85), "get", [=> "password_reset_complete"], "method"falsefalsefalse85));
  174.         foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
  175.             // line 86
  176.             echo "                            <p>";
  177.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["reset_complete"]), "html"nulltrue);
  178.             echo "</p>
  179.                         ";
  180.         }
  181.         $_parent $context['_parent'];
  182.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
  183.         $context array_intersect_key($context$_parent) + $_parent;
  184.         // line 88
  185.         echo "                        <div class=\"p-mypage__login-info\">
  186.                             <p class=\"p-mypage__login-info-text\">";
  187.         // line 89
  188.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン情報をお忘れの場合、パスワードの再発行手続きを行ってください。"), "html"nulltrue);
  189.         echo "</p>
  190.                             <div class=\"p-mypage__login-info-button\">
  191.                                 <a class=\"c-button c-button--dense c-button--outlined is-quaternary mdc-button mdc-button--dense mdc-button--outlined\" href=\"";
  192.         // line 91
  193.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  194.         echo "\">
  195.                                     <i class=\"c-button__icon mdc-button__icon material-icons\">vpn_key</i>
  196.                                     <span class=\"c-button__label mdc-button__label\">";
  197.         // line 93
  198.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("パスワードの再発行"), "html"nulltrue);
  199.         echo "</span>
  200.                                 </a>
  201.                             </div>
  202.                         </div>
  203.                         <div class=\"c-form__actions\">
  204.                             <div class=\"c-form__actions-item\">
  205.                                 <button class=\"c-form__button c-button is-secondary c-button--unelevated mdc-button mdc-button--unelevated\" type=\"submit\">
  206.                                     <span class=\"c-button__label mdc-button__label\">";
  207.         // line 100
  208.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  209.         echo "</span>
  210.                                 </button>
  211.                             </div>
  212.                             <div class=\"c-form__actions-item\">
  213.                                 <a class=\"c-form__button c-button is-secondary c-button--outlined mdc-button mdc-button--outlined\" href=\"";
  214.         // line 104
  215.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  216.         echo "\">
  217.                                     <span class=\"c-button__label mdc-button__label\">";
  218.         // line 105
  219.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("新規会員登録"), "html"nulltrue);
  220.         echo "</span>
  221.                                 </a>
  222.                             </div>
  223.                         </div>
  224.                     </div>
  225.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  226.         // line 110
  227.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  228.         echo "\">
  229.                 </form>
  230.             </div>
  231.         </div>
  232.     </section>
  233. ";
  234.         
  235.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  236.         
  237.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  238.     }
  239.     public function getTemplateName()
  240.     {
  241.         return "Mypage/login.twig";
  242.     }
  243.     public function isTraitable()
  244.     {
  245.         return false;
  246.     }
  247.     public function getDebugInfo()
  248.     {
  249.         return array (  244 => 110,  236 => 105,  232 => 104,  225 => 100,  215 => 93,  210 => 91,  205 => 89,  202 => 88,  193 => 86,  188 => 85,  183 => 82,  177 => 80,  173 => 78,  171 => 77,  167 => 75,  164 => 74,  158 => 72,  156 => 71,  142 => 60,  125 => 46,  112 => 35,  109 => 34,  100 => 32,  95 => 31,  93 => 30,  89 => 29,  79 => 22,  73 => 18,  63 => 17,  52 => 11,  50 => 15,  48 => 13,  35 => 11,);
  250.     }
  251.     public function getSourceContext()
  252.     {
  253.         return new Source("{#
  254. This file is part of EC-CUBE
  255. Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
  256. http://www.lockon.co.jp/
  257. For the full copyright and license information, please view the LICENSE
  258. file that was distributed with this source code.
  259. #}
  260. {% extends 'default_frame.twig' %}
  261. {% set body_class = 'mypage' %}
  262. {% form_theme form 'Form/form_div_layout.twig' %}
  263. {% block main %}
  264.     <section class=\"p-mypage\">
  265.         <div class=\"p-mypage__heading\">
  266.             <h1 class=\"c-page-title\">
  267.                 <span class=\"c-page-title__text\">{{ 'ログイン'|trans }}</span>
  268.             </h1>
  269.         </div>
  270.         <div class=\"p-mypage__contents\">
  271.             <div class=\"p-mypage__login\">
  272.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  273.                     {% if app.session.flashBag.has('eccube.login.target.path') %}
  274.                         {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  275.                             <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  276.                         {% endfor %}
  277.                     {% endif %}
  278.                     <div class=\"c-form is-input\">
  279.                         <div class=\"c-form__box\">
  280.                             <div class=\"c-form__box-item\">
  281.                                 <div class=\"p-mypage__login-user\">
  282.                                     <i class=\"p-mypage__login-user-icon material-icons\">account_circle</i>
  283.                                 </div>
  284.                             </div>
  285.                         </div>
  286.                         <div class=\"c-form__box\">
  287.                             <div class=\"c-form__box-item\">
  288.                                 <div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
  289.                                     {{ form_widget(form.login_email, {'attr': {'class': 'c-text-field__input mdc-text-field__input', 'autofocus': true}}) }}
  290.                                     <div class=\"mdc-notched-outline\">
  291.                                         <div class=\"mdc-notched-outline__leading\"></div>
  292.                                         <div class=\"mdc-notched-outline__notch\">
  293.                                             <label class=\"c-floating-label mdc-floating-label\" for=\"login_email\">メールアドレス</label>
  294.                                         </div>
  295.                                         <div class=\"mdc-notched-outline__trailing\"></div>
  296.                                     </div>
  297.                                 </div>
  298.                             </div>
  299.                         </div>
  300.                         <div class=\"c-form__box\">
  301.                             <div class=\"c-form__box-item\">
  302.                                 <div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
  303.                                     {{ form_widget(form.login_pass,  {'attr': {'class': 'c-text-field__input mdc-text-field__input' }}) }}
  304.                                     <div class=\"mdc-notched-outline\">
  305.                                         <div class=\"mdc-notched-outline__leading\"></div>
  306.                                         <div class=\"mdc-notched-outline__notch\">
  307.                                             <label class=\"c-floating-label mdc-floating-label\" for=\"login_pass\">パスワード</label>
  308.                                         </div>
  309.                                         <div class=\"mdc-notched-outline__trailing\"></div>
  310.                                     </div>
  311.                                 </div>
  312.                             </div>
  313.                         </div>
  314.                         {% if error %}
  315.                             <p class=\"c-form__error-text\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  316.                         {% endif %}
  317.                         {% if BaseInfo.option_remember_me %}
  318.                             <div class=\"c-form__box\">
  319.                                 <div class=\"c-form__box-item\">
  320.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  321.                                         <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  322.                                     {% else %}
  323.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  324.                                     {% endif %}
  325.                                 </div>
  326.                             </div>
  327.                         {% endif %}
  328.                         {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  329.                             <p>{{ reset_complete|trans }}</p>
  330.                         {% endfor %}
  331.                         <div class=\"p-mypage__login-info\">
  332.                             <p class=\"p-mypage__login-info-text\">{{ 'ログイン情報をお忘れの場合、パスワードの再発行手続きを行ってください。'|trans }}</p>
  333.                             <div class=\"p-mypage__login-info-button\">
  334.                                 <a class=\"c-button c-button--dense c-button--outlined is-quaternary mdc-button mdc-button--dense mdc-button--outlined\" href=\"{{ url('forgot') }}\">
  335.                                     <i class=\"c-button__icon mdc-button__icon material-icons\">vpn_key</i>
  336.                                     <span class=\"c-button__label mdc-button__label\">{{ 'パスワードの再発行'|trans }}</span>
  337.                                 </a>
  338.                             </div>
  339.                         </div>
  340.                         <div class=\"c-form__actions\">
  341.                             <div class=\"c-form__actions-item\">
  342.                                 <button class=\"c-form__button c-button is-secondary c-button--unelevated mdc-button mdc-button--unelevated\" type=\"submit\">
  343.                                     <span class=\"c-button__label mdc-button__label\">{{ 'ログイン'|trans }}</span>
  344.                                 </button>
  345.                             </div>
  346.                             <div class=\"c-form__actions-item\">
  347.                                 <a class=\"c-form__button c-button is-secondary c-button--outlined mdc-button mdc-button--outlined\" href=\"{{ url('entry') }}\">
  348.                                     <span class=\"c-button__label mdc-button__label\">{{ '新規会員登録'|trans }}</span>
  349.                                 </a>
  350.                             </div>
  351.                         </div>
  352.                     </div>
  353.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  354.                 </form>
  355.             </div>
  356.         </div>
  357.     </section>
  358. {% endblock %}
  359. ""Mypage/login.twig""/home/rocroc/tsmt-store.com/public_html/app/template/ss4002/Mypage/login.twig");
  360.     }
  361. }