<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* Auth/login.html.twig */
class __TwigTemplate_f3cf9ddccbe5ecdae5c961475bf41db9 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'headTitle' => [$this, 'block_headTitle'],
'body' => [$this, 'block_body'],
'bodyScript' => [$this, 'block_bodyScript'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "Auth/login.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Auth/login.html.twig"));
// line 2
$macros["bsm"] = $this->macros["bsm"] = $this->loadTemplate("@DiplixKMG/Macro/blocks.html.twig", "Auth/login.html.twig", 2)->unwrap();
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "Auth/login.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_headTitle($context, array $blocks = [])
{
$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", "headTitle"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headTitle"));
echo "Anmeldung erforderlich";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 6
public function block_body($context, array $blocks = [])
{
$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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 7
echo "
<div class=\"container\">
<div style=\"margin-top:80px;text-align:center;\">
";
// line 11
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["platformSetup"]) || array_key_exists("platformSetup", $context) ? $context["platformSetup"] : (function () { throw new RuntimeError('Variable "platformSetup" does not exist.', 11, $this->source); })()), "getMainLogo", [], "any", false, false, false, 11))) {
// line 12
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["platformSetup"]) || array_key_exists("platformSetup", $context) ? $context["platformSetup"] : (function () { throw new RuntimeError('Variable "platformSetup" does not exist.', 12, $this->source); })()), "getMainLogo", [], "any", false, false, false, 12), "path", [], "any", false, false, false, 12) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["platformSetup"]) || array_key_exists("platformSetup", $context) ? $context["platformSetup"] : (function () { throw new RuntimeError('Variable "platformSetup" does not exist.', 12, $this->source); })()), "getMainLogo", [], "any", false, false, false, 12), "physicalFileName", [], "any", false, false, false, 12)), "main_logo"), "html", null, true);
echo "\">
";
}
// line 14
echo " ";
// line 15
echo "
";
// line 16
if ( !(null === (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 16, $this->source); })()))) {
// line 17
echo " <h3>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 17, $this->source); })()), "customTitle", [], "any", false, false, false, 17), "html", null, true);
echo "</h3>
";
}
// line 19
echo " </div>
<div class=\"row\" style=\"margin-top:40px;\">
<div class=\"col-sm-12\">
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 24, $this->source); })()), "session", [], "any", false, false, false, 24), "flashbag", [], "any", false, false, false, 24), "all", [], "any", false, false, false, 24));
foreach ($context['_seq'] as $context["label"] => $context["flashes"]) {
// line 25
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["flashes"]);
foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
// line 26
echo " <div class=\"alert alert-";
echo twig_escape_filter($this->env, $context["label"], "html", null, true);
echo " alert-dismissible\" role=\"alert\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button>
<span class=\"alert-icon\"></span> ";
// line 28
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["flash"]), "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 31
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['label'], $context['flashes'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
echo "
<!--[if lt IE 8]>
<div class=\"alert alert-warning\" role=\"alert\"><span class=\"alert-icon\"></span> Sie verwenden einen veralteten und nicht unterstützten Browser. Bitte <a href=\"http://browsehappy.com/?locale=de_de\">aktualisieren Sie Ihren Browser</a>.</div>
<![endif]-->
<noscript>
<div class=\"alert alert-danger\" role=\"alert\"><span class=\"alert-icon\"></span> Diese Plattform verwendet Javascript. Bitte aktivieren Sie Javascript in Ihrem Browser bevor Sie fortfahren.</div>
</noscript>
<div id=\"jsMessageContainer\"></div>
";
// 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
echo " <div class=\"alert alert-warning\" role=\"alert\"><span class=\"alert-icon\"></span> ";
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.', 44, $this->source); })()), "messageKey", [], "any", false, false, false, 44), 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.', 44, $this->source); })()), "messageData", [], "any", false, false, false, 44), "security"), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, 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.', 44, $this->source); })()), "message", [], "any", false, false, false, 44), "html", null, true);
echo ")</div>
";
}
// line 46
echo "
<div class=\"row\">
<div class=\"col-sm-3\"></div>
<div class=\"col-sm-6 well well-sm\" style=\"font-weight:bold;color:#002499;text-align:center;\">
";
// line 50
echo twig_get_attribute($this->env, $this->source, (isset($context["platformSetup"]) || array_key_exists("platformSetup", $context) ? $context["platformSetup"] : (function () { throw new RuntimeError('Variable "platformSetup" does not exist.', 50, $this->source); })()), "getInfoNotice", [], "any", false, false, false, 50);
echo "
</div>
<div class=\"col-sm-3\"></div>
</div>
<form action=\"";
// line 55
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sys-login-check");
echo "\" method=\"post\" class=\"form-horizontal\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 57
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\" />
<div class=\"form-group\">
<label class=\"col-sm-2 control-label required\" for=\"username\">Login / eMail</label>
<div class=\"col-sm-10\"><input type=\"text\" id=\"username\" name=\"_username\" required=\"required\" class=\"form-control\" value=\"";
// line 61
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.', 61, $this->source); })()), "html", null, true);
echo "\" /></div>
</div>
<div class=\"form-group\">
<label class=\"col-sm-2 control-label required\" for=\"password\">";
// line 64
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Passwort", [], "messages");
echo "</label>
<div class=\"col-sm-10\"><input type=\"password\" id=\"password\" name=\"_password\" required=\"required\" class=\"form-control\" /></div>
</div>
<div class=\"form-group\">
<label class=\"col-sm-2\"></label>
<div class=\"col-sm-10\">
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" />
<label for=\"remember_me\">";
// line 72
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("stay.logged.in", [], "messages");
echo "</label>
</div>
</div>
<div class=\"form-group\">
<div class=\"col-sm-2\"></div>
<div class=\"col-sm-4\">
<button type=\"submit\" id=\"submit\" name=\"submit\" class=\"btn-default btn\">
<span class=\"glyphicon glyphicon-lock\"></span>
Login
</button>
</div>
<div class=\"col-sm-6\" style=\"text-align:right;\">
<a href=\"";
// line 85
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("forgot_password");
echo "\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("link.forgot-your-password", [], "messages");
echo "</a><br>
<a href=\"";
// line 86
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
echo "\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("link.register", [], "messages");
echo "</a><br>
";
// line 87
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["platformSetup"]) || array_key_exists("platformSetup", $context) ? $context["platformSetup"] : (function () { throw new RuntimeError('Variable "platformSetup" does not exist.', 87, $this->source); })()), "getDatenschutzUrl", [], "any", false, false, false, 87))) {
// line 88
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["platformSetup"]) || array_key_exists("platformSetup", $context) ? $context["platformSetup"] : (function () { throw new RuntimeError('Variable "platformSetup" does not exist.', 88, $this->source); })()), "getDatenschutzUrl", [], "any", false, false, false, 88), "html", null, true);
echo "\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Datenschutz", [], "messages");
echo "</a>
";
}
// line 90
echo " </div>
</div>
</form>
</div>
</div>
<div class=\"row\">
<div class=\"col-sm-12\">
<div class=\"well\">
<b>";
// line 101
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("do.you.require.support", [], "messages");
echo "</b> <br>
";
// line 102
echo twig_get_attribute($this->env, $this->source, (isset($context["platformSetup"]) || array_key_exists("platformSetup", $context) ? $context["platformSetup"] : (function () { throw new RuntimeError('Variable "platformSetup" does not exist.', 102, $this->source); })()), "getInfoSupport", [], "any", false, false, false, 102);
echo "
</div>
<div style=\"text-align:right;font-size:80%;color:lightgrey;margin-bottom:1em;\">
@";
// line 105
echo twig_escape_filter($this->env, 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.', 105, $this->source); })()), "environment", [], "any", false, false, false, 105), "html", null, true);
echo "
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 116
public function block_bodyScript($context, array $blocks = [])
{
$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", "bodyScript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyScript"));
// line 117
echo " ";
$this->displayParentBlock("bodyScript", $context, $blocks);
echo "
<script>
\$(document).ready(function()
{
if (!navigator.cookieEnabled)
{
\$(\"<div/>\")
.text(\"Diese Plattform verwendet Cookies. Bitte aktivieren Sie Cookies bevor Sie mit dem Anmeldevorgang fortfahren.\")
.addClass(\"alert alert-danger\")
.appendTo(\$(\"#jsMessageContainer\"));
}
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Auth/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 313 => 117, 303 => 116, 283 => 105, 277 => 102, 273 => 101, 260 => 90, 252 => 88, 250 => 87, 244 => 86, 238 => 85, 222 => 72, 211 => 64, 205 => 61, 198 => 57, 193 => 55, 185 => 50, 179 => 46, 171 => 44, 169 => 43, 156 => 32, 150 => 31, 141 => 28, 135 => 26, 130 => 25, 126 => 24, 119 => 19, 113 => 17, 111 => 16, 108 => 15, 106 => 14, 100 => 12, 98 => 11, 92 => 7, 82 => 6, 63 => 4, 52 => 1, 50 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% import '@DiplixKMG/Macro/blocks.html.twig' as bsm %}
{% block headTitle %}Anmeldung erforderlich{% endblock %}
{% block body %}
<div class=\"container\">
<div style=\"margin-top:80px;text-align:center;\">
{% if platformSetup.getMainLogo is not null %}
<img src=\"{{ (platformSetup.getMainLogo.path ~ platformSetup.getMainLogo.physicalFileName) | imagine_filter('main_logo') }}\">
{% endif %}
{# <img src=\"{{ asset(\"bundles/layout/images/\" ~ kmg_app_logo_image ) }}\"> #}
{% if session is not null %}
<h3>{{ session.customTitle }}</h3>
{% endif %}
</div>
<div class=\"row\" style=\"margin-top:40px;\">
<div class=\"col-sm-12\">
{% for label, flashes in app.session.flashbag.all %}
{% for flash in flashes %}
<div class=\"alert alert-{{ label }} alert-dismissible\" role=\"alert\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button>
<span class=\"alert-icon\"></span> {{ flash|trans }}
</div>
{% endfor %}
{% endfor %}
<!--[if lt IE 8]>
<div class=\"alert alert-warning\" role=\"alert\"><span class=\"alert-icon\"></span> Sie verwenden einen veralteten und nicht unterstützten Browser. Bitte <a href=\"http://browsehappy.com/?locale=de_de\">aktualisieren Sie Ihren Browser</a>.</div>
<![endif]-->
<noscript>
<div class=\"alert alert-danger\" role=\"alert\"><span class=\"alert-icon\"></span> Diese Plattform verwendet Javascript. Bitte aktivieren Sie Javascript in Ihrem Browser bevor Sie fortfahren.</div>
</noscript>
<div id=\"jsMessageContainer\"></div>
{% if error %}
<div class=\"alert alert-warning\" role=\"alert\"><span class=\"alert-icon\"></span> {{ error.messageKey|trans(error.messageData, 'security') }} ({{ error.message }})</div>
{% endif %}
<div class=\"row\">
<div class=\"col-sm-3\"></div>
<div class=\"col-sm-6 well well-sm\" style=\"font-weight:bold;color:#002499;text-align:center;\">
{{ platformSetup.getInfoNotice|raw }}
</div>
<div class=\"col-sm-3\"></div>
</div>
<form action=\"{{ path('sys-login-check') }}\" method=\"post\" class=\"form-horizontal\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\" />
<div class=\"form-group\">
<label class=\"col-sm-2 control-label required\" for=\"username\">Login / eMail</label>
<div class=\"col-sm-10\"><input type=\"text\" id=\"username\" name=\"_username\" required=\"required\" class=\"form-control\" value=\"{{ last_username }}\" /></div>
</div>
<div class=\"form-group\">
<label class=\"col-sm-2 control-label required\" for=\"password\">{% trans %}Passwort{% endtrans %}</label>
<div class=\"col-sm-10\"><input type=\"password\" id=\"password\" name=\"_password\" required=\"required\" class=\"form-control\" /></div>
</div>
<div class=\"form-group\">
<label class=\"col-sm-2\"></label>
<div class=\"col-sm-10\">
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" />
<label for=\"remember_me\">{% trans %}stay.logged.in{% endtrans %}</label>
</div>
</div>
<div class=\"form-group\">
<div class=\"col-sm-2\"></div>
<div class=\"col-sm-4\">
<button type=\"submit\" id=\"submit\" name=\"submit\" class=\"btn-default btn\">
<span class=\"glyphicon glyphicon-lock\"></span>
Login
</button>
</div>
<div class=\"col-sm-6\" style=\"text-align:right;\">
<a href=\"{{ path(\"forgot_password\") }}\">{% trans %}link.forgot-your-password{% endtrans %}</a><br>
<a href=\"{{ path(\"register\") }}\">{% trans %}link.register{% endtrans %}</a><br>
{% if platformSetup.getDatenschutzUrl is not empty %}
<a href=\"{{ platformSetup.getDatenschutzUrl }}\">{% trans %}Datenschutz{% endtrans %}</a>
{% endif %}
</div>
</div>
</form>
</div>
</div>
<div class=\"row\">
<div class=\"col-sm-12\">
<div class=\"well\">
<b>{% trans %}do.you.require.support{% endtrans %}</b> <br>
{{ platformSetup.getInfoSupport|raw }}
</div>
<div style=\"text-align:right;font-size:80%;color:lightgrey;margin-bottom:1em;\">
@{{ app.environment }}
</div>
</div>
</div>
</div>
{% endblock %}
{% block bodyScript %}
{{ parent() }}
<script>
\$(document).ready(function()
{
if (!navigator.cookieEnabled)
{
\$(\"<div/>\")
.text(\"Diese Plattform verwendet Cookies. Bitte aktivieren Sie Cookies bevor Sie mit dem Anmeldevorgang fortfahren.\")
.addClass(\"alert alert-danger\")
.appendTo(\$(\"#jsMessageContainer\"));
}
});
</script>
{% endblock %}
", "Auth/login.html.twig", "/var/www/webeasy/htdocs/app/Resources/views/Auth/login.html.twig");
}
}