var/cache/dev/twig/2b/2b1b488509aa7a072129d2a6a8de3061ab2b664a1ca522e732032306c79776b7.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. /* Security/login.html.twig */
  14. class __TwigTemplate_9482f1892dcf6eae6bc7ec37f7859a5a2eabe755db31bc5afbc885a2c15f80c2 extends \Twig\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 2
  29.         return "layout_public.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""Security/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""Security/login.html.twig"));
  38.         $this->parent $this->loadTemplate("layout_public.html.twig""Security/login.html.twig"2);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 4
  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 5
  54.         echo "    <div class=\"page\" id=\"security-login\">
  55.         <div class=\"login-content\">
  56.             <div class=\"LogoSecurity\">
  57.                 <img src=\"";
  58.         // line 9
  59.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/app/security/"), "html"nulltrue);
  60.         echo "munireg-finallogo.svg\" alt=\"\" >
  61.             </div>
  62.             ";
  63.         // line 12
  64.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'12$this->source); })())) {
  65.             // line 13
  66.             echo "                <div class=\"error\">The email/password combination is invalid.</div>
  67.             ";
  68.         }
  69.         // line 15
  70.         echo "
  71.             ";
  72.         // line 16
  73.         $context['_parent'] = $context;
  74.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_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.'16$this->source); })()), "session", [], "any"falsefalsefalse16), "flashbag", [], "any"falsefalsefalse16), "get", [=> "message_password"], "method"falsefalsefalse16));
  75.         foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  76.             // line 17
  77.             echo "                <div class=\"error\">";
  78.             echo twig_escape_filter($this->env$context["flashMessage"], "html"nulltrue);
  79.             echo "</div>
  80.             ";
  81.         }
  82.         $_parent $context['_parent'];
  83.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
  84.         $context array_intersect_key($context$_parent) + $_parent;
  85.         // line 19
  86.         echo "            ";
  87.         $context['_parent'] = $context;
  88.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_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.'19$this->source); })()), "session", [], "any"falsefalsefalse19), "flashbag", [], "any"falsefalsefalse19), "get", [=> "message_register"], "method"falsefalsefalse19));
  89.         foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  90.             // line 20
  91.             echo "                <div class=\"success\">";
  92.             echo twig_escape_filter($this->env$context["flashMessage"], "html"nulltrue);
  93.             echo "</div>
  94.             ";
  95.         }
  96.         $_parent $context['_parent'];
  97.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
  98.         $context array_intersect_key($context$_parent) + $_parent;
  99.         // line 22
  100.         echo "
  101.             <form action=\"";
  102.         // line 23
  103.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login_check");
  104.         echo "\" method=\"post\" class=\"form-security\">
  105.                 <div class=\"formItemsContainer\">
  106.                     <div>
  107.                         <label for=\"email\">Email</label>
  108.                         <input type=\"text\" id=\"email\" name=\"_email\" placeholder=\"johndoe3@gmail.com\" value=\"";
  109.         // line 27
  110.         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.'27$this->source); })()), "html"nulltrue);
  111.         echo "\">
  112.                     </div>
  113.                     <div>
  114.                         <label for=\"password\">Password</label>
  115.                         <input type=\"password\" id=\"password\" name=\"_password\">
  116.                     </div>
  117.                     <div class=\"forgot-pass\">
  118.                         <a href=\"";
  119.         // line 34
  120.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_reset_password");
  121.         echo "\">Forgot Password?</a>
  122.                     </div>
  123.                     <button type=\"submit\" class=\"btn-green\">Login</button>
  124.                 </div>
  125.                 <div class=\"create-account\">
  126.                     <label for=\"remember-me\">
  127.                         <input type=\"checkbox\" id=\"remember-me\" name=\"_remember_me\">
  128.                         <span>Remember me</span>
  129.                     </label>
  130.                     <span>First time?</span>
  131.                     <a href=\"";
  132.         // line 44
  133.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_registration_index");
  134.         echo "\">Create an account</a>
  135.                 </div>
  136.             </form>
  137.         </div>
  138.     </div>
  139. ";
  140.         
  141.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  142.         
  143.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  144.     }
  145.     public function getTemplateName()
  146.     {
  147.         return "Security/login.html.twig";
  148.     }
  149.     public function isTraitable()
  150.     {
  151.         return false;
  152.     }
  153.     public function getDebugInfo()
  154.     {
  155.         return array (  149 => 44,  136 => 34,  126 => 27,  119 => 23,  116 => 22,  107 => 20,  102 => 19,  93 => 17,  89 => 16,  86 => 15,  82 => 13,  80 => 12,  74 => 9,  68 => 5,  58 => 4,  35 => 2,);
  156.     }
  157.     public function getSourceContext()
  158.     {
  159.         return new Source("
  160. {% extends 'layout_public.html.twig' %}
  161. {% block content %}
  162.     <div class=\"page\" id=\"security-login\">
  163.         <div class=\"login-content\">
  164.             <div class=\"LogoSecurity\">
  165.                 <img src=\"{{ asset('images/app/security/') }}munireg-finallogo.svg\" alt=\"\" >
  166.             </div>
  167.             {% if error %}
  168.                 <div class=\"error\">The email/password combination is invalid.</div>
  169.             {% endif %}
  170.             {% for flashMessage in app.session.flashbag.get('message_password') %}
  171.                 <div class=\"error\">{{ flashMessage }}</div>
  172.             {% endfor %}
  173.             {% for flashMessage in app.session.flashbag.get('message_register') %}
  174.                 <div class=\"success\">{{ flashMessage }}</div>
  175.             {% endfor %}
  176.             <form action=\"{{ path('app_login_check') }}\" method=\"post\" class=\"form-security\">
  177.                 <div class=\"formItemsContainer\">
  178.                     <div>
  179.                         <label for=\"email\">Email</label>
  180.                         <input type=\"text\" id=\"email\" name=\"_email\" placeholder=\"johndoe3@gmail.com\" value=\"{{ last_username }}\">
  181.                     </div>
  182.                     <div>
  183.                         <label for=\"password\">Password</label>
  184.                         <input type=\"password\" id=\"password\" name=\"_password\">
  185.                     </div>
  186.                     <div class=\"forgot-pass\">
  187.                         <a href=\"{{ path('app_reset_password') }}\">Forgot Password?</a>
  188.                     </div>
  189.                     <button type=\"submit\" class=\"btn-green\">Login</button>
  190.                 </div>
  191.                 <div class=\"create-account\">
  192.                     <label for=\"remember-me\">
  193.                         <input type=\"checkbox\" id=\"remember-me\" name=\"_remember_me\">
  194.                         <span>Remember me</span>
  195.                     </label>
  196.                     <span>First time?</span>
  197.                     <a href=\"{{ path('app_registration_index')}}\">Create an account</a>
  198.                 </div>
  199.             </form>
  200.         </div>
  201.     </div>
  202. {% endblock %}
  203. ""Security/login.html.twig""/var/www/app-dev-munireg/templates/Security/login.html.twig");
  204.     }
  205. }