12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
-
- /* AcmeDemoBundle:Secured:login.html.twig */
- class __TwigTemplate_239976230025e177ec8cf43393571061 extends Twig_Template
- {
- protected $parent;
-
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
-
- $this->parent = array();
- $this->blocks = array(
- 'content' => array($this, 'block_content'),
- );
- }
-
- public function getParent(array $context)
- {
- $parent = "AcmeDemoBundle::layout.html.twig";
- if ($parent instanceof Twig_Template) {
- $name = $parent->getTemplateName();
- $this->parent[$name] = $parent;
- $parent = $name;
- } elseif (!isset($this->parent[$parent])) {
- $this->parent[$parent] = $this->env->loadTemplate($parent);
- }
-
- return $this->parent[$parent];
- }
-
- protected function doDisplay(array $context, array $blocks = array())
- {
- $context = array_merge($this->env->getGlobals(), $context);
-
- // line 29
- $context['code'] = $this->env->getExtension('demo')->getCode($this);
- $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
- }
-
- // line 3
- public function block_content($context, array $blocks = array())
- {
- // line 4
- echo " <h1>Login</h1>
-
- <p>
- Choose between two default users: <em>user/userpass</em> <small>(ROLE_USER)</small> or <em>admin/adminpass</em> <small>(ROLE_ADMIN)</small>
- </p>
-
- ";
- // line 10
- if ($this->getContext($context, 'error')) {
- // line 11
- echo " <div class=\"error\">";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'error'), "message", array(), "any", false), "html");
- echo "</div>
- ";
- }
- // line 13
- echo "
- <form action=\"";
- // line 14
- echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_security_check"), "html");
- echo "\" method=\"post\" id=\"login\">
- <div>
- <label for=\"username\">Username</label>
- <input type=\"text\" id=\"username\" name=\"_username\" value=\"";
- // line 17
- echo twig_escape_filter($this->env, $this->getContext($context, 'last_username'), "html");
- echo "\" />
- </div>
-
- <div>
- <label for=\"password\">Password</label>
- <input type=\"password\" id=\"password\" name=\"_password\" />
- </div>
-
- <input type=\"submit\" class=\"symfony-button-grey\" value=\"LOGIN\" />
- </form>
- ";
- }
-
- public function getTemplateName()
- {
- return "AcmeDemoBundle:Secured:login.html.twig";
- }
-
- public function isTraitable()
- {
- return false;
- }
- }
|