<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;

/* @CraueConfig/Settings/modify_form.html.twig */
class __TwigTemplate_17e728ff65791ea2f311f9dca0692238 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    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;
        // line 1
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start', ["attr" => ["class" => "craue_config_settings_modify"]]);
        yield "
\t";
        // line 2
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
        yield "

\t";
        // line 4
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Craue\ConfigBundle\Twig\Extension\ConfigTemplateExtension']->sortSections(($context["sections"] ?? null)));
        foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
            // line 5
            yield "\t\t";
            if ((($tmp =  !Twig\Extension\CoreExtension::testEmpty($context["section"])) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 6
                yield "\t\t\t<fieldset>
\t\t\t\t<legend>";
                // line 7
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["section"], [], "CraueConfigBundle"), "html", null, true);
                yield "</legend>
\t\t";
            }
            // line 9
            yield "
\t\t";
            // line 10
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "settings", [], "any", false, false, false, 10));
            foreach ($context['_seq'] as $context["_key"] => $context["setting"]) {
                // line 11
                yield "\t\t\t";
                if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["setting"], "vars", [], "any", false, false, false, 11), "value", [], "any", false, false, false, 11), "section", [], "any", false, false, false, 11) == $context["section"])) {
                    // line 12
                    yield "\t\t\t\t";
                    yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, $context["setting"], "value", [], "any", false, false, false, 12), 'row');
                    yield "
\t\t\t";
                }
                // line 14
                yield "\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['setting'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 15
            yield "
\t\t";
            // line 16
            if ((($tmp =  !Twig\Extension\CoreExtension::testEmpty($context["section"])) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 17
                yield "\t\t\t</fieldset>
\t\t";
            }
            // line 19
            yield "\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['section'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 20
        yield "
\t";
        // line 21
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest');
        yield "

\t<button type=\"submit\">";
        // line 23
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modify_settings", [], "CraueConfigBundle"), "html", null, true);
        yield "</button>
";
        // line 24
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "
";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@CraueConfig/Settings/modify_form.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  115 => 24,  111 => 23,  106 => 21,  103 => 20,  97 => 19,  93 => 17,  91 => 16,  88 => 15,  82 => 14,  76 => 12,  73 => 11,  69 => 10,  66 => 9,  61 => 7,  58 => 6,  55 => 5,  51 => 4,  46 => 2,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@CraueConfig/Settings/modify_form.html.twig", "/var/www/html/vendor/craue/config-bundle/Resources/views/Settings/modify_form.html.twig");
    }
}
