var/cache/dev/twig/19/19f71941b40d5118d03e03f222fdc545.php line 48

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_1fb43ae9cc8258915736def3b29983ec 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.             'page_content' => [$this'block_page_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "layout/layout-content-only.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  38.         $this->parent $this->loadTemplate("layout/layout-content-only.html.twig""security/login.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 3
  46.     public function block_page_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content"));
  53.         // line 4
  54.         echo "
  55. \t<div class=\"container d-flex flex-column\">
  56. \t\t<div class=\"row vh-100\">
  57. \t\t\t<div class=\"col-sm-10 col-md-8 col-lg-6 mx-auto d-table h-100\">
  58. \t\t\t\t<div class=\"d-table-cell align-middle\">
  59. \t\t\t\t\t<div class=\"text-center mt-4\">
  60. \t\t\t\t\t\t<h1 class=\"h2\">Cirad</h1>
  61. \t\t\t\t\t\t<img src=\"\" alt=\"logo cirad\"/>
  62. \t\t\t\t\t\t<p class=\"lead\">
  63. \t\t\t\t\t\t\tEspace administration
  64. \t\t\t\t\t\t</p>
  65. \t\t\t\t\t</div>
  66. \t\t\t\t\t<div class=\"card\">
  67. \t\t\t\t\t\t<div class=\"card-body\">
  68. \t\t\t\t\t\t\t<div class=\"m-sm-4\">
  69. \t\t\t\t\t\t\t\t<div class=\"text-center\">
  70. \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\"/>
  71. \t\t\t\t\t\t\t\t</div>
  72. \t\t\t\t\t\t\t\t<form action=\"";
  73.         // line 24
  74.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("security_login");
  75.         echo "\" method=\"POST\">
  76. \t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
  77. \t\t\t\t\t\t\t\t\t\t<label class=\"form-label\">Nom d'utilisateur</label>
  78. \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>
  79. \t\t\t\t\t\t\t\t\t</div>
  80. \t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
  81. \t\t\t\t\t\t\t\t\t\t<label class=\"form-label\">Password</label>
  82. \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>
  83. \t\t\t\t\t\t\t\t\t\t<small>
  84. \t\t\t\t\t\t\t\t\t\t\t<a href=\"index.html\">Forgot password?</a>
  85. \t\t\t\t\t\t\t\t\t\t</small>
  86. \t\t\t\t\t\t\t\t\t</div>
  87. \t\t\t\t\t\t\t\t\t<div>
  88. \t\t\t\t\t\t\t\t\t\t<label class=\"form-check\">
  89. \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>
  90. \t\t\t\t\t\t\t\t\t\t\t<span class=\"form-check-label\">
  91. \t\t\t\t\t\t\t\t\t\t\t\tRemember me next time
  92. \t\t\t\t\t\t\t\t\t\t\t</span>
  93. \t\t\t\t\t\t\t\t\t\t</label>
  94. \t\t\t\t\t\t\t\t\t</div>
  95. \t\t\t\t\t\t\t\t\t<div class=\"text-center mt-3\">
  96. \t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-lg btn-primary\">Sign in</button>
  97. \t\t\t\t\t\t\t\t\t</div>
  98. \t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"_target_path\" value=\"";
  99.         // line 47
  100.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_index");
  101.         echo "\">
  102. \t\t\t\t\t\t\t\t</form>
  103. \t\t\t\t\t\t\t</div>
  104. \t\t\t\t\t\t</div>
  105. \t\t\t\t\t</div>
  106. \t\t\t\t</div>
  107. \t\t\t</div>
  108. \t\t</div>
  109. \t</div>
  110. \t";
  111.         // line 57
  112.         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"falsefalsefalse57)) {
  113.             // line 58
  114.             echo "\t\t<div class=\"row\">
  115. \t\t\t<div class=\"col text-center lead pb-3\">
  116. \t\t\t\t<div class=\"alert alert-danger py-4 px-3\">Vous êtes déjà connecté(e) en tant que
  117. \t\t\t\t\t";
  118.             // line 61
  119.             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.'61$this->source); })()), "user", [], "any"falsefalsefalse61), "username", [], "any"falsefalsefalse61), "html"nulltrue);
  120.             echo ",
  121. \t\t\t\t\t<a href=\"";
  122.             // line 62
  123.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("security_logout");
  124.             echo "\">Déconnexion</a>
  125. \t\t\t\t</div>
  126. \t\t\t</div>
  127. \t\t</div>
  128. \t";
  129.         }
  130.         // line 67
  131.         echo "</div>";
  132.         
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134.         
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136.     }
  137.     public function getTemplateName()
  138.     {
  139.         return "security/login.html.twig";
  140.     }
  141.     public function isTraitable()
  142.     {
  143.         return false;
  144.     }
  145.     public function getDebugInfo()
  146.     {
  147.         return array (  148 => 67,  140 => 62,  136 => 61,  131 => 58,  129 => 57,  116 => 47,  90 => 24,  68 => 4,  58 => 3,  35 => 1,);
  148.     }
  149.     public function getSourceContext()
  150.     {
  151.         return new Source("{% extends 'layout/layout-content-only.html.twig' %}
  152. {% block page_content %}
  153. \t<div class=\"container d-flex flex-column\">
  154. \t\t<div class=\"row vh-100\">
  155. \t\t\t<div class=\"col-sm-10 col-md-8 col-lg-6 mx-auto d-table h-100\">
  156. \t\t\t\t<div class=\"d-table-cell align-middle\">
  157. \t\t\t\t\t<div class=\"text-center mt-4\">
  158. \t\t\t\t\t\t<h1 class=\"h2\">Cirad</h1>
  159. \t\t\t\t\t\t<img src=\"\" alt=\"logo cirad\"/>
  160. \t\t\t\t\t\t<p class=\"lead\">
  161. \t\t\t\t\t\t\tEspace administration
  162. \t\t\t\t\t\t</p>
  163. \t\t\t\t\t</div>
  164. \t\t\t\t\t<div class=\"card\">
  165. \t\t\t\t\t\t<div class=\"card-body\">
  166. \t\t\t\t\t\t\t<div class=\"m-sm-4\">
  167. \t\t\t\t\t\t\t\t<div class=\"text-center\">
  168. \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\"/>
  169. \t\t\t\t\t\t\t\t</div>
  170. \t\t\t\t\t\t\t\t<form action=\"{{ path('security_login') }}\" method=\"POST\">
  171. \t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
  172. \t\t\t\t\t\t\t\t\t\t<label class=\"form-label\">Nom d'utilisateur</label>
  173. \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>
  174. \t\t\t\t\t\t\t\t\t</div>
  175. \t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
  176. \t\t\t\t\t\t\t\t\t\t<label class=\"form-label\">Password</label>
  177. \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>
  178. \t\t\t\t\t\t\t\t\t\t<small>
  179. \t\t\t\t\t\t\t\t\t\t\t<a href=\"index.html\">Forgot password?</a>
  180. \t\t\t\t\t\t\t\t\t\t</small>
  181. \t\t\t\t\t\t\t\t\t</div>
  182. \t\t\t\t\t\t\t\t\t<div>
  183. \t\t\t\t\t\t\t\t\t\t<label class=\"form-check\">
  184. \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>
  185. \t\t\t\t\t\t\t\t\t\t\t<span class=\"form-check-label\">
  186. \t\t\t\t\t\t\t\t\t\t\t\tRemember me next time
  187. \t\t\t\t\t\t\t\t\t\t\t</span>
  188. \t\t\t\t\t\t\t\t\t\t</label>
  189. \t\t\t\t\t\t\t\t\t</div>
  190. \t\t\t\t\t\t\t\t\t<div class=\"text-center mt-3\">
  191. \t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-lg btn-primary\">Sign in</button>
  192. \t\t\t\t\t\t\t\t\t</div>
  193. \t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"_target_path\" value=\"{{ path('admin_index') }}\">
  194. \t\t\t\t\t\t\t\t</form>
  195. \t\t\t\t\t\t\t</div>
  196. \t\t\t\t\t\t</div>
  197. \t\t\t\t\t</div>
  198. \t\t\t\t</div>
  199. \t\t\t</div>
  200. \t\t</div>
  201. \t</div>
  202. \t{% if app.user %}
  203. \t\t<div class=\"row\">
  204. \t\t\t<div class=\"col text-center lead pb-3\">
  205. \t\t\t\t<div class=\"alert alert-danger py-4 px-3\">Vous êtes déjà connecté(e) en tant que
  206. \t\t\t\t\t{{ app.user.username }},
  207. \t\t\t\t\t<a href=\"{{ path('security_logout') }}\">Déconnexion</a>
  208. \t\t\t\t</div>
  209. \t\t\t</div>
  210. \t\t</div>
  211. \t{% endif %}
  212. </div>{% endblock %}
  213. ""security/login.html.twig""/home/clients/750cffd053f851181de79c86d51438f1/sites/Cirad.dev-djaka.fr/templates/security/login.html.twig");
  214.     }
  215. }