var/cache/dev/twig/29/297b73fe494e07db1d3e1fe20d5cbd81c21ebcebd4cfc42368ff3acc47ab5149.php line 51

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. /* security/login.html.twig */
  14. class __TwigTemplate_023b1f7e701500d54804120ec43e2ee78311838869f6789f977071d9a234e22a extends 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.             'title' => [$this'block_title'],
  24.             'card_title' => [$this'block_card_title'],
  25.             'content' => [$this'block_content'],
  26.             'card_content' => [$this'block_card_content'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "main_card.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  41.         $this->parent $this->loadTemplate("main_card.html.twig""security/login.html.twig"1);
  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 3
  49.     public function block_title($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""title"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.title", [], "messages");
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 5
  63.     public function block_card_title($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""card_title"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""card_title"));
  70.         echo "<h5>
  71.     <i class=\"fa fa-sign-in-alt fa-fw\" aria-hidden=\"true\"></i>
  72.     ";
  73.         // line 7
  74.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.card_title", [], "messages");
  75.         // line 8
  76.         echo "    </h5>
  77. ";
  78.         
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  80.         
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  82.     }
  83.     // line 11
  84.     public function block_content($context, array $blocks = [])
  85.     {
  86.         $macros $this->macros;
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  91.         // line 12
  92.         echo "
  93.     ";
  94.         // line 13
  95.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'13$this->source); })())) {
  96.             // line 14
  97.             echo "        <div class=\"alert alert-danger\" role=\"alert\">
  98.             <strong>";
  99.             // line 15
  100.             echo 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.'15$this->source); })()), "messageKey", [], "any"falsefalsefalse15), 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.'15$this->source); })()), "messageData", [], "any"falsefalsefalse15), "security"), "html"nulltrue);
  101.             echo "</strong>
  102.         </div>
  103.     ";
  104.         }
  105.         // line 18
  106.         echo "
  107.     ";
  108.         // line 19
  109.         $this->displayParentBlock("content"$context$blocks);
  110.         echo "
  111. ";
  112.         
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  114.         
  115.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  116.     }
  117.     // line 22
  118.     public function block_card_content($context, array $blocks = [])
  119.     {
  120.         $macros $this->macros;
  121.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  122.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""card_content"));
  123.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  124.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""card_content"));
  125.         // line 23
  126.         echo "    <form action=\"";
  127.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  128.         echo "\" method=\"post\" data-no-ajax class=\"form-horizontal\">
  129.         <input type=\"hidden\" name=\"_csrf_token\"
  130.                value=\"";
  131.         // line 26
  132.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  133.         echo "\">
  134.         <input type=\"hidden\" name=\"_target_path\" value=\"";
  135.         // line 28
  136.         echo twig_escape_filter($this->envtwig_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.'28$this->source); })()), "request", [], "any"falsefalsefalse28), "query", [], "any"falsefalsefalse28), "get", [=> "_target_path"], "method"falsefalsefalse28), "html"nulltrue);
  137.         echo "\" />
  138.         <div class=\"form-group row\">
  139.             <label class=\"col-form-label col-md-3 col-lg-2\">";
  140.         // line 31
  141.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.username.label", [], "messages");
  142.         echo "</label>
  143.             <div class=\"col-md-9 col-lg-10\">
  144.                 <input type=\"text\" class=\"form-control\"  name=\"_username\" value=\"";
  145.         // line 33
  146.         echo twig_escape_filter($this->env, (isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'33$this->source); })()), "html"nulltrue);
  147.         echo "\"
  148.                        placeholder=\"";
  149.         // line 34
  150.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.username.placeholder", [], "messages");
  151.         echo "\"  autocomplete=\"username\">
  152.             </div>
  153.         </div>
  154.         <div class=\"form-group row\">
  155.             <label class=\"col-form-label col-md-3 col-lg-2\">";
  156.         // line 38
  157.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.password.label", [], "messages");
  158.         echo "</label>
  159.             <div class=\"col-md-9 col-lg-10\">
  160.                 <input type=\"password\" class=\"form-control\" placeholder=\"";
  161.         // line 40
  162.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.password.placeholder", [], "messages");
  163.         echo "\" name=\"_password\"
  164.                        autocomplete=\"current-password\">
  165.             </div>
  166.         </div>
  167.         <div class=\"form-group row\">
  168.             <div class=\"col-md-9 offset-md-3 col-lg-10 offset-lg-2\">
  169.                 <div class=\"custom-control custom-checkbox custom-control-inline\">
  170.                     <input class=\"custom-control-input\" name=\"_remember_me\" id=\"remember_me\" type=\"checkbox\">
  171.                     <label class=\"custom-control-label\" for=\"remember_me\">
  172.                         ";
  173.         // line 50
  174.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.rememberme", [], "messages");
  175.         // line 51
  176.         echo "                    </label>
  177.                 </div>
  178.             </div>
  179.         </div>
  180.         <div class=\"form-group row  mt-3\">
  181.             <div class=\"col-md-9 offset-md-3 col-lg-10 offset-lg-2\">
  182.                 <button type=\"submit\" class=\"btn btn-primary\">";
  183.         // line 58
  184.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.btn", [], "messages");
  185.         echo "</button>
  186.             </div>
  187.         </div>
  188.     </form>
  189.     ";
  190.         // line 63
  191.         if ((isset($context["allow_email_pw_reset"]) || array_key_exists("allow_email_pw_reset"$context) ? $context["allow_email_pw_reset"] : (function () { throw new RuntimeError('Variable "allow_email_pw_reset" does not exist.'63$this->source); })())) {
  192.             // line 64
  193.             echo "        <a class=\"offset-sm-2\" href=\"";
  194.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("pw_reset_request");
  195.             echo "\">";
  196.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pw_reset.password_forget", [], "messages");
  197.             echo "</a>
  198.     ";
  199.         }
  200.         
  201.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  202.         
  203.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  204.     }
  205.     public function getTemplateName()
  206.     {
  207.         return "security/login.html.twig";
  208.     }
  209.     public function isTraitable()
  210.     {
  211.         return false;
  212.     }
  213.     public function getDebugInfo()
  214.     {
  215.         return array (  228 => 64,  226 => 63,  218 => 58,  209 => 51,  207 => 50,  194 => 40,  189 => 38,  182 => 34,  178 => 33,  173 => 31,  167 => 28,  162 => 26,  155 => 23,  145 => 22,  133 => 19,  130 => 18,  124 => 15,  121 => 14,  119 => 13,  116 => 12,  106 => 11,  95 => 8,  93 => 7,  80 => 5,  61 => 3,  38 => 1,);
  216.     }
  217.     public function getSourceContext()
  218.     {
  219.         return new Source("{% extends \"main_card.html.twig\" %}
  220. {% block title %}{% trans %}login.title{% endtrans %}{% endblock %}
  221. {% block card_title %}<h5>
  222.     <i class=\"fa fa-sign-in-alt fa-fw\" aria-hidden=\"true\"></i>
  223.     {% trans %}login.card_title{% endtrans %}
  224.     </h5>
  225. {% endblock %}
  226. {% block  content %}
  227.     {% if error %}
  228.         <div class=\"alert alert-danger\" role=\"alert\">
  229.             <strong>{{ error.messageKey|trans(error.messageData, 'security') }}</strong>
  230.         </div>
  231.     {% endif %}
  232.     {{ parent() }}
  233. {% endblock %}
  234. {% block card_content %}
  235.     <form action=\"{{ path('login') }}\" method=\"post\" data-no-ajax class=\"form-horizontal\">
  236.         <input type=\"hidden\" name=\"_csrf_token\"
  237.                value=\"{{ csrf_token('authenticate') }}\">
  238.         <input type=\"hidden\" name=\"_target_path\" value=\"{{ app.request.query.get('_target_path') }}\" />
  239.         <div class=\"form-group row\">
  240.             <label class=\"col-form-label col-md-3 col-lg-2\">{% trans %}login.username.label{% endtrans %}</label>
  241.             <div class=\"col-md-9 col-lg-10\">
  242.                 <input type=\"text\" class=\"form-control\"  name=\"_username\" value=\"{{ last_username }}\"
  243.                        placeholder=\"{% trans %}login.username.placeholder{% endtrans %}\"  autocomplete=\"username\">
  244.             </div>
  245.         </div>
  246.         <div class=\"form-group row\">
  247.             <label class=\"col-form-label col-md-3 col-lg-2\">{% trans %}login.password.label{% endtrans %}</label>
  248.             <div class=\"col-md-9 col-lg-10\">
  249.                 <input type=\"password\" class=\"form-control\" placeholder=\"{% trans %}login.password.placeholder{% endtrans %}\" name=\"_password\"
  250.                        autocomplete=\"current-password\">
  251.             </div>
  252.         </div>
  253.         <div class=\"form-group row\">
  254.             <div class=\"col-md-9 offset-md-3 col-lg-10 offset-lg-2\">
  255.                 <div class=\"custom-control custom-checkbox custom-control-inline\">
  256.                     <input class=\"custom-control-input\" name=\"_remember_me\" id=\"remember_me\" type=\"checkbox\">
  257.                     <label class=\"custom-control-label\" for=\"remember_me\">
  258.                         {% trans %}login.rememberme{% endtrans %}
  259.                     </label>
  260.                 </div>
  261.             </div>
  262.         </div>
  263.         <div class=\"form-group row  mt-3\">
  264.             <div class=\"col-md-9 offset-md-3 col-lg-10 offset-lg-2\">
  265.                 <button type=\"submit\" class=\"btn btn-primary\">{% trans %}login.btn{% endtrans %}</button>
  266.             </div>
  267.         </div>
  268.     </form>
  269.     {% if allow_email_pw_reset %}
  270.         <a class=\"offset-sm-2\" href=\"{{ url('pw_reset_request') }}\">{% trans %}pw_reset.password_forget{% endtrans %}</a>
  271.     {% endif %}
  272. {% endblock %}""security/login.html.twig""/var/www/part-db/templates/security/login.html.twig");
  273.     }
  274. }