var/cache/dev/twig/64/649177e495594936e18e0d12d3340f9c4c4e66791236d4a51a7e6742bb9334dc.php line 48

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. /* KunstmaanAdminBundle:Security:login.html.twig */
  14. class __TwigTemplate_56375ff7d8ea216d766b33f54ef9ac9cd2a23ad7f0ea06d3a47a1c17f08faf58 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.             'fos_user_content' => [$this'block_fos_user_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "@FOSUser/layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""KunstmaanAdminBundle:Security:login.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""KunstmaanAdminBundle:Security:login.html.twig"));
  38.         $this->parent $this->loadTemplate("@FOSUser/layout.html.twig""KunstmaanAdminBundle:Security:login.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 5
  46.     public function block_fos_user_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_content"));
  53.         // line 6
  54.         echo "    <form id=\"app__login__form\" action=\"";
  55.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_check");
  56.         echo "\" method=\"post\">
  57.         ";
  58.         // line 7
  59.         if ($this->extensions['Kunstmaan\AdminBundle\Twig\GoogleSignInTwigExtension']->isGoogleSignInEnabled()) {
  60.             // line 8
  61.             echo "        <input id=\"google_id_token\" data-url=\"";
  62.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("KunstmaanAdminBundle_oauth_signin");
  63.             echo "\" data-clientid=\"";
  64.             echo twig_escape_filter($this->env$this->extensions['Kunstmaan\AdminBundle\Twig\GoogleSignInTwigExtension']->getClientId(), "html"nulltrue);
  65.             echo "\" type=\"hidden\" name=\"_google_id_token\">
  66.         ";
  67.         }
  68.         // line 10
  69.         echo "        ";
  70.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'10$this->source); })())) {
  71.             // line 11
  72.             echo "            <div class=\"alert alert-danger\">
  73.                 ";
  74.             // line 12
  75.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("kuma_admin.login.invalid_credentials", [], "messages"), "html"nulltrue);
  76.             echo "
  77.                 <button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"alert\">
  78.                     <i class=\"fa fa-times\"></i>
  79.                 </button>
  80.             </div>
  81.         ";
  82.         }
  83.         // line 18
  84.         echo "
  85.         <div class=\"form-group form-group--icon-in-control\">
  86.             <label for=\"username\" class=\"label--lighter\">
  87.                 ";
  88.         // line 21
  89.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.username", [], "FOSUserBundle"), "html"nulltrue);
  90.         echo "
  91.             </label>
  92.             <input class=\"form-control form-group--icon-in-control__form-control\" id=\"username\" type=\"text\" name=\"_username\" value=\"";
  93.         // line 23
  94.         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.'23$this->source); })()), "html"nulltrue);
  95.         echo "\" placeholder=\"";
  96.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.username", [], "FOSUserBundle"), "html"nulltrue);
  97.         echo "\" autofocus>
  98.             <i class=\"fa fa-user form-group--icon-in-control__icon\"></i>
  99.         </div>
  100.         <div class=\"form-group form-group--icon-in-control\">
  101.             <label for=\"password\" class=\"label--lighter\">
  102.                 ";
  103.         // line 29
  104.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.password", [], "FOSUserBundle"), "html"nulltrue);
  105.         echo "
  106.             </label>
  107.             <input class=\"form-control form-group--icon-in-control__form-control\" id=\"password\" type=\"password\" name=\"_password\" value=\"\" placeholder=\"";
  108.         // line 31
  109.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.password", [], "FOSUserBundle"), "html"nulltrue);
  110.         echo "\">
  111.             <i class=\"fa fa-key form-group--icon-in-control__icon\"></i>
  112.         </div>
  113.         <div class=\"form-group login__form__remember-me\">
  114.             <label class=\"checkbox login__form__remember-me__check\">
  115.                 <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\">
  116.                 ";
  117.         // line 38
  118.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.remember_me", [], "FOSUserBundle"), "html"nulltrue);
  119.         echo "
  120.             </label>
  121.         </div>
  122.         <button type=\"submit\" id=\"_submit\" name=\"_submit\" class=\"btn btn-brand btn-block btn--raise-on-hover\">
  123.             ";
  124.         // line 43
  125.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.submit", [], "FOSUserBundle"), "html"nulltrue);
  126.         echo "
  127.         </button>
  128.     </form>
  129.     ";
  130.         // line 47
  131.         if ($this->extensions['Kunstmaan\AdminBundle\Twig\GoogleSignInTwigExtension']->isGoogleSignInEnabled()) {
  132.             // line 48
  133.             echo "    <a href=\"#\" id=\"app_oauth_signin\">
  134.         <img src=\"https://developers.google.com/identity/images/btn_google_signin_dark_normal_web.png\" alt=\"Google Sign in\">
  135.     </a>
  136.     ";
  137.         }
  138.         // line 52
  139.         echo "
  140. ";
  141.         
  142.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  143.         
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  145.     }
  146.     public function getTemplateName()
  147.     {
  148.         return "KunstmaanAdminBundle:Security:login.html.twig";
  149.     }
  150.     public function isTraitable()
  151.     {
  152.         return false;
  153.     }
  154.     public function getDebugInfo()
  155.     {
  156.         return array (  157 => 52,  151 => 48,  149 => 47,  142 => 43,  134 => 38,  124 => 31,  119 => 29,  108 => 23,  103 => 21,  98 => 18,  89 => 12,  86 => 11,  83 => 10,  75 => 8,  73 => 7,  68 => 6,  58 => 5,  35 => 1,);
  157.     }
  158.     public function getSourceContext()
  159.     {
  160.         return new Source("{% extends \"@FOSUser/layout.html.twig\" %}
  161. {% trans_default_domain 'FOSUserBundle' %}
  162. {% block fos_user_content %}
  163.     <form id=\"app__login__form\" action=\"{{ path(\"fos_user_security_check\") }}\" method=\"post\">
  164.         {% if google_signin_enabled() %}
  165.         <input id=\"google_id_token\" data-url=\"{{ path('KunstmaanAdminBundle_oauth_signin') }}\" data-clientid=\"{{ google_signin_client_id() }}\" type=\"hidden\" name=\"_google_id_token\">
  166.         {% endif %}
  167.         {% if error %}
  168.             <div class=\"alert alert-danger\">
  169.                 {{ 'kuma_admin.login.invalid_credentials'|trans({}, 'messages') }}
  170.                 <button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"alert\">
  171.                     <i class=\"fa fa-times\"></i>
  172.                 </button>
  173.             </div>
  174.         {% endif %}
  175.         <div class=\"form-group form-group--icon-in-control\">
  176.             <label for=\"username\" class=\"label--lighter\">
  177.                 {{ 'security.login.username'|trans }}
  178.             </label>
  179.             <input class=\"form-control form-group--icon-in-control__form-control\" id=\"username\" type=\"text\" name=\"_username\" value=\"{{ last_username }}\" placeholder=\"{{ 'security.login.username'|trans }}\" autofocus>
  180.             <i class=\"fa fa-user form-group--icon-in-control__icon\"></i>
  181.         </div>
  182.         <div class=\"form-group form-group--icon-in-control\">
  183.             <label for=\"password\" class=\"label--lighter\">
  184.                 {{ 'security.login.password'|trans }}
  185.             </label>
  186.             <input class=\"form-control form-group--icon-in-control__form-control\" id=\"password\" type=\"password\" name=\"_password\" value=\"\" placeholder=\"{{ 'security.login.password'|trans }}\">
  187.             <i class=\"fa fa-key form-group--icon-in-control__icon\"></i>
  188.         </div>
  189.         <div class=\"form-group login__form__remember-me\">
  190.             <label class=\"checkbox login__form__remember-me__check\">
  191.                 <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\">
  192.                 {{ 'security.login.remember_me'|trans }}
  193.             </label>
  194.         </div>
  195.         <button type=\"submit\" id=\"_submit\" name=\"_submit\" class=\"btn btn-brand btn-block btn--raise-on-hover\">
  196.             {{ 'security.login.submit'|trans }}
  197.         </button>
  198.     </form>
  199.     {% if google_signin_enabled() %}
  200.     <a href=\"#\" id=\"app_oauth_signin\">
  201.         <img src=\"https://developers.google.com/identity/images/btn_google_signin_dark_normal_web.png\" alt=\"Google Sign in\">
  202.     </a>
  203.     {% endif %}
  204. {% endblock fos_user_content %}
  205. ""KunstmaanAdminBundle:Security:login.html.twig""/var/www/gcs/html/dev/vendor/kunstmaan/admin-bundle/Resources/views/Security/login.html.twig");
  206.     }
  207. }