var/cache/website/dev/twig/8e/8e64b827614264cc271035571d653c12.php line 53

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* forms/form.html.twig */
  16. class __TwigTemplate_8c94791cdf83675ad277eb9845581f0b extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'content' => [$this, 'block_content'],
  29. ];
  30. }
  31. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32. {
  33. // line 1
  34. return "base.html.twig";
  35. }
  36. protected function doDisplay(array $context, array $blocks = []): iterable
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "forms/form.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "forms/form.html.twig"));
  43. $this->parent = $this->load("base.html.twig", 1);
  44. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47. }
  48. // line 2
  49. /**
  50. * @return iterable<null|scalar|\Stringable>
  51. */
  52. public function block_content(array $context, array $blocks = []): iterable
  53. {
  54. $macros = $this->macros;
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  59. // line 3
  60. yield " <main id=\"main\" class=\"main-shifted-right-form\">
  61. <section id=\"about\" class=\"about\">
  62. <div class=\"container\" id=\"formContainer\">
  63. ";
  64. // line 7
  65. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 7, $this->source); })()), "form", [], "any", false, false, false, 7)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  66. // line 8
  67. yield " ";
  68. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "get", ["send"], "method", false, false, false, 8) != "true")) {
  69. // line 9
  70. yield " ";
  71. $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 9, $this->source); })()), "form", [], "any", false, false, false, 9), ["forms/theme.html.twig"], true);
  72. // line 10
  73. yield " ";
  74. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 10, $this->source); })()), "form", [], "any", false, false, false, 10), 'form');
  75. yield "
  76. ";
  77. } else {
  78. // line 12
  79. yield " <div class=\"section-title\" style=\"width: 80%\">
  80. <h1 style=\"font-family: Teko, sans-serif; font-size: 50px; letter-spacing: 1.3px; line-height: 1\">Ihre Nachricht wurde erfolgreich versandt. Sie erhalten eine Bestätigung via Mail.</h1>
  81. </div>
  82. ";
  83. }
  84. // line 17
  85. yield " ";
  86. }
  87. // line 18
  88. yield " </div>
  89. </section>
  90. </main>
  91. ";
  92. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  93. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94. yield from [];
  95. }
  96. /**
  97. * @codeCoverageIgnore
  98. */
  99. public function getTemplateName(): string
  100. {
  101. return "forms/form.html.twig";
  102. }
  103. /**
  104. * @codeCoverageIgnore
  105. */
  106. public function isTraitable(): bool
  107. {
  108. return false;
  109. }
  110. /**
  111. * @codeCoverageIgnore
  112. */
  113. public function getDebugInfo(): array
  114. {
  115. return array ( 106 => 18, 103 => 17, 96 => 12, 90 => 10, 87 => 9, 84 => 8, 82 => 7, 76 => 3, 63 => 2, 40 => 1,);
  116. }
  117. public function getSourceContext(): Source
  118. {
  119. return new Source("{% extends \"base.html.twig\" %}
  120. {% block content %}
  121. <main id=\"main\" class=\"main-shifted-right-form\">
  122. <section id=\"about\" class=\"about\">
  123. <div class=\"container\" id=\"formContainer\">
  124. {% if content.form %}
  125. {% if app.request.get('send') != 'true' %}
  126. {% form_theme content.form 'forms/theme.html.twig' %}
  127. {{ form(content.form) }}
  128. {% else %}
  129. <div class=\"section-title\" style=\"width: 80%\">
  130. <h1 style=\"font-family: Teko, sans-serif; font-size: 50px; letter-spacing: 1.3px; line-height: 1\">Ihre Nachricht wurde erfolgreich versandt. Sie erhalten eine Bestätigung via Mail.</h1>
  131. </div>
  132. {% endif %}
  133. {% endif %}
  134. </div>
  135. </section>
  136. </main>
  137. {% endblock %}
  138. ", "forms/form.html.twig", "/www/htdocs/w00cd56a/prod_theatertotal/theatertotal_sulu_update/templates/forms/form.html.twig");
  139. }
  140. }