<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* default/_form.html.twig */
class __TwigTemplate_63beb85c344806265316edce4b19047f49bcef51cb5336ee9b600fc89f72ce26 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
            'form_before' => [$this, 'block_form_before'],
            'form_body' => [$this, 'block_form_body'],
            'form_after' => [$this, 'block_form_after'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        if ((isset($context["form_theme"]) || array_key_exists("form_theme", $context))) {
            // line 2
            echo "    ";
            $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(($context["form"] ?? null), [0 => ($context["form_theme"] ?? null)], true);
        }
        // line 4
        echo "<div class=\"box box-primary\">
    ";
        // line 5
        $this->displayBlock('form_before', $context, $blocks);
        // line 6
        echo "    ";
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
        echo "
    <div class=\"box-header with-border\">
        <h3 class=\"box-title\">
            ";
        // line 9
        echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
        echo "
            ";
        // line 10
        if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 10), "docu_chapter", [], "any", true, true, false, 10) &&  !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 10), "docu_chapter", [], "any", false, false, false, 10)))) {
            // line 11
            echo "                <a href=\"";
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extensions']->documentationLink(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 11), "docu_chapter", [], "any", false, false, false, 11)), "html", null, true);
            echo "\" target=\"_blank\"><i class=\"";
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("help"), "html", null, true);
            echo "\"></i></a>
            ";
        }
        // line 13
        echo "        </h3>
    </div>
    <div class=\"box-body\">
        ";
        // line 16
        $this->displayBlock('form_body', $context, $blocks);
        // line 19
        echo "    </div>
    <div class=\"box-footer\">
        <input type=\"submit\" value=\"";
        // line 21
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.save"), "html", null, true);
        echo "\" class=\"btn btn-primary\" />
        ";
        // line 22
        if ((((isset($context["back"]) || array_key_exists("back", $context))) ? (_twig_default_filter(($context["back"] ?? null), false)) : (false))) {
            // line 23
            echo "            <a href=\"";
            echo twig_escape_filter($this->env, ($context["back"] ?? null), "html", null, true);
            echo "\" class=\"btn btn-link\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.back"), "html", null, true);
            echo "</a>
        ";
        }
        // line 25
        echo "        ";
        if ((((isset($context["reset"]) || array_key_exists("reset", $context))) ? (_twig_default_filter(($context["reset"] ?? null), true)) : (true))) {
            // line 26
            echo "            <input type=\"reset\" value=\"";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.reset"), "html", null, true);
            echo "\" class=\"btn btn-link pull-right\" />
        ";
        }
        // line 28
        echo "    </div>
    ";
        // line 29
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        echo "
    ";
        // line 30
        $this->displayBlock('form_after', $context, $blocks);
        // line 31
        echo "</div>";
    }

    // line 5
    public function block_form_before($context, array $blocks = [])
    {
        $macros = $this->macros;
    }

    // line 16
    public function block_form_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 17
        echo "            ";
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        echo "
        ";
    }

    // line 30
    public function block_form_after($context, array $blocks = [])
    {
        $macros = $this->macros;
    }

    public function getTemplateName()
    {
        return "default/_form.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  136 => 30,  129 => 17,  125 => 16,  119 => 5,  115 => 31,  113 => 30,  109 => 29,  106 => 28,  100 => 26,  97 => 25,  89 => 23,  87 => 22,  83 => 21,  79 => 19,  77 => 16,  72 => 13,  64 => 11,  62 => 10,  58 => 9,  51 => 6,  49 => 5,  46 => 4,  42 => 2,  40 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "default/_form.html.twig", "/var/www/html/kimai2/templates/default/_form.html.twig");
    }
}
