var/cache/dev/twig/40/40909081dd23ac5c75f6c8531349d036.php line 34

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. /* security/login.html.twig */
  15. class __TwigTemplate_a3d327f0d2cc9e4242593123820149c1 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  34.         // line 1
  35.         yield "<!DOCTYPE html>
  36. <html>
  37. <head>
  38.   <meta charset=\"utf-8\">
  39.   <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  40.   <title>Dms - Data Management System</title>
  41.   <!-- Tell the browser to be responsive to screen width -->
  42.   <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  43.   <!-- Font Awesome -->
  44.   <link rel=\"stylesheet\" href=\"";
  45.         // line 11
  46.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/fontawesome-free/css/all.min.css"), "html"nulltrue);
  47.         yield "\">
  48.   <!-- Ionicons -->
  49.   <link rel=\"stylesheet\" href=\"https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css\">
  50.   <!-- icheck bootstrap -->
  51.   <link rel=\"stylesheet\" href=\"";
  52.         // line 15
  53.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/icheck-bootstrap/icheck-bootstrap.min.css"), "html"nulltrue);
  54.         yield "\">
  55.   <!-- Theme style -->
  56.   <link rel=\"stylesheet\" href=\"";
  57.         // line 17
  58.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("dist/css/adminlte.min.css"), "html"nulltrue);
  59.         yield "\">
  60.   <!-- Google Font: Source Sans Pro -->
  61.   <link href=\"https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700\" rel=\"stylesheet\">
  62. </head>
  63. <body class=\"hold-transition login-page\">
  64. <div class=\"login-box\">
  65.   <div class=\"login-logo\">
  66.     <a href=\"javascript:void(0)\"><b>Login</b></a>
  67.   </div>
  68.   <!-- /.login-logo -->
  69.   <div class=\"card\">
  70.     <div class=\"card-body login-card-body\">
  71.         <div id=\"alert\">
  72.           ";
  73.         // line 30
  74.         $context['_parent'] = $context;
  75.         $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.'30$this->source); })()), "flashes", ["success"], "method"falsefalsefalse30));
  76.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  77.             // line 31
  78.             yield "              <div class=\"alert alert-success\">
  79.                   ";
  80.             // line 32
  81.             yield Twig\Extension\EscaperExtension::escape($this->env$context["message"], "html"nulltrue);
  82.             yield "
  83.               </div>
  84.           ";
  85.         }
  86.         $_parent $context['_parent'];
  87.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  88.         $context array_intersect_key($context$_parent) + $_parent;
  89.         // line 35
  90.         yield "          ";
  91.         $context['_parent'] = $context;
  92.         $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.'35$this->source); })()), "flashes", ["error"], "method"falsefalsefalse35));
  93.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  94.             // line 36
  95.             yield "              <div class=\"alert alert-danger\">
  96.                   ";
  97.             // line 37
  98.             yield Twig\Extension\EscaperExtension::escape($this->env$context["message"], "html"nulltrue);
  99.             yield "
  100.               </div>
  101.           ";
  102.         }
  103.         $_parent $context['_parent'];
  104.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  105.         $context array_intersect_key($context$_parent) + $_parent;
  106.         // line 40
  107.         yield "        </div>
  108.         <p class=\"login-box-msg\">Login to start your session</p>
  109.         <form method=\"post\">
  110.             ";
  111.         // line 44
  112.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'44$this->source); })())) {
  113.             // line 45
  114.             yield "                <div class=\"alert alert-danger\">";
  115.             yield Twig\Extension\EscaperExtension::escape($this->env$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.'45$this->source); })()), "messageKey", [], "any"falsefalsefalse45), 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.'45$this->source); })()), "messageData", [], "any"falsefalsefalse45), "security"), "html"nulltrue);
  116.             yield "</div>
  117.             ";
  118.         }
  119.         // line 47
  120.         yield "
  121.             ";
  122.         // line 48
  123.         if (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.'48$this->source); })()), "user", [], "any"falsefalsefalse48)) {
  124.             // line 49
  125.             yield "                <div class=\"mb-3\">
  126.                     You are logged in as ";
  127.             // line 50
  128.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'50$this->source); })()), "user", [], "any"falsefalsefalse50), "username", [], "any"falsefalsefalse50), "html"nulltrue);
  129.             yield ", <a href=\"";
  130.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  131.             yield "\">Logout</a>
  132.                 </div>
  133.             ";
  134.         }
  135.         // line 53
  136.         yield "            <div class=\"input-group mb-3\">
  137.               <input type=\"text\" value=\"";
  138.         // line 54
  139.         yield Twig\Extension\EscaperExtension::escape($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.'54$this->source); })()), "html"nulltrue);
  140.         yield "\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus  placeholder=\"Email\">
  141.               <div class=\"input-group-append\">
  142.                 <div class=\"input-group-text\">
  143.                   <span class=\"fas fa-envelope\"></span>
  144.                 </div>
  145.               </div>
  146.             </div>
  147.             <div class=\"input-group mb-3\">
  148.                 <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" placeholder=\"Password\" required>
  149.                 <input type=\"hidden\" name=\"_csrf_token\"
  150.                 value=\"";
  151.         // line 64
  152.         yield Twig\Extension\EscaperExtension::escape($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  153.         yield "\"
  154.                 >
  155.                 <div class=\"input-group-append\">
  156.                     <div class=\"input-group-text\">
  157.                       <span class=\"fas fa-lock\"></span>
  158.                     </div>
  159.                 </div>
  160.             </div>
  161.             <div class=\"row\">
  162.               <div class=\"col-12 text-center\">
  163.                 <button type=\"submit\" class=\"btn btn-success btn-block mb-2\">Login</button>
  164.                 ";
  165.         // line 77
  166.         yield "              </div>
  167.             </div>
  168.         </form>
  169.     </div>
  170.     <!-- /.login-card-body -->
  171.   </div>
  172. </div>
  173. <!-- /.login-box -->
  174. <!-- jQuery -->
  175. <script src=\"";
  176.         // line 87
  177.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/jquery/jquery.min.js"), "html"nulltrue);
  178.         yield "\"></script>
  179. <!-- Bootstrap 4 -->
  180. <script src=\"";
  181.         // line 89
  182.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/bootstrap/js/bootstrap.bundle.min.js"), "html"nulltrue);
  183.         yield "\"></script>
  184. <!-- AdminLTE App -->
  185. <script src=\"";
  186.         // line 91
  187.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("dist/js/adminlte.min.js"), "html"nulltrue);
  188.         yield "\"></script>
  189. </body>
  190. </html>
  191. ";
  192.         
  193.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  194.         
  195.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  196.         return; yield '';
  197.     }
  198.     /**
  199.      * @codeCoverageIgnore
  200.      */
  201.     public function getTemplateName()
  202.     {
  203.         return "security/login.html.twig";
  204.     }
  205.     /**
  206.      * @codeCoverageIgnore
  207.      */
  208.     public function isTraitable()
  209.     {
  210.         return false;
  211.     }
  212.     /**
  213.      * @codeCoverageIgnore
  214.      */
  215.     public function getDebugInfo()
  216.     {
  217.         return array (  199 => 91,  194 => 89,  189 => 87,  177 => 77,  163 => 64,  150 => 54,  147 => 53,  139 => 50,  136 => 49,  134 => 48,  131 => 47,  125 => 45,  123 => 44,  117 => 40,  108 => 37,  105 => 36,  100 => 35,  91 => 32,  88 => 31,  84 => 30,  68 => 17,  63 => 15,  56 => 11,  44 => 1,);
  218.     }
  219.     public function getSourceContext()
  220.     {
  221.         return new Source("<!DOCTYPE html>
  222. <html>
  223. <head>
  224.   <meta charset=\"utf-8\">
  225.   <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  226.   <title>Dms - Data Management System</title>
  227.   <!-- Tell the browser to be responsive to screen width -->
  228.   <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  229.   <!-- Font Awesome -->
  230.   <link rel=\"stylesheet\" href=\"{{ asset('plugins/fontawesome-free/css/all.min.css') }}\">
  231.   <!-- Ionicons -->
  232.   <link rel=\"stylesheet\" href=\"https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css\">
  233.   <!-- icheck bootstrap -->
  234.   <link rel=\"stylesheet\" href=\"{{ asset('plugins/icheck-bootstrap/icheck-bootstrap.min.css') }}\">
  235.   <!-- Theme style -->
  236.   <link rel=\"stylesheet\" href=\"{{ asset('dist/css/adminlte.min.css') }}\">
  237.   <!-- Google Font: Source Sans Pro -->
  238.   <link href=\"https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700\" rel=\"stylesheet\">
  239. </head>
  240. <body class=\"hold-transition login-page\">
  241. <div class=\"login-box\">
  242.   <div class=\"login-logo\">
  243.     <a href=\"javascript:void(0)\"><b>Login</b></a>
  244.   </div>
  245.   <!-- /.login-logo -->
  246.   <div class=\"card\">
  247.     <div class=\"card-body login-card-body\">
  248.         <div id=\"alert\">
  249.           {% for message in app.flashes('success') %}
  250.               <div class=\"alert alert-success\">
  251.                   {{ message }}
  252.               </div>
  253.           {% endfor %}
  254.           {% for message in app.flashes('error') %}
  255.               <div class=\"alert alert-danger\">
  256.                   {{ message }}
  257.               </div>
  258.           {% endfor %}
  259.         </div>
  260.         <p class=\"login-box-msg\">Login to start your session</p>
  261.         <form method=\"post\">
  262.             {% if error %}
  263.                 <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  264.             {% endif %}
  265.             {% if app.user %}
  266.                 <div class=\"mb-3\">
  267.                     You are logged in as {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Logout</a>
  268.                 </div>
  269.             {% endif %}
  270.             <div class=\"input-group mb-3\">
  271.               <input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus  placeholder=\"Email\">
  272.               <div class=\"input-group-append\">
  273.                 <div class=\"input-group-text\">
  274.                   <span class=\"fas fa-envelope\"></span>
  275.                 </div>
  276.               </div>
  277.             </div>
  278.             <div class=\"input-group mb-3\">
  279.                 <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" placeholder=\"Password\" required>
  280.                 <input type=\"hidden\" name=\"_csrf_token\"
  281.                 value=\"{{ csrf_token('authenticate') }}\"
  282.                 >
  283.                 <div class=\"input-group-append\">
  284.                     <div class=\"input-group-text\">
  285.                       <span class=\"fas fa-lock\"></span>
  286.                     </div>
  287.                 </div>
  288.             </div>
  289.             <div class=\"row\">
  290.               <div class=\"col-12 text-center\">
  291.                 <button type=\"submit\" class=\"btn btn-success btn-block mb-2\">Login</button>
  292.                 {# <a href=\"{{path('app_register')}}\">New Supervisor?</a> &emsp; 
  293.                 <a href=\"{{path('app_forgot_password_request')}}\">Forgot password?</a> #}
  294.               </div>
  295.             </div>
  296.         </form>
  297.     </div>
  298.     <!-- /.login-card-body -->
  299.   </div>
  300. </div>
  301. <!-- /.login-box -->
  302. <!-- jQuery -->
  303. <script src=\"{{ asset('plugins/jquery/jquery.min.js') }}\"></script>
  304. <!-- Bootstrap 4 -->
  305. <script src=\"{{ asset('plugins/bootstrap/js/bootstrap.bundle.min.js') }}\"></script>
  306. <!-- AdminLTE App -->
  307. <script src=\"{{ asset('dist/js/adminlte.min.js') }}\"></script>
  308. </body>
  309. </html>
  310. ""security/login.html.twig""/home/kr5bo77k0nms/public_html/devdms.karavyasolutions.com/templates/security/login.html.twig");
  311.     }
  312. }