var/cache/dev/twig/ce/ce5524ad037b00bf856e3166d1ca6fcbf34caa00264fd9e62b9500757640060d.php line 59

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. /* contact_us/index.html.twig */
  15. class __TwigTemplate_7521641f39331a9a603609b5fbe50aff736a98f3c1c50d41f7eef564adf5b5c2 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'stylesheets' => [$this'block_stylesheets'],
  25.             'content' => [$this'block_content'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 6
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""contact_us/index.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""contact_us/index.html.twig"));
  40.         // line 1
  41.         $context["body_classes"] = ["contact-us"];
  42.         // line 2
  43.         $context["title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact_us.title");
  44.         // line 3
  45.         $context["description"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact_us.description");
  46.         // line 4
  47.         $context["keywords"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact_us.keywords");
  48.         // line 6
  49.         $this->parent $this->loadTemplate("base.html.twig""contact_us/index.html.twig"6);
  50.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  53.         
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  55.     }
  56.     // line 8
  57.     public function block_stylesheets($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  64.         // line 9
  65.         yield "    ";
  66.         yield from $this->yieldParentBlock("stylesheets"$context$blocks);
  67.         yield "
  68.     ";
  69.         // line 10
  70.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("contact_us");
  71.         yield "
  72. ";
  73.         
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  75.         
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  77.         return; yield '';
  78.     }
  79.     // line 13
  80.     public function block_content($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  87.         // line 14
  88.         yield "    <main class=\"fade-in\">
  89.         <div class=\"container\">
  90.             <div class=\"contact-us-form-container\">
  91.                 <div class=\"description-wrapper\">
  92.                     <h3>";
  93.         // line 18
  94.         yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contacts_us.operator_title");
  95.         yield "</h3>
  96.                     <p>";
  97.         // line 19
  98.         yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contacts_us.operator_address");
  99.         yield "</p>
  100.                 </div>
  101.                 <div class=\"form-wrapper\" ";
  102.         // line 21
  103.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusController($this->env"send_contact", ["url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact_us_send")]);
  104.         yield ">
  105.                     <div class=\"title\">
  106.                         <h4>";
  107.         // line 23
  108.         yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contacts_us.form_title");
  109.         yield "</h4>
  110.                         <p>";
  111.         // line 24
  112.         yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contacts_us.form_description");
  113.         yield "</p>
  114.                     </div>
  115.                     ";
  116.         // line 26
  117.         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.'26$this->source); })()), 'form_start', ["attr" => ["data-action" => "submit->send-contact#onSend"]]);
  118.         // line 28
  119.         yield "
  120.                         <div class=\"field-wrapper\">
  121.                             ";
  122.         // line 30
  123.         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); })()), "name", [], "any"falsefalsefalse30), 'widget', ["attr" => ["data-action" => "focus->send-contact#onFocus"]]);
  124.         // line 32
  125.         yield "
  126.                         </div>
  127.                         <div class=\"field-wrapper\">
  128.                             ";
  129.         // line 35
  130.         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); })()), "email", [], "any"falsefalsefalse35), 'widget', ["attr" => ["data-action" => "focus->send-contact#onFocus"]]);
  131.         // line 37
  132.         yield "
  133.                         </div>
  134.                         <div class=\"field-wrapper\">
  135.                             ";
  136.         // line 40
  137.         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.'40$this->source); })()), "content", [], "any"falsefalsefalse40), 'widget', ["attr" => ["data-action" => "focus->send-contact#onFocus""data-send-contact-target" => "content"]]);
  138.         // line 43
  139.         yield "
  140.                         </div>
  141.                         ";
  142.         // line 48
  143.         yield "                        <div class=\"buttons-container\">
  144.                             ";
  145.         // line 49
  146.         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.'49$this->source); })()), "submit", [], "any"falsefalsefalse49), 'widget');
  147.         yield "
  148.                         </div>
  149.                     ";
  150.         // line 51
  151.         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.'51$this->source); })()), 'form_end');
  152.         yield "
  153.                 </div>
  154.             </div>
  155.         </div>
  156.     </main>
  157. ";
  158.         
  159.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  160.         
  161.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  162.         return; yield '';
  163.     }
  164.     /**
  165.      * @codeCoverageIgnore
  166.      */
  167.     public function getTemplateName()
  168.     {
  169.         return "contact_us/index.html.twig";
  170.     }
  171.     /**
  172.      * @codeCoverageIgnore
  173.      */
  174.     public function isTraitable()
  175.     {
  176.         return false;
  177.     }
  178.     /**
  179.      * @codeCoverageIgnore
  180.      */
  181.     public function getDebugInfo()
  182.     {
  183.         return array (  170 => 51,  165 => 49,  162 => 48,  158 => 43,  156 => 40,  151 => 37,  149 => 35,  144 => 32,  142 => 30,  138 => 28,  136 => 26,  131 => 24,  127 => 23,  122 => 21,  117 => 19,  113 => 18,  107 => 14,  97 => 13,  84 => 10,  79 => 9,  69 => 8,  58 => 6,  56 => 4,  54 => 3,  52 => 2,  50 => 1,  37 => 6,);
  184.     }
  185.     public function getSourceContext()
  186.     {
  187.         return new Source("{% set body_classes = ['contact-us'] %}
  188. {% set title = 'contact_us.title'|trans %}
  189. {% set description = 'contact_us.description'|trans %}
  190. {% set keywords = 'contact_us.keywords'|trans %}
  191. {% extends 'base.html.twig' %}
  192. {% block stylesheets %}
  193.     {{ parent() }}
  194.     {{ encore_entry_link_tags('contact_us') }}
  195. {% endblock stylesheets %}
  196. {% block content %}
  197.     <main class=\"fade-in\">
  198.         <div class=\"container\">
  199.             <div class=\"contact-us-form-container\">
  200.                 <div class=\"description-wrapper\">
  201.                     <h3>{{ 'contacts_us.operator_title'|trans|raw }}</h3>
  202.                     <p>{{ 'contacts_us.operator_address'|trans|raw }}</p>
  203.                 </div>
  204.                 <div class=\"form-wrapper\" {{ stimulus_controller('send_contact', {'url': path('contact_us_send')}) }}>
  205.                     <div class=\"title\">
  206.                         <h4>{{ 'contacts_us.form_title'|trans|raw }}</h4>
  207.                         <p>{{ 'contacts_us.form_description'|trans|raw }}</p>
  208.                     </div>
  209.                     {{ form_start(form, {'attr': {
  210.                         'data-action': 'submit->send-contact#onSend'
  211.                     }}) }}
  212.                         <div class=\"field-wrapper\">
  213.                             {{ form_widget(form.name, {'attr': {
  214.                                 'data-action': 'focus->send-contact#onFocus'
  215.                             }}) }}
  216.                         </div>
  217.                         <div class=\"field-wrapper\">
  218.                             {{ form_widget(form.email, {'attr': {
  219.                                 'data-action': 'focus->send-contact#onFocus'
  220.                             }}) }}
  221.                         </div>
  222.                         <div class=\"field-wrapper\">
  223.                             {{ form_widget(form.content, {'attr': {
  224.                                 'data-action': 'focus->send-contact#onFocus',
  225.                                 'data-send-contact-target': 'content'
  226.                             }}) }}
  227.                         </div>
  228.                         {#<div class=\"field-wrapper\">
  229.                             <img style=\"width: 15rem;\" src=\"/web/images/contact-us/captcha.gif\">
  230.                         </div>#}
  231.                         <div class=\"buttons-container\">
  232.                             {{ form_widget(form.submit) }}
  233.                         </div>
  234.                     {{ form_end(form) }}
  235.                 </div>
  236.             </div>
  237.         </div>
  238.     </main>
  239. {% endblock content %}""contact_us/index.html.twig""/var/www/brc_frontend_translation/templates/contact_us/index.html.twig");
  240.     }
  241. }