<?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_modal.html.twig */
class __TwigTemplate_b23669143a70a74b8a9fb30d3f50e17730f0cffad4e047ba30cf5c51bea4220f extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
            'modal_class' => [$this, 'block_modal_class'],
            'modal_id' => [$this, 'block_modal_id'],
            'form_before' => [$this, 'block_form_before'],
            'modal_before' => [$this, 'block_modal_before'],
            'modal_title' => [$this, 'block_modal_title'],
            'modal_body' => [$this, 'block_modal_body'],
            'form_body' => [$this, 'block_form_body'],
            'modal_footer' => [$this, 'block_modal_footer'],
            'modal_end' => [$this, 'block_modal_end'],
            'form_after' => [$this, 'block_form_after'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 6
        echo "<div class=\"modal ";
        $this->displayBlock('modal_class', $context, $blocks);
        echo "\" id=\"";
        $this->displayBlock('modal_id', $context, $blocks);
        echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"";
        $this->displayBlock("modal_id", $context, $blocks);
        echo "_label\">
    <div class=\"modal-dialog modal-lg\" role=\"document\">
        <div class=\"modal-content\">
            ";
        // line 9
        $this->displayBlock('form_before', $context, $blocks);
        // line 10
        echo "            ";
        $this->displayBlock('modal_before', $context, $blocks);
        // line 11
        echo "            <div class=\"modal-header\">
                <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"";
        // line 12
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.close"), "html", null, true);
        echo "\"><span aria-hidden=\"true\">&times;</span></button>
                <h4 class=\"modal-title\" id=\"";
        // line 13
        $this->displayBlock("modal_id", $context, $blocks);
        echo "_label\">
                    ";
        // line 14
        $this->displayBlock('modal_title', $context, $blocks);
        // line 20
        echo "                </h4>
            </div>
            <div class=\"modal-body\">
                ";
        // line 23
        $this->displayBlock('modal_body', $context, $blocks);
        // line 28
        echo "            </div>
            <div class=\"modal-footer\">
                ";
        // line 30
        $this->displayBlock('modal_footer', $context, $blocks);
        // line 34
        echo "            </div>
            ";
        // line 35
        $this->displayBlock('modal_end', $context, $blocks);
        // line 36
        echo "            ";
        $this->displayBlock('form_after', $context, $blocks);
        // line 37
        echo "        </div>
    </div>
</div>
";
    }

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

    public function block_modal_id($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo "form_modal";
    }

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

    // line 10
    public function block_modal_before($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
    }

    // line 14
    public function block_modal_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 15
        echo "                        ";
        echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
        echo "
                        ";
        // line 16
        if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 16), "docu_chapter", [], "any", true, true, false, 16) &&  !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, 16), "docu_chapter", [], "any", false, false, false, 16)))) {
            // line 17
            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, 17), "docu_chapter", [], "any", false, false, false, 17)), "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 19
        echo "                    ";
    }

    // line 23
    public function block_modal_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 24
        echo "                    ";
        $this->displayBlock('form_body', $context, $blocks);
        // line 27
        echo "                ";
    }

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

    // line 30
    public function block_modal_footer($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 31
        echo "                    <button type=\"submit\" class=\"btn btn-primary pull-left modal-form-save\" data-loading-text=\"";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.save"), "html", null, true);
        echo "...\" id=\"";
        $this->displayBlock("modal_id", $context, $blocks);
        echo "_save\">";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.save"), "html", null, true);
        echo "</button>
                    <button type=\"button\" class=\"btn btn-default btn-cancel\" data-dismiss=\"modal\">";
        // line 32
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.close"), "html", null, true);
        echo "</button>
                ";
    }

    // line 35
    public function block_modal_end($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
    }

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

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  200 => 36,  193 => 35,  187 => 32,  178 => 31,  174 => 30,  167 => 25,  163 => 24,  159 => 27,  156 => 24,  152 => 23,  148 => 19,  140 => 17,  138 => 16,  133 => 15,  129 => 14,  122 => 10,  116 => 9,  104 => 6,  97 => 37,  94 => 36,  92 => 35,  89 => 34,  87 => 30,  83 => 28,  81 => 23,  76 => 20,  74 => 14,  70 => 13,  66 => 12,  63 => 11,  60 => 10,  58 => 9,  47 => 6,);
    }

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