<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* contact/form.html.twig */
class __TwigTemplate_5e025655c4c90cf3464b836630734bec extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'name' => [$this, 'block_name'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout/frontEndLayout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "contact/form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "contact/form.html.twig"));
$this->parent = $this->loadTemplate("layout/frontEndLayout.html.twig", "contact/form.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_name(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name"));
yield " Bethesda Contact";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
yield "
\t
\t<div class=\"all-title-box\">
\t\t<div class=\"container text-center\">
\t\t\t<h1>Contact<!--<span class=\"m_1\">Faire une correspondance a l̀administration de Bethesda</span>--></h1>
\t\t</div>
\t</div>
\t
<div id=\"contact\" class=\"section wb\">
<div class=\"container\">
<div class=\"section-title text-center\">
<h3>Need Help? Sure we are Online!</h3>
<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>
</div><!-- end title -->
<div class=\"row\">
<div class=\"col-xl-6 col-md-12 col-sm-12\">
<div class=\"contact_form\">
<div id=\"message\"></div>
";
// line 25
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');
yield "
<div class=\"row row-fluid mx-auto\">
<div class=\"col-lg-8 col-md-8 col-sm-8\">
";
// line 30
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');
yield "
</div>
</div>
<div class=\"row row-fluid\">
<div class=\"col-lg-12 col-md-12 col-sm-12\">
";
// line 35
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');
yield "
</div>
</div>
";
// line 38
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');
yield "
<div class=\"text-center pd\">
";
// line 40
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 41
yield " <button type=\"submit\" value=\"SEND\" id=\"submit\" class=\"btn btn-light btn-radius btn-brd grd1 btn-block\">Submit</button>
";
} else {
// line 43
yield "
<div class=\"col-sm-6 alert alert-warning text-center\" role=\"alert\">
You must first login.<a class=\"alert-link btn\" href=\"";
// line 45
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
yield "\"> Sign In</a>
</div>
";
}
// line 49
yield " </div>
</div>
</form>
</div>
</div><!-- end col -->
\t\t\t\t<div class=\"col-xl-6 col-md-12 col-sm-12\">
\t\t\t\t\t<div class=\"map-box\">
\t\t\t\t\t\t<div id=\"custom-places\" class=\"small-map\"></div>
\t\t\t\t\t</div>
\t\t\t\t</div>
</div><!-- end row -->
</div><!-- end container -->
</div><!-- end section -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "contact/form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'layout/frontEndLayout.html.twig' %}
{% block name %} Bethesda Contact{% endblock %}
{% block body %}
\t
\t<div class=\"all-title-box\">
\t\t<div class=\"container text-center\">
\t\t\t<h1>Contact<!--<span class=\"m_1\">Faire une correspondance a l̀administration de Bethesda</span>--></h1>
\t\t</div>
\t</div>
\t
<div id=\"contact\" class=\"section wb\">
<div class=\"container\">
<div class=\"section-title text-center\">
<h3>Need Help? Sure we are Online!</h3>
<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>
</div><!-- end title -->
<div class=\"row\">
<div class=\"col-xl-6 col-md-12 col-sm-12\">
<div class=\"contact_form\">
<div id=\"message\"></div>
{{ form_start(form ) }}
<div class=\"row row-fluid mx-auto\">
<div class=\"col-lg-8 col-md-8 col-sm-8\">
{{ form_row(form.subject) }}
</div>
</div>
<div class=\"row row-fluid\">
<div class=\"col-lg-12 col-md-12 col-sm-12\">
{{ form_row(form.content) }}
</div>
</div>
{{ form_rest(form) }}
<div class=\"text-center pd\">
{% if is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %}
<button type=\"submit\" value=\"SEND\" id=\"submit\" class=\"btn btn-light btn-radius btn-brd grd1 btn-block\">Submit</button>
{% else %}
<div class=\"col-sm-6 alert alert-warning text-center\" role=\"alert\">
You must first login.<a class=\"alert-link btn\" href=\"{{ path('app_login') }}\"> Sign In</a>
</div>
{% endif %}
</div>
</div>
</form>
</div>
</div><!-- end col -->
\t\t\t\t<div class=\"col-xl-6 col-md-12 col-sm-12\">
\t\t\t\t\t<div class=\"map-box\">
\t\t\t\t\t\t<div id=\"custom-places\" class=\"small-map\"></div>
\t\t\t\t\t</div>
\t\t\t\t</div>
</div><!-- end row -->
</div><!-- end container -->
</div><!-- end section -->
{% endblock %}
", "contact/form.html.twig", "/var/www/prod/current/templates/contact/form.html.twig");
}
}