var/cache/dev/twig/c2/c22cfb35ca04a53fa8ef8ea903654da98ff75d9c5c7c5517bda77a6058f6dd7a.php line 137

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. /* @SonataUser/Admin/Security/login.html.twig */
  14. class __TwigTemplate_766955d0b9125475c1a813240c3dce84655545a96e37ecb49398dd2ffad3646c extends \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.             'sonata_nav' => [$this'block_sonata_nav'],
  24.             'logo' => [$this'block_logo'],
  25.             'sonata_left_side' => [$this'block_sonata_left_side'],
  26.             'body_attributes' => [$this'block_body_attributes'],
  27.             'sonata_wrapper' => [$this'block_sonata_wrapper'],
  28.             'login_box_header' => [$this'block_login_box_header'],
  29.             'sonata_user_login_form' => [$this'block_sonata_user_login_form'],
  30.             'sonata_user_login_error' => [$this'block_sonata_user_login_error'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context)
  34.     {
  35.         // line 12
  36.         return $this->loadTemplate((isset($context["base_template"]) || array_key_exists("base_template"$context) ? $context["base_template"] : (function () { throw new RuntimeError('Variable "base_template" does not exist.'12$this->source); })()), "@SonataUser/Admin/Security/login.html.twig"12);
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = [])
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataUser/Admin/Security/login.html.twig"));
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataUser/Admin/Security/login.html.twig"));
  45.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 14
  52.     public function block_sonata_nav($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_nav"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_nav"));
  59.         
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  61.         
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  63.     }
  64.     // line 17
  65.     public function block_logo($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""logo"));
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""logo"));
  72.         
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  74.         
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  76.     }
  77.     // line 20
  78.     public function block_sonata_left_side($context, array $blocks = [])
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_left_side"));
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_left_side"));
  85.         
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  87.         
  88.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  89.     }
  90.     // line 23
  91.     public function block_body_attributes($context, array $blocks = [])
  92.     {
  93.         $macros $this->macros;
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  95.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_attributes"));
  96.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_attributes"));
  98.         echo "class=\"sonata-bc login-page\"";
  99.         
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  101.         
  102.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  103.     }
  104.     // line 25
  105.     public function block_sonata_wrapper($context, array $blocks = [])
  106.     {
  107.         $macros $this->macros;
  108.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_wrapper"));
  110.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_wrapper"));
  112.         // line 26
  113.         echo "
  114.     <div class=\"login-box\">
  115.         ";
  116.         // line 28
  117.         $this->displayBlock('login_box_header'$context$blocks);
  118.         // line 42
  119.         echo "        <div class=\"login-box-body\">
  120.             ";
  121.         // line 43
  122.         $this->displayBlock('sonata_user_login_form'$context$blocks);
  123.         // line 123
  124.         echo "        </div>
  125.     </div>
  126. ";
  127.         
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  129.         
  130.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  131.     }
  132.     // line 28
  133.     public function block_login_box_header($context, array $blocks = [])
  134.     {
  135.         $macros $this->macros;
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""login_box_header"));
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""login_box_header"));
  140.         // line 29
  141.         echo "            <div class=\"login-logo\">
  142.                 <a href=\"";
  143.         // line 30
  144.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_dashboard");
  145.         echo "\">
  146.                     ";
  147.         // line 31
  148.         if (twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'31$this->source); })()), "adminPool", [], "any"falsefalsefalse31), "getOption", [=> "title_mode"], "method"falsefalsefalse31), [=> "single_image"=> "both"])) {
  149.             // line 32
  150.             echo "                        <div>
  151.                             <img style=\"width:64px;\" src=\"";
  152.             // line 33
  153.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'33$this->source); })()), "adminPool", [], "any"falsefalsefalse33), "titlelogo", [], "any"falsefalsefalse33)), "html"nulltrue);
  154.             echo "\" alt=\"";
  155.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'33$this->source); })()), "adminPool", [], "any"falsefalsefalse33), "title", [], "any"falsefalsefalse33), "html"nulltrue);
  156.             echo "\">
  157.                         </div>
  158.                     ";
  159.         }
  160.         // line 36
  161.         echo "                    ";
  162.         if (twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'36$this->source); })()), "adminPool", [], "any"falsefalsefalse36), "getOption", [=> "title_mode"], "method"falsefalsefalse36), [=> "single_text"=> "both"])) {
  163.             // line 37
  164.             echo "                        <span>";
  165.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'37$this->source); })()), "adminPool", [], "any"falsefalsefalse37), "title", [], "any"falsefalsefalse37), "html"nulltrue);
  166.             echo "</span>
  167.                     ";
  168.         }
  169.         // line 39
  170.         echo "                </a>
  171.             </div>
  172.         ";
  173.         
  174.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  175.         
  176.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  177.     }
  178.     // line 43
  179.     public function block_sonata_user_login_form($context, array $blocks = [])
  180.     {
  181.         $macros $this->macros;
  182.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_user_login_form"));
  184.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  185.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_user_login_form"));
  186.         // line 44
  187.         echo "                ";
  188.         $this->displayBlock('sonata_user_login_error'$context$blocks);
  189.         // line 51
  190.         echo "                <p class=\"login-box-msg\">";
  191.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("title_user_authentication", [], "SonataUserBundle"), "html"nulltrue);
  192.         echo "</p>
  193.                 ";
  194.         // line 52
  195.         if (array_key_exists("qrCodeUrl"$context)) {
  196.             // line 53
  197.             echo "                    <div class=\"row\">
  198.                         <div class=\"col-xs-12\">
  199.                             <p align=\"middle\"> <img src=\"";
  200.             // line 55
  201.             echo twig_escape_filter($this->env, (isset($context["qrCodeUrl"]) || array_key_exists("qrCodeUrl"$context) ? $context["qrCodeUrl"] : (function () { throw new RuntimeError('Variable "qrCodeUrl" does not exist.'55$this->source); })()), "html"nulltrue);
  202.             echo "\" alt=\"QR-code\"></p>
  203.                             <p align=\"middle\">";
  204.             // line 56
  205.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("qr_code_secret", [], "SonataUserBundle"), "html"nulltrue);
  206.             echo ": ";
  207.             echo twig_escape_filter($this->env, (isset($context["qrSecret"]) || array_key_exists("qrSecret"$context) ? $context["qrSecret"] : (function () { throw new RuntimeError('Variable "qrSecret" does not exist.'56$this->source); })()), "html"nulltrue);
  208.             echo "</p>
  209.                             <p align=\"middle\">
  210.                                 <a href=\"";
  211.             // line 58
  212.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_dashboard");
  213.             echo "\">";
  214.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("qr_go_next", [], "SonataUserBundle"), "html"nulltrue);
  215.             echo "</a>
  216.                             </p>
  217.                         </div>
  218.                     </div>
  219.                 ";
  220.         } elseif (((        // line 62
  221. array_key_exists("two_step_submit"$context)) ? (_twig_default_filter((isset($context["two_step_submit"]) || array_key_exists("two_step_submit"$context) ? $context["two_step_submit"] : (function () { throw new RuntimeError('Variable "two_step_submit" does not exist.'62$this->source); })()), false)) : (false))) {
  222.             // line 63
  223.             echo "                    <form method=\"POST\" role=\"form\">
  224.                         ";
  225.             // line 64
  226.             if (((isset($context["state"]) || array_key_exists("state"$context) ? $context["state"] : (function () { throw new RuntimeError('Variable "state" does not exist.'64$this->source); })()) == "error")) {
  227.                 // line 65
  228.                 echo "                            <div class=\"alert alert-error\">";
  229.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label_two_step_code_error", [], "SonataUserBundle"), "html"nulltrue);
  230.                 echo "</div>
  231.                         ";
  232.             }
  233.             // line 67
  234.             echo "                        <label for=\"_code\">";
  235.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label_two_step_code", [], "SonataUserBundle"), "html"nulltrue);
  236.             echo "</label>
  237.                         <div class=\"input-group input-group-lg\">
  238.                             <input type=\"text\" class=\"form-control\" id=\"_code\" name=\"_code\" autocomplete='off' />
  239.                             <span class=\"input-group-btn\">
  240.                                 <input class=\"btn btn-primary\"
  241.                                     id=\"_submit\"
  242.                                     name=\"_submit\"
  243.                                     type=\"submit\"
  244.                                     value=\"";
  245.             // line 75
  246.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.submit", [], "FOSUserBundle"), "html"nulltrue);
  247.             echo "\" />
  248.                             </span>
  249.                         </div>
  250.                         <span class=\"help-block sonata-ba-field-help\">";
  251.             // line 78
  252.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("message_two_step_code_help", [], "SonataUserBundle"), "html"nulltrue);
  253.             echo "</span>
  254.                     </form>
  255.                 ";
  256.         } else {
  257.             // line 81
  258.             echo "                    <form action=\"";
  259.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_user_admin_security_check");
  260.             echo "\" method=\"post\" role=\"form\">
  261.                         <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  262.             // line 82
  263.             echo twig_escape_filter($this->env, (isset($context["csrf_token"]) || array_key_exists("csrf_token"$context) ? $context["csrf_token"] : (function () { throw new RuntimeError('Variable "csrf_token" does not exist.'82$this->source); })()), "html"nulltrue);
  264.             echo "\"/>
  265.                         <div class=\"form-group has-feedback\">
  266.                             <input class=\"form-control\"
  267.                                 id=\"username\"
  268.                                 name=\"_username\"
  269.                                 placeholder=\"";
  270.             // line 88
  271.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.username", [], "SonataUserBundle"), "html"nulltrue);
  272.             echo "\"
  273.                                 required=\"required\"
  274.                                 type=\"text\"
  275.                                 value=\"";
  276.             // line 91
  277.             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.'91$this->source); })()), "html"nulltrue);
  278.             echo "\"/>
  279.                             <span class=\"glyphicon glyphicon-user form-control-feedback\"></span>
  280.                         </div>
  281.                         <div class=\"form-group has-feedback\">
  282.                             <input class=\"form-control\"
  283.                                 id=\"password\"
  284.                                 name=\"_password\"
  285.                                 placeholder=\"";
  286.             // line 99
  287.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.password", [], "SonataUserBundle"), "html"nulltrue);
  288.             echo "\"
  289.                                 required=\"required\"
  290.                                 type=\"password\"/>
  291.                             <span class=\"glyphicon glyphicon-lock form-control-feedback\"></span>
  292.                         </div>
  293.                         <div class=\"row\">
  294.                             <div class=\"col-xs-8\">
  295.                                 <div class=\"checkbox\">
  296.                                     <label>
  297.                                         <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\"/>
  298.                                         ";
  299.             // line 110
  300.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.remember_me", [], "FOSUserBundle"), "html"nulltrue);
  301.             echo "
  302.                                     </label>
  303.                                 </div>
  304.                             </div>
  305.                             <div class=\"col-xs-4\">
  306.                                 <button type=\"submit\" class=\"btn btn-primary btn-block btn-flat\">";
  307.             // line 115
  308.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.submit", [], "FOSUserBundle"), "html"nulltrue);
  309.             echo "</button>
  310.                             </div>
  311.                         </div>
  312.                     </form>
  313.                     <a href=\"";
  314.             // line 120
  315.             echo twig_escape_filter($this->env, (isset($context["reset_route"]) || array_key_exists("reset_route"$context) ? $context["reset_route"] : (function () { throw new RuntimeError('Variable "reset_route" does not exist.'120$this->source); })()), "html"nulltrue);
  316.             echo "\">";
  317.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("forgotten_password", [], "SonataUserBundle"), "html"nulltrue);
  318.             echo "</a>
  319.                 ";
  320.         }
  321.         // line 122
  322.         echo "            ";
  323.         
  324.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  325.         
  326.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  327.     }
  328.     // line 44
  329.     public function block_sonata_user_login_error($context, array $blocks = [])
  330.     {
  331.         $macros $this->macros;
  332.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  333.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_user_login_error"));
  334.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  335.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_user_login_error"));
  336.         // line 45
  337.         echo "                    ";
  338.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'45$this->source); })())) {
  339.             // line 46
  340.             echo "                        <div class=\"alert alert-danger alert-error\">
  341.                             ";
  342.             // line 47
  343.             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.'47$this->source); })()), "messageKey", [], "any"falsefalsefalse47), 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.'47$this->source); })()), "messageData", [], "any"falsefalsefalse47), "security"), "html"nulltrue);
  344.             echo "
  345.                         </div>
  346.                     ";
  347.         }
  348.         // line 50
  349.         echo "                ";
  350.         
  351.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  352.         
  353.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  354.     }
  355.     public function getTemplateName()
  356.     {
  357.         return "@SonataUser/Admin/Security/login.html.twig";
  358.     }
  359.     public function isTraitable()
  360.     {
  361.         return false;
  362.     }
  363.     public function getDebugInfo()
  364.     {
  365.         return array (  403 => 50,  397 => 47,  394 => 46,  391 => 45,  381 => 44,  371 => 122,  364 => 120,  356 => 115,  348 => 110,  334 => 99,  323 => 91,  317 => 88,  308 => 82,  303 => 81,  297 => 78,  291 => 75,  279 => 67,  273 => 65,  271 => 64,  268 => 63,  266 => 62,  257 => 58,  250 => 56,  246 => 55,  242 => 53,  240 => 52,  235 => 51,  232 => 44,  222 => 43,  210 => 39,  204 => 37,  201 => 36,  193 => 33,  190 => 32,  188 => 31,  184 => 30,  181 => 29,  171 => 28,  158 => 123,  156 => 43,  153 => 42,  151 => 28,  147 => 26,  137 => 25,  118 => 23,  100 => 20,  82 => 17,  64 => 14,  42 => 12,);
  366.     }
  367.     public function getSourceContext()
  368.     {
  369.         return new Source("{#
  370. This file is part of the Sonata package.
  371. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  372. For the full copyright and license information, please view the LICENSE
  373. file that was distributed with this source code.
  374. #}
  375. {% extends base_template %}
  376. {% block sonata_nav %}
  377. {% endblock sonata_nav %}
  378. {% block logo %}
  379. {% endblock logo %}
  380. {% block sonata_left_side %}
  381. {% endblock sonata_left_side %}
  382. {% block body_attributes %}class=\"sonata-bc login-page\"{% endblock %}
  383. {% block sonata_wrapper %}
  384.     <div class=\"login-box\">
  385.         {% block login_box_header %}
  386.             <div class=\"login-logo\">
  387.                 <a href=\"{{ path('sonata_admin_dashboard') }}\">
  388.                     {% if sonata_admin.adminPool.getOption('title_mode') in ['single_image', 'both'] %}
  389.                         <div>
  390.                             <img style=\"width:64px;\" src=\"{{ asset(sonata_admin.adminPool.titlelogo) }}\" alt=\"{{ sonata_admin.adminPool.title }}\">
  391.                         </div>
  392.                     {% endif %}
  393.                     {% if sonata_admin.adminPool.getOption('title_mode') in ['single_text', 'both'] %}
  394.                         <span>{{ sonata_admin.adminPool.title }}</span>
  395.                     {% endif %}
  396.                 </a>
  397.             </div>
  398.         {% endblock %}
  399.         <div class=\"login-box-body\">
  400.             {% block sonata_user_login_form %}
  401.                 {% block sonata_user_login_error %}
  402.                     {% if error %}
  403.                         <div class=\"alert alert-danger alert-error\">
  404.                             {{ error.messageKey|trans(error.messageData, 'security') }}
  405.                         </div>
  406.                     {% endif %}
  407.                 {% endblock %}
  408.                 <p class=\"login-box-msg\">{{ 'title_user_authentication'|trans({}, 'SonataUserBundle') }}</p>
  409.                 {% if qrCodeUrl is defined %}
  410.                     <div class=\"row\">
  411.                         <div class=\"col-xs-12\">
  412.                             <p align=\"middle\"> <img src=\"{{ qrCodeUrl }}\" alt=\"QR-code\"></p>
  413.                             <p align=\"middle\">{{ 'qr_code_secret'|trans({}, 'SonataUserBundle') }}: {{ qrSecret }}</p>
  414.                             <p align=\"middle\">
  415.                                 <a href=\"{{ path('sonata_admin_dashboard') }}\">{{ 'qr_go_next'|trans({}, 'SonataUserBundle') }}</a>
  416.                             </p>
  417.                         </div>
  418.                     </div>
  419.                 {% elseif two_step_submit|default(false) %}
  420.                     <form method=\"POST\" role=\"form\">
  421.                         {% if state == 'error' %}
  422.                             <div class=\"alert alert-error\">{{ 'label_two_step_code_error'|trans({}, 'SonataUserBundle') }}</div>
  423.                         {% endif %}
  424.                         <label for=\"_code\">{{ 'label_two_step_code'|trans({}, 'SonataUserBundle') }}</label>
  425.                         <div class=\"input-group input-group-lg\">
  426.                             <input type=\"text\" class=\"form-control\" id=\"_code\" name=\"_code\" autocomplete='off' />
  427.                             <span class=\"input-group-btn\">
  428.                                 <input class=\"btn btn-primary\"
  429.                                     id=\"_submit\"
  430.                                     name=\"_submit\"
  431.                                     type=\"submit\"
  432.                                     value=\"{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}\" />
  433.                             </span>
  434.                         </div>
  435.                         <span class=\"help-block sonata-ba-field-help\">{{ 'message_two_step_code_help'|trans({}, 'SonataUserBundle') }}</span>
  436.                     </form>
  437.                 {% else %}
  438.                     <form action=\"{{ path(\"sonata_user_admin_security_check\") }}\" method=\"post\" role=\"form\">
  439.                         <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token }}\"/>
  440.                         <div class=\"form-group has-feedback\">
  441.                             <input class=\"form-control\"
  442.                                 id=\"username\"
  443.                                 name=\"_username\"
  444.                                 placeholder=\"{{ 'security.login.username'|trans({}, 'SonataUserBundle') }}\"
  445.                                 required=\"required\"
  446.                                 type=\"text\"
  447.                                 value=\"{{ last_username }}\"/>
  448.                             <span class=\"glyphicon glyphicon-user form-control-feedback\"></span>
  449.                         </div>
  450.                         <div class=\"form-group has-feedback\">
  451.                             <input class=\"form-control\"
  452.                                 id=\"password\"
  453.                                 name=\"_password\"
  454.                                 placeholder=\"{{ 'security.login.password'|trans({}, 'SonataUserBundle') }}\"
  455.                                 required=\"required\"
  456.                                 type=\"password\"/>
  457.                             <span class=\"glyphicon glyphicon-lock form-control-feedback\"></span>
  458.                         </div>
  459.                         <div class=\"row\">
  460.                             <div class=\"col-xs-8\">
  461.                                 <div class=\"checkbox\">
  462.                                     <label>
  463.                                         <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\"/>
  464.                                         {{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }}
  465.                                     </label>
  466.                                 </div>
  467.                             </div>
  468.                             <div class=\"col-xs-4\">
  469.                                 <button type=\"submit\" class=\"btn btn-primary btn-block btn-flat\">{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}</button>
  470.                             </div>
  471.                         </div>
  472.                     </form>
  473.                     <a href=\"{{ reset_route }}\">{{ 'forgotten_password'|trans({}, 'SonataUserBundle') }}</a>
  474.                 {% endif %}
  475.             {% endblock %}
  476.         </div>
  477.     </div>
  478. {% endblock sonata_wrapper %}
  479. ""@SonataUser/Admin/Security/login.html.twig""/var/www/smart-vet2/releases/20221224112818/vendor/sonata-project/user-bundle/src/Resources/views/Admin/Security/login.html.twig");
  480.     }
  481. }