var/cache/dev/twig/67/67d595174e3ba40320eae1c999733b86.php line 44

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. /* contact/form.html.twig */
  16. class __TwigTemplate_a89027f114076ea2bcf3f92909a0416c 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. 'name' => [$this, 'block_name'],
  29. 'body' => [$this, 'block_body'],
  30. ];
  31. }
  32. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33. {
  34. // line 1
  35. return "layout/frontEndLayout.html.twig";
  36. }
  37. protected function doDisplay(array $context, array $blocks = []): iterable
  38. {
  39. $macros = $this->macros;
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "contact/form.html.twig"));
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "contact/form.html.twig"));
  44. $this->parent = $this->loadTemplate("layout/frontEndLayout.html.twig", "contact/form.html.twig", 1);
  45. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48. }
  49. // line 3
  50. /**
  51. * @return iterable<null|scalar|\Stringable>
  52. */
  53. public function block_name(array $context, array $blocks = []): iterable
  54. {
  55. $macros = $this->macros;
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name"));
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name"));
  60. yield " Bethesda Contact";
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  63. yield from [];
  64. }
  65. // line 5
  66. /**
  67. * @return iterable<null|scalar|\Stringable>
  68. */
  69. public function block_body(array $context, array $blocks = []): iterable
  70. {
  71. $macros = $this->macros;
  72. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  74. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  76. // line 6
  77. yield "
  78. \t
  79. \t<div class=\"all-title-box\">
  80. \t\t<div class=\"container text-center\">
  81. \t\t\t<h1>Contact<!--<span class=\"m_1\">Faire une correspondance a l̀administration de Bethesda</span>--></h1>
  82. \t\t</div>
  83. \t</div>
  84. \t
  85. <div id=\"contact\" class=\"section wb\">
  86. <div class=\"container\">
  87. <div class=\"section-title text-center\">
  88. <h3>Need Help? Sure we are Online!</h3>
  89. <p class=\"lead\">Do you have a valid email? If so, don't feel obligated to go to the school site to talk to the administration. <br></p>
  90. </div><!-- end title -->
  91. <div class=\"row\">
  92. <div class=\"col-xl-6 col-md-12 col-sm-12\">
  93. <div class=\"contact_form\">
  94. <div id=\"message\"></div>
  95. ";
  96. // line 25
  97. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 25, $this->source); })()), 'form_start');
  98. yield "
  99. <div class=\"row row-fluid mx-auto\">
  100. <div class=\"col-lg-8 col-md-8 col-sm-8\">
  101. ";
  102. // line 30
  103. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 30, $this->source); })()), "subject", [], "any", false, false, false, 30), 'row');
  104. yield "
  105. </div>
  106. </div>
  107. <div class=\"row row-fluid\">
  108. <div class=\"col-lg-12 col-md-12 col-sm-12\">
  109. ";
  110. // line 35
  111. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 35, $this->source); })()), "content", [], "any", false, false, false, 35), 'row');
  112. yield "
  113. </div>
  114. </div>
  115. ";
  116. // line 38
  117. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 38, $this->source); })()), 'rest');
  118. yield "
  119. <div class=\"text-center pd\">
  120. ";
  121. // line 40
  122. if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  123. // line 41
  124. yield " <button type=\"submit\" value=\"SEND\" id=\"submit\" class=\"btn btn-light btn-radius btn-brd grd1 btn-block\">Submit</button>
  125. ";
  126. } else {
  127. // line 43
  128. yield "
  129. <div class=\"col-sm-6 alert alert-warning text-center\" role=\"alert\">
  130. You must first login.<a class=\"alert-link btn\" href=\"";
  131. // line 45
  132. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  133. yield "\"> Sign In</a>
  134. </div>
  135. ";
  136. }
  137. // line 49
  138. yield " </div>
  139. </div>
  140. </form>
  141. </div>
  142. </div><!-- end col -->
  143. \t\t\t\t<div class=\"col-xl-6 col-md-12 col-sm-12\">
  144. \t\t\t\t\t<div class=\"map-box\">
  145. \t\t\t\t\t\t<div id=\"custom-places\" class=\"small-map\"></div>
  146. \t\t\t\t\t</div>
  147. \t\t\t\t</div>
  148. </div><!-- end row -->
  149. </div><!-- end container -->
  150. </div><!-- end section -->
  151. ";
  152. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  153. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  154. yield from [];
  155. }
  156. /**
  157. * @codeCoverageIgnore
  158. */
  159. public function getTemplateName(): string
  160. {
  161. return "contact/form.html.twig";
  162. }
  163. /**
  164. * @codeCoverageIgnore
  165. */
  166. public function isTraitable(): bool
  167. {
  168. return false;
  169. }
  170. /**
  171. * @codeCoverageIgnore
  172. */
  173. public function getDebugInfo(): array
  174. {
  175. return array ( 165 => 49, 158 => 45, 154 => 43, 150 => 41, 148 => 40, 143 => 38, 137 => 35, 129 => 30, 121 => 25, 100 => 6, 87 => 5, 64 => 3, 41 => 1,);
  176. }
  177. public function getSourceContext(): Source
  178. {
  179. return new Source("{% extends 'layout/frontEndLayout.html.twig' %}
  180. {% block name %} Bethesda Contact{% endblock %}
  181. {% block body %}
  182. \t
  183. \t<div class=\"all-title-box\">
  184. \t\t<div class=\"container text-center\">
  185. \t\t\t<h1>Contact<!--<span class=\"m_1\">Faire une correspondance a l̀administration de Bethesda</span>--></h1>
  186. \t\t</div>
  187. \t</div>
  188. \t
  189. <div id=\"contact\" class=\"section wb\">
  190. <div class=\"container\">
  191. <div class=\"section-title text-center\">
  192. <h3>Need Help? Sure we are Online!</h3>
  193. <p class=\"lead\">Do you have a valid email? If so, don't feel obligated to go to the school site to talk to the administration. <br></p>
  194. </div><!-- end title -->
  195. <div class=\"row\">
  196. <div class=\"col-xl-6 col-md-12 col-sm-12\">
  197. <div class=\"contact_form\">
  198. <div id=\"message\"></div>
  199. {{ form_start(form ) }}
  200. <div class=\"row row-fluid mx-auto\">
  201. <div class=\"col-lg-8 col-md-8 col-sm-8\">
  202. {{ form_row(form.subject) }}
  203. </div>
  204. </div>
  205. <div class=\"row row-fluid\">
  206. <div class=\"col-lg-12 col-md-12 col-sm-12\">
  207. {{ form_row(form.content) }}
  208. </div>
  209. </div>
  210. {{ form_rest(form) }}
  211. <div class=\"text-center pd\">
  212. {% if is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %}
  213. <button type=\"submit\" value=\"SEND\" id=\"submit\" class=\"btn btn-light btn-radius btn-brd grd1 btn-block\">Submit</button>
  214. {% else %}
  215. <div class=\"col-sm-6 alert alert-warning text-center\" role=\"alert\">
  216. You must first login.<a class=\"alert-link btn\" href=\"{{ path('app_login') }}\"> Sign In</a>
  217. </div>
  218. {% endif %}
  219. </div>
  220. </div>
  221. </form>
  222. </div>
  223. </div><!-- end col -->
  224. \t\t\t\t<div class=\"col-xl-6 col-md-12 col-sm-12\">
  225. \t\t\t\t\t<div class=\"map-box\">
  226. \t\t\t\t\t\t<div id=\"custom-places\" class=\"small-map\"></div>
  227. \t\t\t\t\t</div>
  228. \t\t\t\t</div>
  229. </div><!-- end row -->
  230. </div><!-- end container -->
  231. </div><!-- end section -->
  232. {% endblock %}
  233. ", "contact/form.html.twig", "/var/www/prod/liveedu/templates/contact/form.html.twig");
  234. }
  235. }