<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* @ProjectBizPortal/Login/index.html.twig */
class __TwigTemplate_8a1691b652003cd2e2f8f0cbd01aa74a extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'styles' => [$this, 'block_styles'],
'flashbag' => [$this, 'block_flashbag'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "@ProjectBizPortal/layout.base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ProjectBizPortal/Login/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ProjectBizPortal/Login/index.html.twig"));
$this->parent = $this->loadTemplate("@ProjectBizPortal/layout.base.html.twig", "@ProjectBizPortal/Login/index.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "Login";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_styles(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
// line 6
yield " <style type=\"text/css\">
.form-signin {
padding: 19px 29px 29px;
margin: 0 auto 20px;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 22
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_flashbag(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "flashbag"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "flashbag"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 24
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 25
yield " <div class=\"container-fluid\">
<div class=\"row-fluid\">
<div class=\"col-md-offset-4 col-md-4\">
<form class=\"form-signin sha gr1\" action=\"";
// line 28
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_login_check");
yield "\" method=\"post\" role=\"form\">
";
// line 30
yield Twig\Extension\CoreExtension::include($this->env, $context, "@ProjectBizPortal/include.login-logo.html.twig");
yield "
<h3>";
// line 32
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Portal Anmeldung"), "html", null, true);
yield "</h3>
";
// line 34
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(["success", "info", "warning", "danger"]);
foreach ($context['_seq'] as $context["_key"] => $context["flashBag"]) {
// line 35
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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); })()), "session", [], "any", false, false, false, 35), "flashbag", [], "any", false, false, false, 35), "get", [$context["flashBag"]], "method", false, false, false, 35));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 36
yield " <div class=\"alert alert-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flashBag"], "html", null, true);
yield " alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flashMessage"], "html", null, true);
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['flashMessage'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['flashBag'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 42
yield "
";
// line 43
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 43, $this->source); })())) {
// line 44
yield " <div class=\"alert alert-danger alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
";
// line 46
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 46, $this->source); })()), "message", [], "any", false, false, false, 46))), "html", null, true);
// line 47
yield " </div>
";
}
// line 49
yield "
<div id=\"cookie-alert\" class=\"alert alert-danger alert-dismissable hidden\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
";
// line 52
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Um fortzufahren müssen Sie Cookies akzeptieren.", [], "messages");
// line 53
yield " </div>
<div class=\"form-group\">
<label for=\"_username\">Benutzername</label>
<input type=\"text\" class=\"form-control\" id=\"_username\" name=\"_username\" value=\"";
// line 57
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.', 57, $this->source); })()), "html", null, true);
yield "\" placeholder=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Benutzername"), "html", null, true);
yield "\">
</div>
<div class=\"form-group\">
<label for=\"_password\">Passwort</label>
<input type=\"password\" class=\"form-control\" id=\"_password\" name=\"_password\" placeholder=\"";
// line 61
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Passwort"), "html", null, true);
yield "\">
</div>
";
// line 64
if ((isset($context["require_cookie_acceptance_at_login"]) || array_key_exists("require_cookie_acceptance_at_login", $context) ? $context["require_cookie_acceptance_at_login"] : (function () { throw new RuntimeError('Variable "require_cookie_acceptance_at_login" does not exist.', 64, $this->source); })())) {
// line 65
yield " <div class=\"form-group\">
<label for=\"accept_cookies\">";
// line 66
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Cookies akzeptieren", [], "messages");
yield "</label>
<div style=\"display: flex;\">
<input type=\"checkbox\" class=\"form-control\" id=\"accept_cookies\" name=\"accept_cookies\" style=\"height:auto;width:auto;\">
<span style=\"margin-left: 10px;margin-top: 2px;\">";
// line 69
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Ich akzeptiere, dass Cookies gesetzt werden.", [], "messages");
yield "</span>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
";
// line 77
yield " document.getElementsByClassName('btn-primary')[0].addEventListener('click', function (e) {
if(!document.getElementById('accept_cookies').checked) {
document.getElementById('cookie-alert').classList.remove('hidden');
e.preventDefault();
e.stopPropagation();
}
});
}, false);
</script>
";
}
// line 87
yield "
<input class=\"btn btn-primary\" type=\"submit\" value=\"";
// line 88
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Anmelden"), "html", null, true);
yield "\" >
<p><br>";
// line 89
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Ich habe mein <a href=\"%recover%\">Passwort vergessen.</a>", ["%recover%" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_recover_password")], "messages");
yield "</p>
";
// line 91
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["features"] ?? null), "register", [], "any", true, true, false, 91) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["features"]) || array_key_exists("features", $context) ? $context["features"] : (function () { throw new RuntimeError('Variable "features" does not exist.', 91, $this->source); })()), "register", [], "any", false, false, false, 91))) {
// line 92
yield " <hr>
";
}
// line 96
yield " </form>
<p>";
// line 98
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Hinweis zu den Passwortrichtlinien:<br>Verwenden Sie bitte: Mindestens 8 Zeichen UND Groß- und Kleinschreibung UND mindestens ein Sonderzeichen (@#\$%&°+=) UND mindestens eine Ziffer.", [], "messages");
yield "</p>
<p>";
// line 99
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Hinweis zur Verwendung von Cookies:<br>Bitte beachten Sie, dass für die Nutzung des Portals die Nutzung von Cookies erlaubt sein muss.", [], "messages");
yield "</p>
<p><a target=\"_blank\" href=\"";
// line 100
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pages_privacy_terms");
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Datenschutzerklärung"), "html", null, true);
yield "</a></p>
<p><a target=\"_blank\" href=\"";
// line 101
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pages_imprint");
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Impressum"), "html", null, true);
yield "</a></p>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@ProjectBizPortal/Login/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 324 => 101, 318 => 100, 314 => 99, 310 => 98, 306 => 96, 300 => 92, 298 => 91, 293 => 89, 289 => 88, 286 => 87, 274 => 77, 266 => 69, 260 => 66, 257 => 65, 255 => 64, 249 => 61, 240 => 57, 234 => 53, 232 => 52, 227 => 49, 223 => 47, 221 => 46, 217 => 44, 215 => 43, 212 => 42, 206 => 41, 197 => 38, 191 => 36, 186 => 35, 182 => 34, 177 => 32, 172 => 30, 167 => 28, 162 => 25, 149 => 24, 127 => 22, 102 => 6, 89 => 5, 66 => 3, 43 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends '@ProjectBizPortal/layout.base.html.twig' %}
{% block title %}Login{% endblock %}
{% block styles %}
<style type=\"text/css\">
.form-signin {
padding: 19px 29px 29px;
margin: 0 auto 20px;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
</style>
{% endblock %}
{% block flashbag %}{% endblock %}
{% block content %}
<div class=\"container-fluid\">
<div class=\"row-fluid\">
<div class=\"col-md-offset-4 col-md-4\">
<form class=\"form-signin sha gr1\" action=\"{{ path('_login_check') }}\" method=\"post\" role=\"form\">
{{ include('@ProjectBizPortal/include.login-logo.html.twig') }}
<h3>{{ 'Portal Anmeldung' | trans }}</h3>
{% for flashBag in ['success', 'info', 'warning', 'danger'] %}
{% for flashMessage in app.session.flashbag.get(flashBag) %}
<div class=\"alert alert-{{flashBag}} alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
{{ flashMessage }}
</div>
{% endfor %}
{% endfor %}
{% if error %}
<div class=\"alert alert-danger alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
{{ error.message | trans | trans }}{# Double translation -> 'Bad credentials' -> de -> target language #}
</div>
{% endif %}
<div id=\"cookie-alert\" class=\"alert alert-danger alert-dismissable hidden\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
{% trans %}Um fortzufahren müssen Sie Cookies akzeptieren.{% endtrans %}
</div>
<div class=\"form-group\">
<label for=\"_username\">Benutzername</label>
<input type=\"text\" class=\"form-control\" id=\"_username\" name=\"_username\" value=\"{{ last_username }}\" placeholder=\"{{ 'Benutzername' | trans }}\">
</div>
<div class=\"form-group\">
<label for=\"_password\">Passwort</label>
<input type=\"password\" class=\"form-control\" id=\"_password\" name=\"_password\" placeholder=\"{{ 'Passwort' | trans }}\">
</div>
{% if require_cookie_acceptance_at_login %}
<div class=\"form-group\">
<label for=\"accept_cookies\">{% trans %}Cookies akzeptieren{% endtrans %}</label>
<div style=\"display: flex;\">
<input type=\"checkbox\" class=\"form-control\" id=\"accept_cookies\" name=\"accept_cookies\" style=\"height:auto;width:auto;\">
<span style=\"margin-left: 10px;margin-top: 2px;\">{% trans %}Ich akzeptiere, dass Cookies gesetzt werden.{% endtrans %}</span>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
{#
Do not let the user login when he does not accept cookies.
#}
document.getElementsByClassName('btn-primary')[0].addEventListener('click', function (e) {
if(!document.getElementById('accept_cookies').checked) {
document.getElementById('cookie-alert').classList.remove('hidden');
e.preventDefault();
e.stopPropagation();
}
});
}, false);
</script>
{% endif %}
<input class=\"btn btn-primary\" type=\"submit\" value=\"{{ 'Anmelden' | trans }}\" >
<p><br>{% trans with {'%recover%': path('_recover_password')} %}Ich habe mein <a href=\"%recover%\">Passwort vergessen.</a>{% endtrans %}</p>
{% if features.register is defined and features.register %}
<hr>
{% endif %}
</form>
<p>{% trans %}Hinweis zu den Passwortrichtlinien:<br>Verwenden Sie bitte: Mindestens 8 Zeichen UND Groß- und Kleinschreibung UND mindestens ein Sonderzeichen (@#\$%&°+=) UND mindestens eine Ziffer.{% endtrans %}</p>
<p>{% trans %}Hinweis zur Verwendung von Cookies:<br>Bitte beachten Sie, dass für die Nutzung des Portals die Nutzung von Cookies erlaubt sein muss.{% endtrans %}</p>
<p><a target=\"_blank\" href=\"{{ path('pages_privacy_terms') }}\">{{ 'Datenschutzerklärung' | trans}}</a></p>
<p><a target=\"_blank\" href=\"{{ path('pages_imprint') }}\">{{ 'Impressum' | trans}}</a></p>
</div>
</div>
</div>
{% endblock %}
", "@ProjectBizPortal/Login/index.html.twig", "D:\\srv\\portal\\tracingandtracking-portal\\vendor\\project-biz\\portal-bundle\\src\\Resources\\views\\Login\\index.html.twig");
}
}