var/cache/dev/twig/81/81932e05bea70b1ec0d46d7a2265661f.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_5b9971dfd8f21171a8ff81d0e33b057e 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.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 9
  30.         return "baselogin.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("baselogin.html.twig""security/login.html.twig"9);
  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 11
  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.         echo "Log in!";
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 13
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 14
  69.         echo "
  70. <body class=\"app flex-row align-items-center\">
  71.   <div class=\"container\">
  72.     <div class=\"row justify-content-center\">
  73.       <div class=\"col-md-8\">
  74.         <div class=\"card-group mb-0\">
  75.           <div class=\"card p-4\">
  76.             <div class=\"card-body\">
  77.               <form method=\"post\">
  78.               ";
  79.         // line 24
  80.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'24$this->source); })())) {
  81.             // line 25
  82.             echo "                <div class=\"alert alert-danger\">";
  83.             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.'25$this->source); })()), "messageKey", [], "any"falsefalsefalse25), 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.'25$this->source); })()), "messageData", [], "any"falsefalsefalse25), "security"), "html"nulltrue);
  84.             echo "</div>
  85.               ";
  86.         }
  87.         // line 27
  88.         echo "
  89.               ";
  90.         // line 28
  91.         if (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.'28$this->source); })()), "user", [], "any"falsefalsefalse28)) {
  92.             // line 29
  93.             echo "                <div class=\"mb-3\">
  94.                     Prijavljeni ste kot ";
  95.             // line 30
  96.             echo twig_escape_filter($this->envtwig_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); })()), "user", [], "any"falsefalsefalse30), "username", [], "any"falsefalsefalse30), "html"nulltrue);
  97.             echo ", <a href=\"";
  98.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  99.             echo "\">Odjava</a>
  100.                 </div>
  101.               ";
  102.         }
  103.         // line 33
  104.         echo "              <h1>Prijava</h1>
  105.               <p class=\"text-muted\">Prijavite se v vaš račun</p>
  106.               <div class=\"input-group mb-3\">
  107.                 <span class=\"input-group-addon\"><i class=\"icon-user\"></i></span>
  108.                 <input type=\"text\" value=\"";
  109.         // line 37
  110.         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.'37$this->source); })()), "html"nulltrue);
  111.         echo "\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
  112.               </div>
  113.               <div class=\"input-group mb-4\">
  114.                 <span class=\"input-group-addon\"><i class=\"icon-lock\"></i></span>
  115.                 <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" required>
  116.                 <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  117.         // line 42
  118.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  119.         echo "\">
  120.               </div>
  121.               <div class=\"row\">
  122.                 <div class=\"col-6\">
  123.                   <button class=\"btn btn-primary px-4\" type=\"submit\">Prijava</button>
  124.                 </div>
  125.               </div>
  126.               <BR>
  127.               </form>
  128.             </div>
  129.           </div>
  130.           <div class=\"card text-white bg-primary py-5 d-md-down-none\" style=\"width:44%\">
  131.             <div class=\"card-body text-center\">
  132.               <div>
  133.                 <img src=\"http://mamo.cloovis.si/admin/img/dancer_small.png\" style=\"background-color:#20a8d8;\" alt=\"Italian Trulli\">
  134.               </div>
  135.             </div>
  136.           </div>
  137.         </div>
  138.       </div>
  139.     </div>
  140.   </div>
  141.   </body>
  142. ";
  143.         
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145.         
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147.     }
  148.     public function getTemplateName()
  149.     {
  150.         return "security/login.html.twig";
  151.     }
  152.     public function isTraitable()
  153.     {
  154.         return false;
  155.     }
  156.     public function getDebugInfo()
  157.     {
  158.         return array (  138 => 42,  130 => 37,  124 => 33,  116 => 30,  113 => 29,  111 => 28,  108 => 27,  102 => 25,  100 => 24,  88 => 14,  78 => 13,  59 => 11,  36 => 9,);
  159.     }
  160.     public function getSourceContext()
  161.     {
  162.         return new Source("{# 
  163. ---------------------------------------------------
  164. v0.0001
  165. 9.6.2020 (Maa)
  166. - prva verzija 
  167. --------------------------------------------------
  168. #}
  169. {% extends 'baselogin.html.twig' %}
  170. {% block title %}Log in!{% endblock %}
  171. {% block body %}
  172. <body class=\"app flex-row align-items-center\">
  173.   <div class=\"container\">
  174.     <div class=\"row justify-content-center\">
  175.       <div class=\"col-md-8\">
  176.         <div class=\"card-group mb-0\">
  177.           <div class=\"card p-4\">
  178.             <div class=\"card-body\">
  179.               <form method=\"post\">
  180.               {% if error %}
  181.                 <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  182.               {% endif %}
  183.               {% if app.user %}
  184.                 <div class=\"mb-3\">
  185.                     Prijavljeni ste kot {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Odjava</a>
  186.                 </div>
  187.               {% endif %}
  188.               <h1>Prijava</h1>
  189.               <p class=\"text-muted\">Prijavite se v vaš račun</p>
  190.               <div class=\"input-group mb-3\">
  191.                 <span class=\"input-group-addon\"><i class=\"icon-user\"></i></span>
  192.                 <input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
  193.               </div>
  194.               <div class=\"input-group mb-4\">
  195.                 <span class=\"input-group-addon\"><i class=\"icon-lock\"></i></span>
  196.                 <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" required>
  197.                 <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  198.               </div>
  199.               <div class=\"row\">
  200.                 <div class=\"col-6\">
  201.                   <button class=\"btn btn-primary px-4\" type=\"submit\">Prijava</button>
  202.                 </div>
  203.               </div>
  204.               <BR>
  205.               </form>
  206.             </div>
  207.           </div>
  208.           <div class=\"card text-white bg-primary py-5 d-md-down-none\" style=\"width:44%\">
  209.             <div class=\"card-body text-center\">
  210.               <div>
  211.                 <img src=\"http://mamo.cloovis.si/admin/img/dancer_small.png\" style=\"background-color:#20a8d8;\" alt=\"Italian Trulli\">
  212.               </div>
  213.             </div>
  214.           </div>
  215.         </div>
  216.       </div>
  217.     </div>
  218.   </div>
  219.   </body>
  220. {% endblock %}
  221. ""security/login.html.twig""/var/www/nota/templates/security/login.html.twig");
  222.     }
  223. }