var/cache/dev/twig/36/3683437380159940dafabe4de8169f95.php line 141

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_84f76c2fd3e28273b10b76a0ea87efd9 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.             'stylesheets' => [$this'block_stylesheets'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "notloggedin.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("notloggedin.html.twig""security/login.html.twig"1);
  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 3
  47.     public function block_stylesheets($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""stylesheets"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  54.         // line 4
  55.         echo "\t<style>
  56. \t\thtml,
  57. \t\tbody {
  58. \t\t  height: 100%;
  59. \t\t}
  60. \t\tbody {
  61. \t\t  display: -ms-flexbox;
  62. \t\t  display: flex;
  63. \t\t  -ms-flex-align: center;
  64. \t\t  align-items: center;
  65. \t\t  padding-top: 40px;
  66. \t\t  padding-bottom: 40px;
  67. \t\t  background-color: #f5f5f5;
  68. \t\t}
  69. \t\t.form-signin {
  70. \t\t  width: 100%;
  71. \t\t  max-width: 330px;
  72. \t\t  padding: 15px;
  73. \t\t  margin: auto;
  74. \t\t}
  75. \t\t.form-signin .checkbox {
  76. \t\t  font-weight: 400;
  77. \t\t}
  78. \t\t.form-signin .form-control {
  79. \t\t  position: relative;
  80. \t\t  box-sizing: border-box;
  81. \t\t  height: auto;
  82. \t\t  padding: 10px;
  83. \t\t  font-size: 16px;
  84. \t\t}
  85. \t\t.form-signin .form-control:focus {
  86. \t\t  z-index: 2;
  87. \t\t}
  88. \t\t.form-signin input[type=\"email\"] {
  89. \t\t  margin-bottom: -1px;
  90. \t\t  border-bottom-right-radius: 0;
  91. \t\t  border-bottom-left-radius: 0;
  92. \t\t}
  93. \t\t.form-signin input[type=\"password\"] {
  94. \t\t  margin-bottom: 10px;
  95. \t\t  border-top-left-radius: 0;
  96. \t\t  border-top-right-radius: 0;
  97. \t\t}
  98. \t\t\t  .bd-placeholder-img {
  99. \t\t\t\tfont-size: 1.125rem;
  100. \t\t\t\ttext-anchor: middle;
  101. \t\t\t\t-webkit-user-select: none;
  102. \t\t\t\t-moz-user-select: none;
  103. \t\t\t\t-ms-user-select: none;
  104. \t\t\t\tuser-select: none;
  105. \t\t\t  }
  106. \t\t\t  @media (min-width: 768px) {
  107. \t\t\t\t.bd-placeholder-img-lg {
  108. \t\t\t\t  font-size: 3.5rem;
  109. \t\t\t\t}
  110. \t\t\t  }
  111. \t\t\t  
  112. \t</style>
  113. ";
  114.         
  115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  116.         
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  118.     }
  119.     // line 68
  120.     public function block_body($context, array $blocks = [])
  121.     {
  122.         $macros $this->macros;
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  127.         // line 69
  128.         echo "
  129. \t<body class=\"text-center\">
  130. \t\t<form method=\"post\" class=\"form-signin\">
  131. \t\t\t<img class=\"mb-3\" width=\"200\" src=\"";
  132.         // line 73
  133.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/public/uploads/" . (isset($context["logo"]) || array_key_exists("logo"$context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.'73$this->source); })()))), "html"nulltrue);
  134.         echo "\" >
  135. \t\t\t<h1 class=\"h3 mb-3 mt-3 font-weight-normal\">Inloggen</h1>
  136. \t\t\t
  137. \t\t\t<label for=\"inputUsername\" class=\"sr-only\">Gebruikersnaam</label>
  138. \t\t\t<input type=\"text\" value=\"";
  139.         // line 77
  140.         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.'77$this->source); })()), "html"nulltrue);
  141.         echo "\" name=\"username\" id=\"inputUsername\" class=\"form-control\" placeholder=\"Gebruikersnaam\" required autofocus>
  142. \t\t\t
  143. \t\t\t<label for=\"inputPassword\" class=\"sr-only\">Wachtwoord</label>
  144. \t\t\t<input type=\"password\" id=\"inputPassword\" name=\"password\" class=\"form-control\" placeholder=\"Wachtwoord\" required>
  145. \t\t\t
  146. \t\t\t<input type=\"hidden\" name=\"_csrf_token\"
  147. \t\t\t\t   value=\"";
  148.         // line 83
  149.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  150.         echo "\"
  151. \t\t\t>
  152. \t\t\t
  153. \t\t\t ";
  154.         // line 93
  155.         echo "\t\t\t<button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\">Inloggen</button>
  156. \t\t\t\t\t\t";
  157.         // line 94
  158.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'94$this->source); })())) {
  159.             // line 95
  160.             echo "\t\t\t\t<div class=\"alert alert-danger mt-3\">";
  161.             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.'95$this->source); })()), "messageKey", [], "any"falsefalsefalse95), 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.'95$this->source); })()), "messageData", [], "any"falsefalsefalse95), "security"), "html"nulltrue);
  162.             echo "</div>
  163. \t\t\t";
  164.         }
  165.         // line 97
  166.         echo "
  167. \t\t\t";
  168.         // line 98
  169.         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.'98$this->source); })()), "user", [], "any"falsefalsefalse98)) {
  170.             // line 99
  171.             echo "\t\t\t\t<div class=\"mt-3 alert alert-danger\" role=\"alert\">
  172. \t\t\t\t\tJe bent al ingelogd als ";
  173.             // line 100
  174.             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.'100$this->source); })()), "user", [], "any"falsefalsefalse100), "username", [], "any"falsefalsefalse100), "html"nulltrue);
  175.             echo ", <a href=\"";
  176.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  177.             echo "\">klik hier om uit te loggen</a>
  178. \t\t\t\t</div>
  179. \t\t\t";
  180.         }
  181.         // line 103
  182.         echo "\t\t\t
  183. \t\t\t<p class=\"mt-5 mb-3 text-muted\">&copy; Twente PC 2020 - ";
  184.         // line 104
  185.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env"now""Y"), "html"nulltrue);
  186.         echo "</p>
  187. \t\t</form>
  188. \t</body>
  189. ";
  190.         
  191.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  192.         
  193.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  194.     }
  195.     /**
  196.      * @codeCoverageIgnore
  197.      */
  198.     public function getTemplateName()
  199.     {
  200.         return "security/login.html.twig";
  201.     }
  202.     /**
  203.      * @codeCoverageIgnore
  204.      */
  205.     public function isTraitable()
  206.     {
  207.         return false;
  208.     }
  209.     /**
  210.      * @codeCoverageIgnore
  211.      */
  212.     public function getDebugInfo()
  213.     {
  214.         return array (  209 => 104,  206 => 103,  198 => 100,  195 => 99,  193 => 98,  190 => 97,  184 => 95,  182 => 94,  179 => 93,  173 => 83,  164 => 77,  157 => 73,  151 => 69,  141 => 68,  69 => 4,  59 => 3,  36 => 1,);
  215.     }
  216.     public function getSourceContext()
  217.     {
  218.         return new Source("{% extends 'notloggedin.html.twig' %}
  219. {% block stylesheets %}
  220. \t<style>
  221. \t\thtml,
  222. \t\tbody {
  223. \t\t  height: 100%;
  224. \t\t}
  225. \t\tbody {
  226. \t\t  display: -ms-flexbox;
  227. \t\t  display: flex;
  228. \t\t  -ms-flex-align: center;
  229. \t\t  align-items: center;
  230. \t\t  padding-top: 40px;
  231. \t\t  padding-bottom: 40px;
  232. \t\t  background-color: #f5f5f5;
  233. \t\t}
  234. \t\t.form-signin {
  235. \t\t  width: 100%;
  236. \t\t  max-width: 330px;
  237. \t\t  padding: 15px;
  238. \t\t  margin: auto;
  239. \t\t}
  240. \t\t.form-signin .checkbox {
  241. \t\t  font-weight: 400;
  242. \t\t}
  243. \t\t.form-signin .form-control {
  244. \t\t  position: relative;
  245. \t\t  box-sizing: border-box;
  246. \t\t  height: auto;
  247. \t\t  padding: 10px;
  248. \t\t  font-size: 16px;
  249. \t\t}
  250. \t\t.form-signin .form-control:focus {
  251. \t\t  z-index: 2;
  252. \t\t}
  253. \t\t.form-signin input[type=\"email\"] {
  254. \t\t  margin-bottom: -1px;
  255. \t\t  border-bottom-right-radius: 0;
  256. \t\t  border-bottom-left-radius: 0;
  257. \t\t}
  258. \t\t.form-signin input[type=\"password\"] {
  259. \t\t  margin-bottom: 10px;
  260. \t\t  border-top-left-radius: 0;
  261. \t\t  border-top-right-radius: 0;
  262. \t\t}
  263. \t\t\t  .bd-placeholder-img {
  264. \t\t\t\tfont-size: 1.125rem;
  265. \t\t\t\ttext-anchor: middle;
  266. \t\t\t\t-webkit-user-select: none;
  267. \t\t\t\t-moz-user-select: none;
  268. \t\t\t\t-ms-user-select: none;
  269. \t\t\t\tuser-select: none;
  270. \t\t\t  }
  271. \t\t\t  @media (min-width: 768px) {
  272. \t\t\t\t.bd-placeholder-img-lg {
  273. \t\t\t\t  font-size: 3.5rem;
  274. \t\t\t\t}
  275. \t\t\t  }
  276. \t\t\t  
  277. \t</style>
  278. {% endblock %}
  279. {% block body %}
  280. \t<body class=\"text-center\">
  281. \t\t<form method=\"post\" class=\"form-signin\">
  282. \t\t\t<img class=\"mb-3\" width=\"200\" src=\"{{ asset('/public/uploads/' ~ logo) }}\" >
  283. \t\t\t<h1 class=\"h3 mb-3 mt-3 font-weight-normal\">Inloggen</h1>
  284. \t\t\t
  285. \t\t\t<label for=\"inputUsername\" class=\"sr-only\">Gebruikersnaam</label>
  286. \t\t\t<input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"inputUsername\" class=\"form-control\" placeholder=\"Gebruikersnaam\" required autofocus>
  287. \t\t\t
  288. \t\t\t<label for=\"inputPassword\" class=\"sr-only\">Wachtwoord</label>
  289. \t\t\t<input type=\"password\" id=\"inputPassword\" name=\"password\" class=\"form-control\" placeholder=\"Wachtwoord\" required>
  290. \t\t\t
  291. \t\t\t<input type=\"hidden\" name=\"_csrf_token\"
  292. \t\t\t\t   value=\"{{ csrf_token('authenticate') }}\"
  293. \t\t\t>
  294. \t\t\t
  295. \t\t\t {#
  296. \t\t\t<div class=\"checkbox mb-3\">
  297. \t\t\t<label>
  298. \t\t\t  <input type=\"checkbox\" value=\"remember-me\"> Remember me
  299. \t\t\t</label>
  300. \t\t\t</div>
  301. \t\t\t #}
  302. \t\t\t<button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\">Inloggen</button>
  303. \t\t\t\t\t\t{% if error %}
  304. \t\t\t\t<div class=\"alert alert-danger mt-3\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  305. \t\t\t{% endif %}
  306. \t\t\t{% if app.user %}
  307. \t\t\t\t<div class=\"mt-3 alert alert-danger\" role=\"alert\">
  308. \t\t\t\t\tJe bent al ingelogd als {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">klik hier om uit te loggen</a>
  309. \t\t\t\t</div>
  310. \t\t\t{% endif %}
  311. \t\t\t
  312. \t\t\t<p class=\"mt-5 mb-3 text-muted\">&copy; Twente PC 2020 - {{ \"now\"|date(\"Y\") }}</p>
  313. \t\t</form>
  314. \t</body>
  315. {% endblock %}
  316. ""security/login.html.twig""/var/www/dev.jotop.nl/templates/security/login.html.twig");
  317.     }
  318. }