var/cache/dev/twig/a2/a22dcf8dbb8b591463c3ed0d44d2792a.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_ea7941e37b9de5c6b484b4fed834ddb0 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.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.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("base.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_body($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""body"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 4
  54.         echo "\t<div
  55. \t\tclass=\"login-box\">
  56. \t\t<!-- /.login-logo -->
  57. \t\t<div class=\"card\">
  58. \t\t\t<div class=\"login-logo\">
  59. \t\t\t\t<img src=\"/images/ge_logo.png\"/>
  60. \t\t\t</div>
  61. \t\t\t<div class=\"card-body login-card-body\">
  62. \t\t\t\t";
  63.         // line 13
  64.         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.'13$this->source); })()), "user", [], "any"falsefalsefalse13)) {
  65.             // line 14
  66.             echo "\t\t\t\t\t<p class=\"login-box-msg\">
  67. \t\t\t\t\t\tSign in to start your session
  68. \t\t\t\t\t</p>
  69. \t\t\t\t";
  70.         }
  71.         // line 18
  72.         echo "
  73. \t\t\t\t<form action=\"\" method=\"post\">
  74. \t\t\t\t\t";
  75.         // line 20
  76.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'20$this->source); })())) {
  77.             // line 21
  78.             echo "\t\t\t\t\t\t<div class=\"alert alert-danger\">
  79. \t\t\t\t\t\t\t";
  80.             // line 22
  81.             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.'22$this->source); })()), "messageKey", [], "any"falsefalsefalse22), 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.'22$this->source); })()), "messageData", [], "any"falsefalsefalse22), "security"), "html"nulltrue);
  82.             echo "
  83. \t\t\t\t\t\t</div>
  84. \t\t\t\t\t";
  85.         }
  86.         // line 25
  87.         echo "\t\t\t\t\t";
  88.         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.'25$this->source); })()), "user", [], "any"falsefalsefalse25)) {
  89.             // line 26
  90.             echo "\t\t\t\t\t\t<div class=\"mb-3 text-center\">
  91. \t\t\t\t\t\t\tYou are logged in as
  92. \t\t\t\t\t\t\t";
  93.             // line 28
  94.             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.'28$this->source); })()), "user", [], "any"falsefalsefalse28), "username", [], "any"falsefalsefalse28), "html"nulltrue);
  95.             echo "
  96. \t\t\t\t\t\t\t,
  97. \t\t\t\t\t\t\t<a href=\"";
  98.             // line 30
  99.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  100.             echo "\">
  101. \t\t\t\t\t\t\t\tLogout
  102. \t\t\t\t\t\t\t</a>
  103. \t\t\t\t\t\t</div>
  104. \t\t\t\t\t";
  105.         }
  106.         // line 35
  107.         echo "\t\t\t\t\t<div class=\"input-group mb-4\">
  108. \t\t\t\t\t\t<input id=\"inputEmail\" type=\"email\" class=\"form-control\" name=\"username\" value=\"";
  109.         // line 36
  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.'36$this->source); })()), "html"nulltrue);
  111.         echo "\" required autofocus/>
  112. \t\t\t\t\t\t<div class=\"input-group-append\">
  113. \t\t\t\t\t\t\t<div class=\"input-group-text\">
  114. \t\t\t\t\t\t\t\t<span class=\"fas fa-envelope\"></span>
  115. \t\t\t\t\t\t\t</div>
  116. \t\t\t\t\t\t</div>
  117. \t\t\t\t\t</div>
  118. \t\t\t\t\t<div class=\"input-group mb-4\">
  119. \t\t\t\t\t\t<input id=\"inputPassword\" type=\"password\" class=\"form-control\" name=\"password\" required/>
  120. \t\t\t\t\t\t<div class=\"input-group-append\">
  121. \t\t\t\t\t\t\t<div class=\"input-group-text\">
  122. \t\t\t\t\t\t\t\t<span class=\"fas fa-lock\"></span>
  123. \t\t\t\t\t\t\t</div>
  124. \t\t\t\t\t\t</div>
  125. \t\t\t\t\t</div>
  126. \t\t\t\t\t<div class=\"row\">
  127. \t\t\t\t\t\t<div class=\"col-8\">
  128. \t\t\t\t\t\t\t<div class=\"icheck-primary\">
  129. \t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"remember\">
  130. \t\t\t\t\t\t\t\t<label for=\"remember\">
  131. \t\t\t\t\t\t\t\t\tRemember Me
  132. \t\t\t\t\t\t\t\t</label>
  133. \t\t\t\t\t\t\t</div>
  134. \t\t\t\t\t\t</div>
  135. \t\t\t\t\t\t<!-- /.col -->
  136. \t\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"";
  137.         // line 61
  138.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  139.         echo "\"/>
  140. \t\t\t\t\t\t<div class=\"col-4\">
  141. \t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary btn-block\">
  142. \t\t\t\t\t\t\t\tSign In
  143. \t\t\t\t\t\t\t</button>
  144. \t\t\t\t\t\t</div>
  145. \t\t\t\t\t\t<!-- /.col -->
  146. \t\t\t\t\t</div>
  147. \t\t\t\t</form>
  148. \t\t\t\t<p class=\"mt-4 mb-1 text-right\">
  149. \t\t\t\t\t<a href=\"/reset-password\">
  150. \t\t\t\t\t\tI forgot my password
  151. \t\t\t\t\t</a>
  152. \t\t\t\t</p>
  153. \t\t\t\t";
  154.         // line 81
  155.         echo "\t\t\t</div>
  156. \t\t\t<!-- /.login-card-body -->
  157. \t\t\t<div class=\"login-footer\">
  158. \t\t\t\t";
  159.         // line 87
  160.         echo "\t\t\t\t<div class=\"text-center\">
  161. \t\t\t\t\tCopyright &copy; MC Commercial Inc. All Rights Reserved.
  162. \t\t\t\t</div>
  163. \t\t\t</div>
  164. \t\t</div>
  165. \t</div>
  166. ";
  167.         
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169.         
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  171.     }
  172.     public function getTemplateName()
  173.     {
  174.         return "security/login.html.twig";
  175.     }
  176.     public function isTraitable()
  177.     {
  178.         return false;
  179.     }
  180.     public function getDebugInfo()
  181.     {
  182.         return array (  176 => 87,  171 => 81,  153 => 61,  125 => 36,  122 => 35,  114 => 30,  109 => 28,  105 => 26,  102 => 25,  96 => 22,  93 => 21,  91 => 20,  87 => 18,  81 => 14,  79 => 13,  68 => 4,  58 => 3,  35 => 1,);
  183.     }
  184.     public function getSourceContext()
  185.     {
  186.         return new Source("{% extends \"base.html.twig\" %}
  187. {% block body %}
  188. \t<div
  189. \t\tclass=\"login-box\">
  190. \t\t<!-- /.login-logo -->
  191. \t\t<div class=\"card\">
  192. \t\t\t<div class=\"login-logo\">
  193. \t\t\t\t<img src=\"/images/ge_logo.png\"/>
  194. \t\t\t</div>
  195. \t\t\t<div class=\"card-body login-card-body\">
  196. \t\t\t\t{% if not app.user %}
  197. \t\t\t\t\t<p class=\"login-box-msg\">
  198. \t\t\t\t\t\tSign in to start your session
  199. \t\t\t\t\t</p>
  200. \t\t\t\t{% endif %}
  201. \t\t\t\t<form action=\"\" method=\"post\">
  202. \t\t\t\t\t{% if error %}
  203. \t\t\t\t\t\t<div class=\"alert alert-danger\">
  204. \t\t\t\t\t\t\t{{ error.messageKey|trans(error.messageData, 'security') }}
  205. \t\t\t\t\t\t</div>
  206. \t\t\t\t\t{% endif %}
  207. \t\t\t\t\t{% if app.user %}
  208. \t\t\t\t\t\t<div class=\"mb-3 text-center\">
  209. \t\t\t\t\t\t\tYou are logged in as
  210. \t\t\t\t\t\t\t{{ app.user.username }}
  211. \t\t\t\t\t\t\t,
  212. \t\t\t\t\t\t\t<a href=\"{{ path('app_logout') }}\">
  213. \t\t\t\t\t\t\t\tLogout
  214. \t\t\t\t\t\t\t</a>
  215. \t\t\t\t\t\t</div>
  216. \t\t\t\t\t{% endif %}
  217. \t\t\t\t\t<div class=\"input-group mb-4\">
  218. \t\t\t\t\t\t<input id=\"inputEmail\" type=\"email\" class=\"form-control\" name=\"username\" value=\"{{ last_username }}\" required autofocus/>
  219. \t\t\t\t\t\t<div class=\"input-group-append\">
  220. \t\t\t\t\t\t\t<div class=\"input-group-text\">
  221. \t\t\t\t\t\t\t\t<span class=\"fas fa-envelope\"></span>
  222. \t\t\t\t\t\t\t</div>
  223. \t\t\t\t\t\t</div>
  224. \t\t\t\t\t</div>
  225. \t\t\t\t\t<div class=\"input-group mb-4\">
  226. \t\t\t\t\t\t<input id=\"inputPassword\" type=\"password\" class=\"form-control\" name=\"password\" required/>
  227. \t\t\t\t\t\t<div class=\"input-group-append\">
  228. \t\t\t\t\t\t\t<div class=\"input-group-text\">
  229. \t\t\t\t\t\t\t\t<span class=\"fas fa-lock\"></span>
  230. \t\t\t\t\t\t\t</div>
  231. \t\t\t\t\t\t</div>
  232. \t\t\t\t\t</div>
  233. \t\t\t\t\t<div class=\"row\">
  234. \t\t\t\t\t\t<div class=\"col-8\">
  235. \t\t\t\t\t\t\t<div class=\"icheck-primary\">
  236. \t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"remember\">
  237. \t\t\t\t\t\t\t\t<label for=\"remember\">
  238. \t\t\t\t\t\t\t\t\tRemember Me
  239. \t\t\t\t\t\t\t\t</label>
  240. \t\t\t\t\t\t\t</div>
  241. \t\t\t\t\t\t</div>
  242. \t\t\t\t\t\t<!-- /.col -->
  243. \t\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\"/>
  244. \t\t\t\t\t\t<div class=\"col-4\">
  245. \t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary btn-block\">
  246. \t\t\t\t\t\t\t\tSign In
  247. \t\t\t\t\t\t\t</button>
  248. \t\t\t\t\t\t</div>
  249. \t\t\t\t\t\t<!-- /.col -->
  250. \t\t\t\t\t</div>
  251. \t\t\t\t</form>
  252. \t\t\t\t<p class=\"mt-4 mb-1 text-right\">
  253. \t\t\t\t\t<a href=\"/reset-password\">
  254. \t\t\t\t\t\tI forgot my password
  255. \t\t\t\t\t</a>
  256. \t\t\t\t</p>
  257. \t\t\t\t{#<p class=\"mb-0 text-right\">
  258. \t\t\t\t\t<a href=\"register.html\" class=\"text-center\">
  259. \t\t\t\t\t\tDon’t have an account? Sign up
  260. \t\t\t\t\t</a>
  261. \t\t\t\t</p>#}
  262. \t\t\t</div>
  263. \t\t\t<!-- /.login-card-body -->
  264. \t\t\t<div class=\"login-footer\">
  265. \t\t\t\t{#<div class=\"text-center\">
  266. \t\t\t\t\tTerm of Service | Privacy Policy
  267. \t\t\t\t</div>#}
  268. \t\t\t\t<div class=\"text-center\">
  269. \t\t\t\t\tCopyright &copy; MC Commercial Inc. All Rights Reserved.
  270. \t\t\t\t</div>
  271. \t\t\t</div>
  272. \t\t</div>
  273. \t</div>
  274. {% endblock %}
  275. ""security/login.html.twig""/app/templates/security/login.html.twig");
  276.     }
  277. }