var/cache/dev/twig/c6/c63ea4ec035b8845ca71ade8e5d5c988a352ed6dafb7bdade8bc0d1aeb8038d4.php line 49

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. /* security/create_user.html.twig */
  15. class __TwigTemplate_079c60c105b9b403331e5b952aed24aa4e57bb71f9130a81305a0ac6f8962913 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.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/create_user.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/create_user.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""security/create_user.html.twig"1);
  40.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_body($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  54.         // line 4
  55.         yield "    <div class=\"row\">
  56.         <div class=\"col-md-12 grid-margin stretch-card\">
  57.             <div class=\"card\">
  58.                 <div class=\"card-body\">
  59.                     <h4 class=\"card-title\">";
  60.         // line 8
  61.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("User", [], "general"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse8), "get", ["lang"], "method"falsefalsefalse8)), "html"nulltrue);
  62.         yield "</h4>
  63.                     <p class=\"card-description\">
  64.                         ";
  65.         // line 10
  66.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Create user", [], "general"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'10$this->source); })()), "request", [], "any"falsefalsefalse10), "get", ["lang"], "method"falsefalsefalse10)), "html"nulltrue);
  67.         yield "
  68.                     </p>
  69.                     ";
  70.         // line 12
  71.         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.'12$this->source); })()), 'form_start');
  72.         yield "
  73.                     <div class=\"row\">
  74.                         <div class=\"col\">
  75.                             ";
  76.         // line 15
  77.         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.'15$this->source); })()), "name", [], "any"falsefalsefalse15), 'row', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Name", [], "general"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'15$this->source); })()), "request", [], "any"falsefalsefalse15), "get", ["lang"], "method"falsefalsefalse15))]]);
  78.         yield "
  79.                         </div>
  80.                         <div class=\"col\">
  81.                             ";
  82.         // line 18
  83.         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.'18$this->source); })()), "surname", [], "any"falsefalsefalse18), 'row', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Surname", [], "general"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'18$this->source); })()), "request", [], "any"falsefalsefalse18), "get", ["lang"], "method"falsefalsefalse18))]]);
  84.         yield "
  85.                         </div>
  86.                     </div>
  87.                     <div class=\"row\">
  88.                         <div class=\"col\">
  89.                             ";
  90.         // line 23
  91.         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.'23$this->source); })()), "email", [], "any"falsefalsefalse23), 'row', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email", [], "general"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'23$this->source); })()), "request", [], "any"falsefalsefalse23), "get", ["lang"], "method"falsefalsefalse23))]]);
  92.         yield "
  93.                         </div>
  94.                         <div class=\"col\">
  95.                             ";
  96.         // line 26
  97.         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.'26$this->source); })()), "country", [], "any"falsefalsefalse26), 'row', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Country", [], "general"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'26$this->source); })()), "request", [], "any"falsefalsefalse26), "get", ["lang"], "method"falsefalsefalse26))]]);
  98.         yield "
  99.                         </div>
  100.                     </div>
  101.                     <div class=\"row\">
  102.                         <div class=\"col\">
  103.                             ";
  104.         // line 31
  105.         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.'31$this->source); })()), "gender", [], "any"falsefalsefalse31), 'row', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Gender", [], "general"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'31$this->source); })()), "request", [], "any"falsefalsefalse31), "get", ["lang"], "method"falsefalsefalse31))]]);
  106.         yield "
  107.                         </div>
  108.                         <div class=\"col\">
  109.                             ";
  110.         // line 34
  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.'34$this->source); })()), "age", [], "any"falsefalsefalse34), 'row', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Age", [], "general"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'34$this->source); })()), "request", [], "any"falsefalsefalse34), "get", ["lang"], "method"falsefalsefalse34))]]);
  112.         yield "
  113.                         </div>
  114.                     </div>
  115.                     <div class=\"row\">
  116.                         <div class=\"col\">
  117.                             <div class=\"form-group d-flex align-items-center\" style=\"padding-left: calc(var(--bs-gutter-x)* .9);\">
  118.                                 ";
  119.         // line 40
  120.         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); })()), "accettaGDPR", [], "any"falsefalsefalse40), 'widget', ["required" => true]);
  121.         yield "
  122.                                 <a href=\"#\" target=\"_blank\">";
  123.         // line 41
  124.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("I agree to GDPR terms", [], "general"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'41$this->source); })()), "request", [], "any"falsefalsefalse41), "get", ["lang"], "method"falsefalsefalse41)), "html"nulltrue);
  125.         yield "</a>
  126.                                 ";
  127.         // line 42
  128.         if ($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.'42$this->source); })()), "accettaGDPR", [], "any"falsefalsefalse42), 'errors')) {
  129.             // line 43
  130.             yield "                                    <div class=\"invalid-feedback\">
  131.                                         ";
  132.             // line 44
  133.             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.'44$this->source); })()), "accettaGDPR", [], "any"falsefalsefalse44), 'errors');
  134.             yield "
  135.                                     </div>
  136.                                 ";
  137.         }
  138.         // line 47
  139.         yield "                            </div>
  140.                         </div>
  141.                     </div>
  142.                     <button type=\"submit\" class=\"btn btn-primary me-2\">Create</button>
  143.                     ";
  144.         // line 52
  145.         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.'52$this->source); })()), 'form_end');
  146.         yield "
  147.                 </div>
  148.             </div>
  149.         </div>
  150.     </div>
  151. ";
  152.         
  153.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  154.         
  155.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  156.         return; yield '';
  157.     }
  158.     /**
  159.      * @codeCoverageIgnore
  160.      */
  161.     public function getTemplateName()
  162.     {
  163.         return "security/create_user.html.twig";
  164.     }
  165.     /**
  166.      * @codeCoverageIgnore
  167.      */
  168.     public function isTraitable()
  169.     {
  170.         return false;
  171.     }
  172.     /**
  173.      * @codeCoverageIgnore
  174.      */
  175.     public function getDebugInfo()
  176.     {
  177.         return array (  160 => 52,  153 => 47,  147 => 44,  144 => 43,  142 => 42,  138 => 41,  134 => 40,  125 => 34,  119 => 31,  111 => 26,  105 => 23,  97 => 18,  91 => 15,  85 => 12,  80 => 10,  75 => 8,  69 => 4,  59 => 3,  36 => 1,);
  178.     }
  179.     public function getSourceContext()
  180.     {
  181.         return new Source("{% extends 'base.html.twig' %}
  182. {% block body %}
  183.     <div class=\"row\">
  184.         <div class=\"col-md-12 grid-margin stretch-card\">
  185.             <div class=\"card\">
  186.                 <div class=\"card-body\">
  187.                     <h4 class=\"card-title\">{{ 'User'|trans({}, 'general', app.request.get('lang')) }}</h4>
  188.                     <p class=\"card-description\">
  189.                         {{ 'Create user'|trans({}, 'general', app.request.get('lang')) }}
  190.                     </p>
  191.                     {{ form_start(form) }}
  192.                     <div class=\"row\">
  193.                         <div class=\"col\">
  194.                             {{ form_row(form.name, {'attr': {'placeholder': 'Name'|trans({}, 'general', app.request.get('lang')) }}) }}
  195.                         </div>
  196.                         <div class=\"col\">
  197.                             {{ form_row(form.surname, {'attr': {'placeholder': 'Surname'|trans({}, 'general', app.request.get('lang')) }}) }}
  198.                         </div>
  199.                     </div>
  200.                     <div class=\"row\">
  201.                         <div class=\"col\">
  202.                             {{ form_row(form.email, {'attr': {'placeholder': 'Email'|trans({}, 'general', app.request.get('lang')) }}) }}
  203.                         </div>
  204.                         <div class=\"col\">
  205.                             {{ form_row(form.country, {'attr': {'placeholder': 'Country'|trans({}, 'general', app.request.get('lang')) }}) }}
  206.                         </div>
  207.                     </div>
  208.                     <div class=\"row\">
  209.                         <div class=\"col\">
  210.                             {{ form_row(form.gender, {'attr': {'placeholder': 'Gender'|trans({}, 'general', app.request.get('lang')) }}) }}
  211.                         </div>
  212.                         <div class=\"col\">
  213.                             {{ form_row(form.age, {'attr': {'placeholder': 'Age'|trans({}, 'general', app.request.get('lang')) }}) }}
  214.                         </div>
  215.                     </div>
  216.                     <div class=\"row\">
  217.                         <div class=\"col\">
  218.                             <div class=\"form-group d-flex align-items-center\" style=\"padding-left: calc(var(--bs-gutter-x)* .9);\">
  219.                                 {{ form_widget(form.accettaGDPR, {'required': true}) }}
  220.                                 <a href=\"#\" target=\"_blank\">{{ 'I agree to GDPR terms'|trans({}, 'general', app.request.get('lang')) }}</a>
  221.                                 {% if form_errors(form.accettaGDPR) %}
  222.                                     <div class=\"invalid-feedback\">
  223.                                         {{ form_errors(form.accettaGDPR) }}
  224.                                     </div>
  225.                                 {% endif %}
  226.                             </div>
  227.                         </div>
  228.                     </div>
  229.                     <button type=\"submit\" class=\"btn btn-primary me-2\">Create</button>
  230.                     {{ form_end(form) }}
  231.                 </div>
  232.             </div>
  233.         </div>
  234.     </div>
  235. {% endblock %}
  236. ""security/create_user.html.twig""/home/archimonenergy/emb.archimon-energy.com/templates/security/create_user.html.twig");
  237.     }
  238. }