*/ 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", "document-category-list.html.twig")); $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document-category-list.html.twig")); // line 1 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/main.html.twig"); yield " "; // line 5 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/title-meta.html.twig", (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 5, $this->source); })())); yield " "; // line 7 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/head-css.html.twig"); yield "
"; // line 35 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/menu.html.twig"); yield "
"; // line 45 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/page-title.html.twig", (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 45, $this->source); })())); yield " "; // line 47 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/validation.html.twig", (isset($context["validation"]) || array_key_exists("validation", $context) ? $context["validation"] : (function () { throw new RuntimeError('Variable "validation" does not exist.', 47, $this->source); })())); yield "
"; // line 61 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 61), "ROLE_SUPERADMIN", [], "any", true, true, false, 61) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 61, $this->source); })()), "title", [], "any", false, false, false, 61) == "Documents"))) { // line 62 yield " Add Document Category "; } // line 66 yield "
"; // line 77 if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["documentCategories"]) || array_key_exists("documentCategories", $context) ? $context["documentCategories"] : (function () { throw new RuntimeError('Variable "documentCategories" does not exist.', 77, $this->source); })())) > 0)) { // line 78 yield " "; $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable((isset($context["documentCategories"]) || array_key_exists("documentCategories", $context) ? $context["documentCategories"] : (function () { throw new RuntimeError('Variable "documentCategories" does not exist.', 78, $this->source); })())); foreach ($context['_seq'] as $context["key"] => $context["documentCategory"]) { // line 79 yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["documentCategory"], "id", [], "any", false, false, false, 79), "html", null, true); yield "\">
"; } $_parent = $context['_parent']; unset($context['_seq'], $context['key'], $context['documentCategory'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 88 yield " "; } else { // line 89 yield "
No document categories defined
"; } // line 101 yield "
"; // line 112 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/footer.html.twig"); yield "
"; // line 118 if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 118), "ROLE_DEVELOPER", [], "any", true, true, false, 118)) { // line 119 yield " "; yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/customizer.html.twig"); yield " "; } // line 121 yield " "; // line 122 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/vendor-scripts.html.twig"); yield " "; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "document-category-list.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 226 => 122, 223 => 121, 217 => 119, 215 => 118, 206 => 112, 193 => 101, 179 => 89, 176 => 88, 165 => 83, 161 => 82, 154 => 79, 149 => 78, 147 => 77, 134 => 66, 128 => 62, 126 => 61, 109 => 47, 104 => 45, 91 => 35, 60 => 7, 55 => 5, 48 => 1,); } public function getSourceContext(): Source { return new Source("{{ include('partials/main.html.twig') }} {{ include('partials/title-meta.html.twig', page) }} {{ include('partials/head-css.html.twig') }}
{{ include('partials/menu.html.twig') }}
{{ include('partials/page-title.html.twig', page) }} {{ include('partials/validation.html.twig', validation) }}
{% if user.roles.ROLE_SUPERADMIN is defined and page.title == 'Documents' %} Add Document Category {% endif %}
{% if documentCategories|length > 0 %} {% for key, documentCategory in documentCategories %}
{% endfor %} {% else %}
No document categories defined
{% endif %}
{{ include('partials/footer.html.twig') }}
{% if user.roles.ROLE_DEVELOPER is defined %} {{ include('partials/customizer.html.twig') }} {% endif %} {{ include('partials/vendor-scripts.html.twig') }} ", "document-category-list.html.twig", "/var/www/cds-intranet/app/templates/document-category-list.html.twig"); } }