76230025e177ec8cf43393571061.php 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. /* AcmeDemoBundle:Secured:login.html.twig */
  3. class __TwigTemplate_239976230025e177ec8cf43393571061 extends Twig_Template
  4. {
  5. protected $parent;
  6. public function __construct(Twig_Environment $env)
  7. {
  8. parent::__construct($env);
  9. $this->parent = array();
  10. $this->blocks = array(
  11. 'content' => array($this, 'block_content'),
  12. );
  13. }
  14. public function getParent(array $context)
  15. {
  16. $parent = "AcmeDemoBundle::layout.html.twig";
  17. if ($parent instanceof Twig_Template) {
  18. $name = $parent->getTemplateName();
  19. $this->parent[$name] = $parent;
  20. $parent = $name;
  21. } elseif (!isset($this->parent[$parent])) {
  22. $this->parent[$parent] = $this->env->loadTemplate($parent);
  23. }
  24. return $this->parent[$parent];
  25. }
  26. protected function doDisplay(array $context, array $blocks = array())
  27. {
  28. $context = array_merge($this->env->getGlobals(), $context);
  29. // line 29
  30. $context['code'] = $this->env->getExtension('demo')->getCode($this);
  31. $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
  32. }
  33. // line 3
  34. public function block_content($context, array $blocks = array())
  35. {
  36. // line 4
  37. echo " <h1>Login</h1>
  38. <p>
  39. Choose between two default users: <em>user/userpass</em> <small>(ROLE_USER)</small> or <em>admin/adminpass</em> <small>(ROLE_ADMIN)</small>
  40. </p>
  41. ";
  42. // line 10
  43. if ($this->getContext($context, 'error')) {
  44. // line 11
  45. echo " <div class=\"error\">";
  46. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'error'), "message", array(), "any", false), "html");
  47. echo "</div>
  48. ";
  49. }
  50. // line 13
  51. echo "
  52. <form action=\"";
  53. // line 14
  54. echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_security_check"), "html");
  55. echo "\" method=\"post\" id=\"login\">
  56. <div>
  57. <label for=\"username\">Username</label>
  58. <input type=\"text\" id=\"username\" name=\"_username\" value=\"";
  59. // line 17
  60. echo twig_escape_filter($this->env, $this->getContext($context, 'last_username'), "html");
  61. echo "\" />
  62. </div>
  63. <div>
  64. <label for=\"password\">Password</label>
  65. <input type=\"password\" id=\"password\" name=\"_password\" />
  66. </div>
  67. <input type=\"submit\" class=\"symfony-button-grey\" value=\"LOGIN\" />
  68. </form>
  69. ";
  70. }
  71. public function getTemplateName()
  72. {
  73. return "AcmeDemoBundle:Secured:login.html.twig";
  74. }
  75. public function isTraitable()
  76. {
  77. return false;
  78. }
  79. }