var/cache/dev/twig/fd/fd41fa3f4a0f4d5a6ed698b40ce9a639c228294a9d2c96d5e604654c2173b9c7.php line 49

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_071af3ee18c29b3da490a55ab7c64155bbaf5aff7e0788466128261421ec13bf 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.             'title' => [$this, 'block_title'],
  24.             'body' => [$this, 'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros = $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  39.         $this->parent = $this->loadTemplate("base.html.twig", "security/login.html.twig", 1);
  40.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros = $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  54.         echo "Log in!
  55. ";
  56.         
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  58.         
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  60.     }
  61.     // line 6
  62.     public function block_body($context, array $blocks = [])
  63.     {
  64.         $macros = $this->macros;
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  69.         // line 7
  70.         echo "\t<div class=\"row\">
  71. \t\t<div class=\"col-sm-4\"></div>
  72. \t\t<div class=\"col-sm-4\">
  73. \t\t\t<form method=\"post\">
  74. \t\t\t\t";
  75.         // line 11
  76.         if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 11, $this->source); })())) {
  77.             // line 12
  78.             echo "\t\t\t\t\t<div class=\"alert alert-danger\">";
  79.             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.', 12, $this->source); })()), "messageKey", [], "any", false, false, false, 12), 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.', 12, $this->source); })()), "messageData", [], "any", false, false, false, 12), "security"), "html", null, true);
  80.             echo "</div>
  81. \t\t\t\t";
  82.         }
  83.         // line 14
  84.         echo "
  85. \t\t\t\t";
  86.         // line 15
  87.         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.', 15, $this->source); })()), "user", [], "any", false, false, false, 15)) {
  88.             // line 16
  89.             echo "\t\t\t\t\t<div class=\"mb-3\">
  90. \t\t\t\t\t\tYou are logged in as
  91. \t\t\t\t\t\t";
  92.             // line 18
  93.             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.', 18, $this->source); })()), "user", [], "any", false, false, false, 18), "username", [], "any", false, false, false, 18), "html", null, true);
  94.             echo ",
  95. \t\t\t\t\t\t<a href=\"";
  96.             // line 19
  97.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  98.             echo "\">Logout</a>
  99. \t\t\t\t\t</div>
  100. \t\t\t\t";
  101.         }
  102.         // line 22
  103.         echo "
  104. \t\t\t\t<h1 class=\"h3 mb-3 font-weight-normal\">Please sign in</h1>
  105. \t\t\t\t<label for=\"inputEmail\">Email</label>
  106. \t\t\t\t<input type=\"email\" value=\"";
  107.         // line 25
  108.         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.', 25, $this->source); })()), "html", null, true);
  109.         echo "\" name=\"email\" id=\"inputEmail\" class=\"form-control\" autocomplete=\"email\" required autofocus>
  110. \t\t\t\t<label for=\"inputPassword\">Password</label>
  111. \t\t\t\t<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  112. \t\t\t\t<input
  113. \t\t\t\ttype=\"hidden\" name=\"_csrf_token\" value=\"";
  114.         // line 30
  115.         echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
  116.         echo "\">
  117. \t\t\t\t";
  118.         // line 42
  119.         echo "
  120. \t\t\t\t<button class=\"btn btn-lg btn-primary mt-5\" type=\"submit\">
  121. \t\t\t\t\tSign in
  122. \t\t\t\t</button>
  123. \t\t\t</form>
  124. \t\t</div>
  125. \t</div>
  126. ";
  127.         
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  129.         
  130.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  131.     }
  132.     public function getTemplateName()
  133.     {
  134.         return "security/login.html.twig";
  135.     }
  136.     public function isTraitable()
  137.     {
  138.         return false;
  139.     }
  140.     public function getDebugInfo()
  141.     {
  142.         return array (  140 => 42,  135 => 30,  127 => 25,  122 => 22,  116 => 19,  112 => 18,  108 => 16,  106 => 15,  103 => 14,  97 => 12,  95 => 11,  89 => 7,  79 => 6,  59 => 3,  36 => 1,);
  143.     }
  144.     public function getSourceContext()
  145.     {
  146.         return new Source("{% extends 'base.html.twig' %}
  147. {% block title %}Log in!
  148. {% endblock %}
  149. {% block body %}
  150. \t<div class=\"row\">
  151. \t\t<div class=\"col-sm-4\"></div>
  152. \t\t<div class=\"col-sm-4\">
  153. \t\t\t<form method=\"post\">
  154. \t\t\t\t{% if error %}
  155. \t\t\t\t\t<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  156. \t\t\t\t{% endif %}
  157. \t\t\t\t{% if app.user %}
  158. \t\t\t\t\t<div class=\"mb-3\">
  159. \t\t\t\t\t\tYou are logged in as
  160. \t\t\t\t\t\t{{ app.user.username }},
  161. \t\t\t\t\t\t<a href=\"{{ path('app_logout') }}\">Logout</a>
  162. \t\t\t\t\t</div>
  163. \t\t\t\t{% endif %}
  164. \t\t\t\t<h1 class=\"h3 mb-3 font-weight-normal\">Please sign in</h1>
  165. \t\t\t\t<label for=\"inputEmail\">Email</label>
  166. \t\t\t\t<input type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\" class=\"form-control\" autocomplete=\"email\" required autofocus>
  167. \t\t\t\t<label for=\"inputPassword\">Password</label>
  168. \t\t\t\t<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  169. \t\t\t\t<input
  170. \t\t\t\ttype=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  171. \t\t\t\t{#
  172. \t\t\t\t\t\t\t        Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  173. \t\t\t\t\t\t\t        See https://symfony.com/doc/current/security/remember_me.html
  174. \t\t\t\t\t\t\t
  175. \t\t\t\t\t\t\t        <div class=\"checkbox mb-3\">
  176. \t\t\t\t\t\t\t            <label>
  177. \t\t\t\t\t\t\t                <input type=\"checkbox\" name=\"_remember_me\"> Remember me
  178. \t\t\t\t\t\t\t            </label>
  179. \t\t\t\t\t\t\t        </div>
  180. \t\t\t\t\t\t\t    #}
  181. \t\t\t\t<button class=\"btn btn-lg btn-primary mt-5\" type=\"submit\">
  182. \t\t\t\t\tSign in
  183. \t\t\t\t</button>
  184. \t\t\t</form>
  185. \t\t</div>
  186. \t</div>
  187. {% endblock %}
  188. ", "security/login.html.twig", "/home/capa5744/public_html/projetecommerce/e-com/templates/security/login.html.twig");
  189.     }
  190. }