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