123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <?php
-
- /* SensioDistributionBundle:Configurator/Step:secret.html.twig */
- class __TwigTemplate_ab1eb87999a8b0d73c254121aebbe3d7 extends Twig_Template
- {
- protected $parent;
-
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
-
- $this->parent = array();
- $this->blocks = array(
- 'title' => array($this, 'block_title'),
- 'content' => array($this, 'block_content'),
- );
- }
-
- public function getParent(array $context)
- {
- $parent = "SensioDistributionBundle::Configurator/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);
-
- $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
- }
-
- // line 3
- public function block_title($context, array $blocks = array())
- {
- echo "Symfony - Configure global Secret";
- }
-
- // line 5
- public function block_content($context, array $blocks = array())
- {
- // line 6
- echo " ";
- echo $this->env->getExtension('form')->setTheme($this->getContext($context, 'form'), array("SensioDistributionBundle::Configurator/form.html.twig", ));
- // line 7
- echo " ";
- $this->env->loadTemplate("SensioDistributionBundle::Configurator/steps.html.twig")->display(array_merge($context, array("index" => $this->getContext($context, 'index'), "count" => $this->getContext($context, 'count'))));
- // line 8
- echo "
- <h1>Global Secret</h1>
- <p>Configure the global secret for your website (the secret is used for the CSRF protection among other things):</p>
-
- ";
- // line 12
- echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form'));
- echo "
- <form action=\"";
- // line 13
- echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_configurator_step", array("index" => $this->getContext($context, 'index'))), "html");
- echo " \" method=\"POST\">
- <div class=\"symfony-form-row\">
- ";
- // line 15
- echo $this->env->getExtension('form')->renderLabel($this->getAttribute($this->getContext($context, 'form'), "secret", array(), "any", false));
- echo "
- <div class=\"symfony-form-field\">
- ";
- // line 17
- echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "secret", array(), "any", false));
- echo "
- <a class=\"symfony-button-grey\" href=\"#\" onclick=\"generateSecret(); return false;\">Generate</a>
- <div class=\"symfony-form-errors\">
- ";
- // line 20
- echo $this->env->getExtension('form')->renderErrors($this->getAttribute($this->getContext($context, 'form'), "secret", array(), "any", false));
- echo "
- </div>
- </div>
- </div>
-
- ";
- // line 25
- echo $this->env->getExtension('form')->renderRest($this->getContext($context, 'form'));
- echo "
-
- <div class=\"symfony-form-footer\">
- <p><input type=\"submit\" value=\"Next Step\" class=\"symfony-button-grey\" /></p>
- <p>* mandatory fields</p>
- </div>
-
- </form>
-
- <script type=\"text/javascript\">
- function generateSecret()
- {
- var result = '';
- for (i=0; i < 32; i++) {
- result += Math.round(Math.random()*16).toString(16);
- }
- document.getElementById('distributionbundle_secret_step_secret').value = result;
- }
- </script>
- ";
- }
-
- public function getTemplateName()
- {
- return "SensioDistributionBundle:Configurator/Step:secret.html.twig";
- }
-
- public function isTraitable()
- {
- return false;
- }
- }
|