var/cache/dev/twig/f5/f571d907289ac791a1689a58d31db1d33ae0e8b9e5ba30a3ce19d71d25730a82.php line 38

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. /* auth/login.html.twig */
  14. class __TwigTemplate_438783529438233d34db382b280937ee1ea90dcc5ff711fd1e7863de7dca8d08 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.             'content' => [$this, 'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros = $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "auth/login.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "auth/login.html.twig"));
  38.         $this->parent = $this->loadTemplate("layout.html.twig", "auth/login.html.twig", 1);
  39.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros = $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  53.         // line 4
  54.         echo "
  55.     <main id=\"main\" role=\"main\">
  56.         <section id=\"connexion-page\" class=\"apk-connexion\">
  57.             <div class=\"uk-container apk-container-600\">
  58.                 <div class=\"uk-text-center\">
  59.                     <h1 class=\"uk-h2\">";
  60.         // line 9
  61.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Connexion"), "html", null, true);
  62.         echo "</h1>                            
  63.                 </div>
  64.                 <form class=\"uk-margin-medium-top\" method=\"POST\" action=\"";
  65.         // line 11
  66.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  67.         echo "\">
  68.                     ";
  69.         // line 13
  70.         if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 13, $this->source); })())) {
  71.             echo "   
  72.                                     
  73.                         <div class=\"uk-alert-danger uk-margin-bottom\" uk-alert>
  74.                             <a class=\"uk-alert-close\" uk-close></a>        
  75.                             ";
  76.             // line 17
  77.             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.', 17, $this->source); })()), "getMessage", [], "method", false, false, false, 17), "html", null, true);
  78.             echo "
  79.                             <div class=\"uk-margin-small-top apk-font-14\">
  80.                                 <a href=\"";
  81.             // line 19
  82.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ask_reset_password");
  83.             echo "\">
  84.                                     ";
  85.             // line 20
  86.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mot de passe oublié ? Cliquez-ici !"), "html", null, true);
  87.             echo "
  88.                                 </a>
  89.                             </div>
  90.                         </div>
  91.                     ";
  92.         }
  93.         // line 25
  94.         echo "
  95.                     ";
  96.         // line 26
  97.         if ((array_key_exists("message", $context) && (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 26, $this->source); })()))) {
  98.             // line 27
  99.             echo "
  100.                         <div class=\"uk-alert-danger uk-margin-bottom\" uk-alert>
  101.                             <a class=\"uk-alert-close\" uk-close></a>
  102.                             ";
  103.             // line 30
  104.             echo twig_escape_filter($this->env, (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 30, $this->source); })()), "html", null, true);
  105.             echo "
  106.                         </div>
  107.                     ";
  108.         }
  109.         // line 33
  110.         echo "
  111.                     <div>
  112.                         <label for=\"_username\">";
  113.         // line 35
  114.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Identifiant"), "html", null, true);
  115.         echo "</label>
  116.                         <input class=\"uk-input uk-margin-small-top\" type=\"text\" name=\"_username\" id=\"_username\"
  117.                             placeholder=\"";
  118.         // line 37
  119.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Identifiant"), "html", null, true);
  120.         echo "\">
  121.                     </div>
  122.                     <div class=\"uk-margin-top\">
  123.                         <label for=\"_password\">";
  124.         // line 40
  125.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mot de passe"), "html", null, true);
  126.         echo "</label>
  127.                         <input class=\"uk-input uk-margin-small-top\" type=\"password\" name=\"_password\" id=\"_password\"
  128.                             placeholder=\"";
  129.         // line 42
  130.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mot de passe"), "html", null, true);
  131.         echo "\">
  132.                     </div>
  133.                     <div class=\"uk-margin-small-top uk-margin-small-left apk-font-14\">
  134.                         <a href=\"";
  135.         // line 45
  136.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ask_reset_password");
  137.         echo "\">
  138.                             ";
  139.         // line 46
  140.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mot de passe oublié ?"), "html", null, true);
  141.         echo "
  142.                         </a>
  143.                     </div>
  144.                     <div class=\"uk-margin-medium-top uk-text-center\">
  145.                         ";
  146.         // line 50
  147.         if ((isset($context["_target_path"]) || array_key_exists("_target_path", $context) ? $context["_target_path"] : (function () { throw new RuntimeError('Variable "_target_path" does not exist.', 50, $this->source); })())) {
  148.             // line 51
  149.             echo "                            <input type=\"hidden\" name=\"_target_path\" value=\"";
  150.             echo twig_escape_filter($this->env, (isset($context["_target_path"]) || array_key_exists("_target_path", $context) ? $context["_target_path"] : (function () { throw new RuntimeError('Variable "_target_path" does not exist.', 51, $this->source); })()), "html", null, true);
  151.             echo "\">
  152.                         ";
  153.         }
  154.         // line 53
  155.         echo "                        <input class=\"uk-button uk-button-blue1 uk-button-large uk-text-uppercase\" type=\"submit\" name=\"_submit\" value=\"";
  156.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Connexion"), "html", null, true);
  157.         echo "\">
  158.                     </div>
  159.                     <div class=\"uk-margin-small-top uk-text-center\">
  160.                         <a href=\"";
  161.         // line 56
  162.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
  163.         echo "\">
  164.                             ";
  165.         // line 57
  166.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Inscription"), "html", null, true);
  167.         echo "
  168.                         </a>
  169.                     </div>
  170.                 </form>
  171.             </div>
  172.         </section>
  173.     </main><!-- end #main -->
  174.     
  175. ";
  176.         
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  178.         
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  180.     }
  181.     public function getTemplateName()
  182.     {
  183.         return "auth/login.html.twig";
  184.     }
  185.     public function isTraitable()
  186.     {
  187.         return false;
  188.     }
  189.     public function getDebugInfo()
  190.     {
  191.         return array (  181 => 57,  177 => 56,  170 => 53,  164 => 51,  162 => 50,  155 => 46,  151 => 45,  145 => 42,  140 => 40,  134 => 37,  129 => 35,  125 => 33,  119 => 30,  114 => 27,  112 => 26,  109 => 25,  101 => 20,  97 => 19,  92 => 17,  85 => 13,  80 => 11,  75 => 9,  68 => 4,  58 => 3,  35 => 1,);
  192.     }
  193.     public function getSourceContext()
  194.     {
  195.         return new Source("{% extends 'layout.html.twig' %}
  196. {% block content %}
  197.     <main id=\"main\" role=\"main\">
  198.         <section id=\"connexion-page\" class=\"apk-connexion\">
  199.             <div class=\"uk-container apk-container-600\">
  200.                 <div class=\"uk-text-center\">
  201.                     <h1 class=\"uk-h2\">{{'Connexion' |trans}}</h1>                            
  202.                 </div>
  203.                 <form class=\"uk-margin-medium-top\" method=\"POST\" action=\"{{path('login')}}\">
  204.                     {% if error %}   
  205.                                     
  206.                         <div class=\"uk-alert-danger uk-margin-bottom\" uk-alert>
  207.                             <a class=\"uk-alert-close\" uk-close></a>        
  208.                             {{error.getMessage()}}
  209.                             <div class=\"uk-margin-small-top apk-font-14\">
  210.                                 <a href=\"{{path(\"ask_reset_password\")}}\">
  211.                                     {{\"Mot de passe oublié ? Cliquez-ici !\" |trans}}
  212.                                 </a>
  213.                             </div>
  214.                         </div>
  215.                     {% endif %}
  216.                     {% if message is defined and message %}
  217.                         <div class=\"uk-alert-danger uk-margin-bottom\" uk-alert>
  218.                             <a class=\"uk-alert-close\" uk-close></a>
  219.                             {{message}}
  220.                         </div>
  221.                     {% endif %}
  222.                     <div>
  223.                         <label for=\"_username\">{{'Identifiant'|trans}}</label>
  224.                         <input class=\"uk-input uk-margin-small-top\" type=\"text\" name=\"_username\" id=\"_username\"
  225.                             placeholder=\"{{'Identifiant' |trans}}\">
  226.                     </div>
  227.                     <div class=\"uk-margin-top\">
  228.                         <label for=\"_password\">{{'Mot de passe'|trans}}</label>
  229.                         <input class=\"uk-input uk-margin-small-top\" type=\"password\" name=\"_password\" id=\"_password\"
  230.                             placeholder=\"{{'Mot de passe' |trans}}\">
  231.                     </div>
  232.                     <div class=\"uk-margin-small-top uk-margin-small-left apk-font-14\">
  233.                         <a href=\"{{path(\"ask_reset_password\")}}\">
  234.                             {{\"Mot de passe oublié ?\" |trans}}
  235.                         </a>
  236.                     </div>
  237.                     <div class=\"uk-margin-medium-top uk-text-center\">
  238.                         {% if _target_path %}
  239.                             <input type=\"hidden\" name=\"_target_path\" value=\"{{_target_path}}\">
  240.                         {% endif %}
  241.                         <input class=\"uk-button uk-button-blue1 uk-button-large uk-text-uppercase\" type=\"submit\" name=\"_submit\" value=\"{{'Connexion' | trans}}\">
  242.                     </div>
  243.                     <div class=\"uk-margin-small-top uk-text-center\">
  244.                         <a href=\"{{path(\"register\")}}\">
  245.                             {{\"Inscription\" | trans}}
  246.                         </a>
  247.                     </div>
  248.                 </form>
  249.             </div>
  250.         </section>
  251.     </main><!-- end #main -->
  252.     
  253. {%  endblock %}
  254. ", "auth/login.html.twig", "/var/www/mynursery.apik-pp.be/www/templates/auth/login.html.twig");
  255.     }
  256. }