e6783899e6dde43d0bd64e91f702.php 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. /* SensioDistributionBundle:Configurator/Step:doctrine.html.twig */
  3. class __TwigTemplate_6b10e6783899e6dde43d0bd64e91f702 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. 'title' => array($this, 'block_title'),
  12. 'content' => array($this, 'block_content'),
  13. );
  14. }
  15. public function getParent(array $context)
  16. {
  17. $parent = "SensioDistributionBundle::Configurator/layout.html.twig";
  18. if ($parent instanceof Twig_Template) {
  19. $name = $parent->getTemplateName();
  20. $this->parent[$name] = $parent;
  21. $parent = $name;
  22. } elseif (!isset($this->parent[$parent])) {
  23. $this->parent[$parent] = $this->env->loadTemplate($parent);
  24. }
  25. return $this->parent[$parent];
  26. }
  27. protected function doDisplay(array $context, array $blocks = array())
  28. {
  29. $context = array_merge($this->env->getGlobals(), $context);
  30. $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
  31. }
  32. // line 3
  33. public function block_title($context, array $blocks = array())
  34. {
  35. echo "Symfony - Configure database";
  36. }
  37. // line 5
  38. public function block_content($context, array $blocks = array())
  39. {
  40. // line 6
  41. echo " ";
  42. echo $this->env->getExtension('form')->setTheme($this->getContext($context, 'form'), array("SensioDistributionBundle::Configurator/form.html.twig", ));
  43. // line 7
  44. echo " ";
  45. $this->env->loadTemplate("SensioDistributionBundle::Configurator/steps.html.twig")->display(array_merge($context, array("index" => $this->getContext($context, 'index'), "count" => $this->getContext($context, 'count'))));
  46. // line 8
  47. echo "
  48. <h1>Configure your Database</h1>
  49. <p>If your website needs a database connection, please configure it here.</p>
  50. ";
  51. // line 12
  52. echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form'));
  53. echo "
  54. <form action=\"";
  55. // line 13
  56. echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_configurator_step", array("index" => $this->getContext($context, 'index'))), "html");
  57. echo "\" method=\"POST\">
  58. <div class=\"symfony-form-column\">
  59. ";
  60. // line 15
  61. echo $this->env->getExtension('form')->renderRow($this->getAttribute($this->getContext($context, 'form'), "driver", array(), "any", false));
  62. echo "
  63. ";
  64. // line 16
  65. echo $this->env->getExtension('form')->renderRow($this->getAttribute($this->getContext($context, 'form'), "host", array(), "any", false));
  66. echo "
  67. ";
  68. // line 17
  69. echo $this->env->getExtension('form')->renderRow($this->getAttribute($this->getContext($context, 'form'), "name", array(), "any", false));
  70. echo "
  71. </div>
  72. <div class=\"symfony-form-column\">
  73. ";
  74. // line 20
  75. echo $this->env->getExtension('form')->renderRow($this->getAttribute($this->getContext($context, 'form'), "user", array(), "any", false));
  76. echo "
  77. ";
  78. // line 21
  79. echo $this->env->getExtension('form')->renderRow($this->getAttribute($this->getContext($context, 'form'), "password", array(), "any", false));
  80. echo "
  81. </div>
  82. ";
  83. // line 24
  84. echo $this->env->getExtension('form')->renderRest($this->getContext($context, 'form'));
  85. echo "
  86. <div class=\"symfony-form-footer\">
  87. <p><input type=\"submit\" value=\"Next Step\" class=\"symfony-button-grey\" /></p>
  88. <p>* mandatory fields</p>
  89. </div>
  90. </form>
  91. ";
  92. }
  93. public function getTemplateName()
  94. {
  95. return "SensioDistributionBundle:Configurator/Step:doctrine.html.twig";
  96. }
  97. public function isTraitable()
  98. {
  99. return false;
  100. }
  101. }