<?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;
/* security/login.html.twig */
class __TwigTemplate_1fb43ae9cc8258915736def3b29983ec extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_content' => [$this, 'block_page_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout/layout-content-only.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", "security/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", "security/login.html.twig"));
$this->parent = $this->loadTemplate("layout/layout-content-only.html.twig", "security/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 3
public function block_page_content($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", "page_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_content"));
// line 4
echo "
\t<div class=\"container d-flex flex-column\">
\t\t<div class=\"row vh-100\">
\t\t\t<div class=\"col-sm-10 col-md-8 col-lg-6 mx-auto d-table h-100\">
\t\t\t\t<div class=\"d-table-cell align-middle\">
\t\t\t\t\t<div class=\"text-center mt-4\">
\t\t\t\t\t\t<h1 class=\"h2\">Cirad</h1>
\t\t\t\t\t\t<img src=\"\" alt=\"logo cirad\"/>
\t\t\t\t\t\t<p class=\"lead\">
\t\t\t\t\t\t\tEspace administration
\t\t\t\t\t\t</p>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t<div class=\"card-body\">
\t\t\t\t\t\t\t<div class=\"m-sm-4\">
\t\t\t\t\t\t\t\t<div class=\"text-center\">
\t\t\t\t\t\t\t\t\t<img src=\"img/avatars/avatar.jpg\" alt=\"Charles Hall\" class=\"img-fluid rounded-circle\" width=\"132\" height=\"132\"/>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<form action=\"";
// line 24
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("security_login");
echo "\" method=\"POST\">
\t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
\t\t\t\t\t\t\t\t\t\t<label class=\"form-label\">Nom d'utilisateur</label>
\t\t\t\t\t\t\t\t\t\t<input placeholder=\"Adresse e-mail\" type=\"text\" name=\"_username\" class=\"form-control form-control-lg\" required>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
\t\t\t\t\t\t\t\t\t\t<label class=\"form-label\">Password</label>
\t\t\t\t\t\t\t\t\t\t<input placeholder=\"Mot de passe\" type=\"password\" name=\"_password\" class=\"form-control form-control-lg\" required>
\t\t\t\t\t\t\t\t\t\t<small>
\t\t\t\t\t\t\t\t\t\t\t<a href=\"index.html\">Forgot password?</a>
\t\t\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<label class=\"form-check\">
\t\t\t\t\t\t\t\t\t\t\t<input class=\"form-check-input\" type=\"checkbox\" value=\"remember-me\" name=\"remember-me\" checked>
\t\t\t\t\t\t\t\t\t\t\t<span class=\"form-check-label\">
\t\t\t\t\t\t\t\t\t\t\t\tRemember me next time
\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"text-center mt-3\">
\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-lg btn-primary\">Sign in</button>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"_target_path\" value=\"";
// line 47
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_index");
echo "\">
\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t";
// line 57
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.', 57, $this->source); })()), "user", [], "any", false, false, false, 57)) {
// line 58
echo "\t\t<div class=\"row\">
\t\t\t<div class=\"col text-center lead pb-3\">
\t\t\t\t<div class=\"alert alert-danger py-4 px-3\">Vous êtes déjà connecté(e) en tant que
\t\t\t\t\t";
// line 61
echo twig_escape_filter($this->env, 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.', 61, $this->source); })()), "user", [], "any", false, false, false, 61), "username", [], "any", false, false, false, 61), "html", null, true);
echo ",
\t\t\t\t\t<a href=\"";
// line 62
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("security_logout");
echo "\">Déconnexion</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t";
}
// line 67
echo "</div>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "security/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 148 => 67, 140 => 62, 136 => 61, 131 => 58, 129 => 57, 116 => 47, 90 => 24, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout/layout-content-only.html.twig' %}
{% block page_content %}
\t<div class=\"container d-flex flex-column\">
\t\t<div class=\"row vh-100\">
\t\t\t<div class=\"col-sm-10 col-md-8 col-lg-6 mx-auto d-table h-100\">
\t\t\t\t<div class=\"d-table-cell align-middle\">
\t\t\t\t\t<div class=\"text-center mt-4\">
\t\t\t\t\t\t<h1 class=\"h2\">Cirad</h1>
\t\t\t\t\t\t<img src=\"\" alt=\"logo cirad\"/>
\t\t\t\t\t\t<p class=\"lead\">
\t\t\t\t\t\t\tEspace administration
\t\t\t\t\t\t</p>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t<div class=\"card-body\">
\t\t\t\t\t\t\t<div class=\"m-sm-4\">
\t\t\t\t\t\t\t\t<div class=\"text-center\">
\t\t\t\t\t\t\t\t\t<img src=\"img/avatars/avatar.jpg\" alt=\"Charles Hall\" class=\"img-fluid rounded-circle\" width=\"132\" height=\"132\"/>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<form action=\"{{ path('security_login') }}\" method=\"POST\">
\t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
\t\t\t\t\t\t\t\t\t\t<label class=\"form-label\">Nom d'utilisateur</label>
\t\t\t\t\t\t\t\t\t\t<input placeholder=\"Adresse e-mail\" type=\"text\" name=\"_username\" class=\"form-control form-control-lg\" required>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
\t\t\t\t\t\t\t\t\t\t<label class=\"form-label\">Password</label>
\t\t\t\t\t\t\t\t\t\t<input placeholder=\"Mot de passe\" type=\"password\" name=\"_password\" class=\"form-control form-control-lg\" required>
\t\t\t\t\t\t\t\t\t\t<small>
\t\t\t\t\t\t\t\t\t\t\t<a href=\"index.html\">Forgot password?</a>
\t\t\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<label class=\"form-check\">
\t\t\t\t\t\t\t\t\t\t\t<input class=\"form-check-input\" type=\"checkbox\" value=\"remember-me\" name=\"remember-me\" checked>
\t\t\t\t\t\t\t\t\t\t\t<span class=\"form-check-label\">
\t\t\t\t\t\t\t\t\t\t\t\tRemember me next time
\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"text-center mt-3\">
\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-lg btn-primary\">Sign in</button>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"_target_path\" value=\"{{ path('admin_index') }}\">
\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t{% if app.user %}
\t\t<div class=\"row\">
\t\t\t<div class=\"col text-center lead pb-3\">
\t\t\t\t<div class=\"alert alert-danger py-4 px-3\">Vous êtes déjà connecté(e) en tant que
\t\t\t\t\t{{ app.user.username }},
\t\t\t\t\t<a href=\"{{ path('security_logout') }}\">Déconnexion</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t{% endif %}
</div>{% endblock %}
", "security/login.html.twig", "/home/clients/750cffd053f851181de79c86d51438f1/sites/Cirad.dev-djaka.fr/templates/security/login.html.twig");
}
}