var/cache/dev/twig/c7/c760ce5753a3384531896e94b1b9b130.php line 39

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_4d974d4eb13b0940076a42309c319232 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.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@UmbrellaAdmin/Security/layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Security/login.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Security/login.html.twig"));
  39.         $this->parent $this->loadTemplate("@UmbrellaAdmin/Security/layout.html.twig""Security/login.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 5
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         // line 6
  55.         echo "    <title>";
  56.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.title", [], "UmbrellaAdmin"), "html"nulltrue);
  57.         echo " | ";
  58.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'6$this->source); })()), "appName", [], "method"falsefalsefalse6), "html"nulltrue);
  59.         echo "</title>
  60. ";
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.     }
  66.     // line 9
  67.     public function block_content($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  74.         // line 10
  75.         echo "    ";
  76.         $this->loadTemplate("@UmbrellaAdmin/Security/head.html.twig""Security/login.html.twig"10)->display($context);
  77.         // line 11
  78.         echo "
  79.     <div class=\"card p-3\">
  80.         <div class=\"card-body\">
  81.             <h4 class=\"card-title text-center mb-4\">";
  82.         // line 15
  83.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.sign_in", [], "UmbrellaAdmin"), "html"nulltrue);
  84.         echo "</h4>
  85.             ";
  86.         // line 17
  87.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'17$this->source); })())) {
  88.             // line 18
  89.             echo "                <div class=\"alert alert-warning text-center\">
  90.                     ";
  91.             // line 19
  92.             echo $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.'19$this->source); })()), "messageKey", [], "any"falsefalsefalse19), 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.'19$this->source); })()), "messageData", [], "any"falsefalsefalse19), "security");
  93.             echo "
  94.                 </div>
  95.             ";
  96.         }
  97.         // line 22
  98.         echo "
  99.             <form action=\"";
  100.         // line 23
  101.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_admin_login");
  102.         echo "\" method=\"post\">
  103.                 <div class=\"mb-3\">
  104.                     <label for=\"username\" class=\"form-label\">";
  105.         // line 26
  106.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.username", [], "UmbrellaAdmin"), "html"nulltrue);
  107.         echo "</label>
  108.                     <input
  109.                             class=\"form-control\"
  110.                             type=\"text\"
  111.                             id=\"username\"
  112.                             required=\"required\"
  113.                             name=\"_username\"
  114.                             placeholder=\"";
  115.         // line 33
  116.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.enter_your_username", [], "UmbrellaAdmin"), "html"nulltrue);
  117.         echo "\"
  118.                             value=\"";
  119.         // line 34
  120.         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.'34$this->source); })()), "html"nulltrue);
  121.         echo "\"
  122.                             autofocus />
  123.                 </div>
  124.                 <div class=\"mb-4\">
  125.                     <label for=\"password\" class=\"form-label\">";
  126.         // line 39
  127.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.password", [], "UmbrellaAdmin"), "html"nulltrue);
  128.         echo "</label>
  129.                     <div is=\"password-togglable\">
  130.                         <input
  131.                                 autocomplete=\"current-password\"
  132.                                 class=\"form-control\"
  133.                                 type=\"password\"
  134.                                 required=\"required\"
  135.                                 id=\"password\"
  136.                                 name=\"_password\"
  137.                                 placeholder=\"";
  138.         // line 48
  139.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.enter_your_password", [], "UmbrellaAdmin"), "html"nulltrue);
  140.         echo "\" />
  141.                     </div>
  142.                 </div>
  143.                 <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  144.         // line 52
  145.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  146.         echo "\">
  147.                 <button class=\"btn btn-primary w-100\" type=\"submit\">
  148.                     ";
  149.         // line 55
  150.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.sign_in", [], "UmbrellaAdmin"), "html"nulltrue);
  151.         echo "
  152.                 </button>
  153.             </form>
  154.         </div>
  155.     </div>
  156. ";
  157.         
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  159.         
  160.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  161.     }
  162.     public function getTemplateName()
  163.     {
  164.         return "Security/login.html.twig";
  165.     }
  166.     public function isTraitable()
  167.     {
  168.         return false;
  169.     }
  170.     public function getDebugInfo()
  171.     {
  172.         return array (  175 => 55,  169 => 52,  162 => 48,  150 => 39,  142 => 34,  138 => 33,  128 => 26,  122 => 23,  119 => 22,  113 => 19,  110 => 18,  108 => 17,  103 => 15,  97 => 11,  94 => 10,  84 => 9,  69 => 6,  59 => 5,  36 => 1,);
  173.     }
  174.     public function getSourceContext()
  175.     {
  176.         return new Source("{% extends '@UmbrellaAdmin/Security/layout.html.twig' %}
  177. {% trans_default_domain 'UmbrellaAdmin' %}
  178. {% block title %}
  179.     <title>{{ 'login.title' | trans }} | {{ admin.appName() }}</title>
  180. {% endblock %}
  181. {% block content %}
  182.     {% include '@UmbrellaAdmin/Security/head.html.twig' %}
  183.     <div class=\"card p-3\">
  184.         <div class=\"card-body\">
  185.             <h4 class=\"card-title text-center mb-4\">{{ 'action.sign_in' | trans }}</h4>
  186.             {% if error %}
  187.                 <div class=\"alert alert-warning text-center\">
  188.                     {{ error.messageKey|trans(error.messageData, 'security') | raw }}
  189.                 </div>
  190.             {% endif %}
  191.             <form action=\"{{ path('app_admin_login') }}\" method=\"post\">
  192.                 <div class=\"mb-3\">
  193.                     <label for=\"username\" class=\"form-label\">{{ 'label.username' | trans }}</label>
  194.                     <input
  195.                             class=\"form-control\"
  196.                             type=\"text\"
  197.                             id=\"username\"
  198.                             required=\"required\"
  199.                             name=\"_username\"
  200.                             placeholder=\"{{ 'label.enter_your_username' | trans }}\"
  201.                             value=\"{{ last_username }}\"
  202.                             autofocus />
  203.                 </div>
  204.                 <div class=\"mb-4\">
  205.                     <label for=\"password\" class=\"form-label\">{{ 'label.password' | trans }}</label>
  206.                     <div is=\"password-togglable\">
  207.                         <input
  208.                                 autocomplete=\"current-password\"
  209.                                 class=\"form-control\"
  210.                                 type=\"password\"
  211.                                 required=\"required\"
  212.                                 id=\"password\"
  213.                                 name=\"_password\"
  214.                                 placeholder=\"{{ 'label.enter_your_password' | trans }}\" />
  215.                     </div>
  216.                 </div>
  217.                 <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  218.                 <button class=\"btn btn-primary w-100\" type=\"submit\">
  219.                     {{ 'action.sign_in' | trans }}
  220.                 </button>
  221.             </form>
  222.         </div>
  223.     </div>
  224. {% endblock %}
  225. ""Security/login.html.twig""/var/www/nfc/templates/Security/login.html.twig");
  226.     }
  227. }