*/ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } 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", "partials/user/user-required.html.twig")); $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/user/user-required.html.twig")); // line 1 yield "

User

"; // line 12 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 12, $this->source); })()) == "view"))) { // line 13 yield "
"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 13, $this->source); })()), "first_name", [], "any", false, false, false, 13), "html", null, true); yield "
"; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 14 ($context["user"] ?? null), "roles", [], "any", false, true, false, 14), "ROLE_SUPERADMIN", [], "any", true, true, false, 14)) { // line 15 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 15, $this->source); })()), "first_name", [], "any", false, false, false, 15), "html", null, true); yield "\"> "; } else { // line 17 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 17, $this->source); })()), "first_name", [], "any", false, false, false, 17), "html", null, true); yield "\" disabled> "; } // line 19 yield "
"; // line 25 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 25, $this->source); })()) == "view"))) { // line 26 yield "
"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 26, $this->source); })()), "second_name", [], "any", false, false, false, 26), "html", null, true); yield "
"; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 27 ($context["user"] ?? null), "roles", [], "any", false, true, false, 27), "ROLE_SUPERADMIN", [], "any", true, true, false, 27)) { // line 28 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 28, $this->source); })()), "second_name", [], "any", false, false, false, 28), "html", null, true); yield "\"> "; } else { // line 30 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 30, $this->source); })()), "second_name", [], "any", false, false, false, 30), "html", null, true); yield "\" disabled> "; } // line 32 yield "
"; // line 43 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 43, $this->source); })()) == "view"))) { // line 44 yield "
"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 44, $this->source); })()), "email", [], "any", false, false, false, 44), "html", null, true); yield "
"; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 45 ($context["user"] ?? null), "roles", [], "any", false, true, false, 45), "ROLE_SUPERADMIN", [], "any", true, true, false, 45)) { // line 46 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 46, $this->source); })()), "email", [], "any", false, false, false, 46), "html", null, true); yield "\"> "; } else { // line 48 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 48, $this->source); })()), "email", [], "any", false, false, false, 48), "html", null, true); yield "\" disabled> "; } // line 50 yield "
"; // line 56 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 56, $this->source); })()) == "view"))) { // line 57 yield "
"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 57, $this->source); })()), "job_title", [], "any", false, false, false, 57), "html", null, true); yield "
"; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 58 ($context["user"] ?? null), "roles", [], "any", false, true, false, 58), "ROLE_SUPERADMIN", [], "any", true, true, false, 58)) { // line 59 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 59, $this->source); })()), "job_title", [], "any", false, false, false, 59), "html", null, true); yield "\"> "; } else { // line 61 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 61, $this->source); })()), "job_title", [], "any", false, false, false, 61), "html", null, true); yield "\" disabled> "; } // line 63 yield "
"; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "partials/user/user-required.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 194 => 75, 190 => 73, 188 => 72, 185 => 71, 183 => 70, 174 => 63, 168 => 61, 162 => 59, 160 => 58, 155 => 57, 153 => 56, 145 => 50, 139 => 48, 133 => 46, 131 => 45, 126 => 44, 124 => 43, 111 => 32, 105 => 30, 99 => 28, 97 => 27, 92 => 26, 90 => 25, 82 => 19, 76 => 17, 70 => 15, 68 => 14, 63 => 13, 61 => 12, 48 => 1,); } public function getSourceContext(): Source { return new Source("

User

{% if mode is defined and mode == 'view' %}
{{ data.first_name }}
{% elseif user.roles.ROLE_SUPERADMIN is defined %} {% else %} {% endif %}
{% if mode is defined and mode == 'view' %}
{{ data.second_name }}
{% elseif user.roles.ROLE_SUPERADMIN is defined %} {% else %} {% endif %}
{% if mode is defined and mode == 'view' %}
{{ data.email }}
{% elseif user.roles.ROLE_SUPERADMIN is defined %} {% else %} {% endif %}
{% if mode is defined and mode == 'view' %}
{{ data.job_title }}
{% elseif user.roles.ROLE_SUPERADMIN is defined %} {% else %} {% endif %}
", "partials/user/user-required.html.twig", "/var/www/cds-intranet/app/templates/partials/user/user-required.html.twig"); } }