var/cache/dev/twig/20/2018a5b8da07cad7ceab0d428cf851fd.php line 54

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* login/index.html.twig */
  16. class __TwigTemplate_009e3a0fe0d02adccf50d3c44b5f3668 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'stylesheets' => [$this'block_stylesheets'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""login/index.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""login/index.html.twig"));
  44.         $this->parent $this->load("base.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_stylesheets(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  62.         // line 4
  63.         yield "    <link rel=\"stylesheet\" type=\"text/css\" href=\"";
  64.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/app/css/login/index.css"), "html"nulltrue);
  65.         yield "\">
  66. ";
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.         yield from [];
  72.     }
  73.     // line 8
  74.     /**
  75.      * @return iterable<null|scalar|\Stringable>
  76.      */
  77.     public function block_body(array $context, array $blocks = []): iterable
  78.     {
  79.         $macros $this->macros;
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  84.         // line 9
  85.         yield "<div class=\"container-login\">
  86.     <div class=\"d-flex flex-column min-vh-100 justify-content-center col-md-4 offset-4\"><!--align-items-center-->
  87.         <div class=\"container-login-2\" style=\"\">
  88.             <div class=\"container\">
  89.                 <div class=\"pic\">
  90.                     <img src=\"";
  91.         // line 14
  92.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->fileStorage("2022/10/BLH-Logo-4-icon.png""intranet-storage"), "html"nulltrue);
  93.         yield "\" width=\"40\" class=\"mb-1\">
  94.                     ";
  95.         // line 16
  96.         yield "                </div>
  97.                 <div class=\"text-center title\" style=\"color: #53a4db;\">
  98.                     <p style=\"font-size: 40px;\" class=\"mb-0\"><strong style=\"color: #283747;\">BIZ</strong>LATINHUB</p>
  99.                     <p style=\"font-size: 20px; \" class=\"text-muted mb-0\">HR System</p>
  100.                 </div>
  101.                 ";
  102.         // line 21
  103.         if ((($tmp = (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'21$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  104.             // line 22
  105.             yield "                    <div class=\"callout callout-danger py-1 bg-danger bg-opacity-10 my-1\">
  106.                         ";
  107.             // line 23
  108.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'23$this->source); })()), "messageKey", [], "any"falsefalsefalse23), CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'23$this->source); })()), "messageData", [], "any"falsefalsefalse23), "security"), "html"nulltrue);
  109.             yield "
  110.                     </div>
  111.                 ";
  112.         }
  113.         // line 26
  114.         yield "                ";
  115.         $context['_parent'] = $context;
  116.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'26$this->source); })()), "flashes", ["warning"], "method"falsefalsefalse26));
  117.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  118.             // line 27
  119.             yield "                    <div class=\"callout callout-warning py-1 bg-warning bg-opacity-10 my-1\">
  120.                         ";
  121.             // line 28
  122.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["message"], "html"nulltrue);
  123.             yield "
  124.                     </div>
  125.                 ";
  126.         }
  127.         $_parent $context['_parent'];
  128.         unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
  129.         $context array_intersect_key($context$_parent) + $_parent;
  130.         // line 31
  131.         yield "                <form class=\"form\" action=\"";
  132.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  133.         yield "\" method=\"post\">
  134.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  135.         // line 32
  136.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  137.         yield "\">
  138.                     <label for=\"username\" class=\"login-label\">";
  139.         // line 34
  140.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.email", [], "main"), "html"nulltrue);
  141.         yield "</label>
  142.                     <input type=\"text\" id=\"username\" name=\"_username\" class=\"input\" value=\"";
  143.         // line 35
  144.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'35$this->source); })()), "html"nulltrue);
  145.         yield "\" autocomplete=\"off\" placeholder=\"";
  146.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.email", [], "main"), "html"nulltrue);
  147.         yield "\">
  148.                     <label for=\"password\" class=\"login-label\">";
  149.         // line 37
  150.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.password", [], "main"), "html"nulltrue);
  151.         yield "</label>
  152.                     <input type=\"password\" id=\"password\" name=\"_password\" class=\"input\" placeholder=\"";
  153.         // line 38
  154.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.password", [], "main"), "html"nulltrue);
  155.         yield "\">
  156.                     ";
  157.         // line 41
  158.         yield "                    <input type=\"hidden\" name=\"_target_path\" value=\"";
  159.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_home");
  160.         yield "\"/> 
  161.                     
  162.                     <button type=\"submit\" class=\"btn-login\">";
  163.         // line 43
  164.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.login", [], "main"), "html"nulltrue);
  165.         yield "</button>
  166.                     <hr>
  167.                     <div class=\"d-flex justify-content-center\">
  168.                         <a 
  169.                             href=\"";
  170.         // line 49
  171.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hwi_oauth_service_redirect", ["service" => "google"]);
  172.         yield "\" 
  173.                             class=\"btn btn-outline-danger ripple-surface-dark py-1 px-3\" 
  174.                             data-mdb-ripple-color=\"danger\"
  175.                             data-mdb-toggle=\"tooltip\" 
  176.                             data-mdb-placement=\"bottom\" 
  177.                             title=\"";
  178.         // line 54
  179.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.googleAuthentication", [], "main"), "html"nulltrue);
  180.         yield "\"
  181.                         >
  182.                             <i class=\"fa-brands fa-google fa-lg\"></i>
  183.                         </a>&nbsp;
  184.                         <a 
  185.                             href=\"";
  186.         // line 59
  187.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("auth_microsoft");
  188.         yield "\"
  189.                             class=\"btn btn-outline-primary ripple-surface-dark py-1 px-3\"
  190.                             data-mdb-toggle=\"tooltip\"
  191.                             data-mdb-placement=\"bottom\"
  192.                             title=\"Iniciar sesión con Microsoft\"
  193.                         >
  194.                             <i class=\"fa-brands fa-microsoft fa-lg\"></i>
  195.                         </a>
  196.                     </div>
  197.                 </form>
  198.             </div>
  199.         </div>
  200.     </div>
  201. </div>
  202. ";
  203.         
  204.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  205.         
  206.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  207.         yield from [];
  208.     }
  209.     /**
  210.      * @codeCoverageIgnore
  211.      */
  212.     public function getTemplateName(): string
  213.     {
  214.         return "login/index.html.twig";
  215.     }
  216.     /**
  217.      * @codeCoverageIgnore
  218.      */
  219.     public function isTraitable(): bool
  220.     {
  221.         return false;
  222.     }
  223.     /**
  224.      * @codeCoverageIgnore
  225.      */
  226.     public function getDebugInfo(): array
  227.     {
  228.         return array (  211 => 59,  203 => 54,  195 => 49,  186 => 43,  180 => 41,  175 => 38,  171 => 37,  164 => 35,  160 => 34,  155 => 32,  150 => 31,  141 => 28,  138 => 27,  133 => 26,  127 => 23,  124 => 22,  122 => 21,  115 => 16,  111 => 14,  104 => 9,  91 => 8,  77 => 4,  64 => 3,  41 => 1,);
  229.     }
  230.     public function getSourceContext(): Source
  231.     {
  232.         return new Source("{% extends 'base.html.twig' %}
  233. {% block stylesheets %}
  234.     <link rel=\"stylesheet\" type=\"text/css\" href=\"{{asset('assets/app/css/login/index.css')}}\">
  235. {% endblock %}
  236. {% block body %}
  237. <div class=\"container-login\">
  238.     <div class=\"d-flex flex-column min-vh-100 justify-content-center col-md-4 offset-4\"><!--align-items-center-->
  239.         <div class=\"container-login-2\" style=\"\">
  240.             <div class=\"container\">
  241.                 <div class=\"pic\">
  242.                     <img src=\"{{ '2022/10/BLH-Logo-4-icon.png' | fileStorage('intranet-storage') }}\" width=\"40\" class=\"mb-1\">
  243.                     {# <img src=\"https://storage.googleapis.com/intranet-storage/2022/10/BLH-Logo-4-icon.png\" width=\"40\" class=\"mb-1\"> #}
  244.                 </div>
  245.                 <div class=\"text-center title\" style=\"color: #53a4db;\">
  246.                     <p style=\"font-size: 40px;\" class=\"mb-0\"><strong style=\"color: #283747;\">BIZ</strong>LATINHUB</p>
  247.                     <p style=\"font-size: 20px; \" class=\"text-muted mb-0\">HR System</p>
  248.                 </div>
  249.                 {% if error %}
  250.                     <div class=\"callout callout-danger py-1 bg-danger bg-opacity-10 my-1\">
  251.                         {{ error.messageKey|trans(error.messageData, 'security') }}
  252.                     </div>
  253.                 {% endif %}
  254.                 {% for message in app.flashes('warning') %}
  255.                     <div class=\"callout callout-warning py-1 bg-warning bg-opacity-10 my-1\">
  256.                         {{ message }}
  257.                     </div>
  258.                 {% endfor %}
  259.                 <form class=\"form\" action=\"{{ path('login') }}\" method=\"post\">
  260.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  261.                     <label for=\"username\" class=\"login-label\">{{ 'login.email'|trans({}, 'main') }}</label>
  262.                     <input type=\"text\" id=\"username\" name=\"_username\" class=\"input\" value=\"{{ last_username }}\" autocomplete=\"off\" placeholder=\"{{ 'login.email'|trans({}, 'main') }}\">
  263.                     <label for=\"password\" class=\"login-label\">{{ 'login.password'|trans({}, 'main') }}</label>
  264.                     <input type=\"password\" id=\"password\" name=\"_password\" class=\"input\" placeholder=\"{{ 'login.password'|trans({}, 'main') }}\">
  265.                     {# If you want to control the URL the user is redirected to on success#}
  266.                     <input type=\"hidden\" name=\"_target_path\" value=\"{{path('app_home')}}\"/> 
  267.                     
  268.                     <button type=\"submit\" class=\"btn-login\">{{ 'login.login'|trans({}, 'main') }}</button>
  269.                     <hr>
  270.                     <div class=\"d-flex justify-content-center\">
  271.                         <a 
  272.                             href=\"{{ path('hwi_oauth_service_redirect', {'service': 'google' }) }}\" 
  273.                             class=\"btn btn-outline-danger ripple-surface-dark py-1 px-3\" 
  274.                             data-mdb-ripple-color=\"danger\"
  275.                             data-mdb-toggle=\"tooltip\" 
  276.                             data-mdb-placement=\"bottom\" 
  277.                             title=\"{{'login.googleAuthentication'|trans({},'main')}}\"
  278.                         >
  279.                             <i class=\"fa-brands fa-google fa-lg\"></i>
  280.                         </a>&nbsp;
  281.                         <a 
  282.                             href=\"{{ path('auth_microsoft') }}\"
  283.                             class=\"btn btn-outline-primary ripple-surface-dark py-1 px-3\"
  284.                             data-mdb-toggle=\"tooltip\"
  285.                             data-mdb-placement=\"bottom\"
  286.                             title=\"Iniciar sesión con Microsoft\"
  287.                         >
  288.                             <i class=\"fa-brands fa-microsoft fa-lg\"></i>
  289.                         </a>
  290.                     </div>
  291.                 </form>
  292.             </div>
  293.         </div>
  294.     </div>
  295. </div>
  296. {% endblock %}""login/index.html.twig""/var/www/html/templates/login/index.html.twig");
  297.     }
  298. }