<?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_delete.html.twig */
class __TwigTemplate_4a1542dd14d28e7d2264d8ff6212026e35fe73633c9d4033f71e9e1798e4db33 extends Template
{
    private $source;
    private $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 = [])
    {
        $macros = $this->macros;
        // line 1
        $this->loadTemplate("default/_form_delete.html.twig", "default/_form_delete.html.twig", 1, "1626851305")->display(twig_array_merge($context, ["boxtype" => "danger"]));
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

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


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

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

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

        $this->blocks = [
            'box_before' => [$this, 'block_box_before'],
            'box_title' => [$this, 'block_box_title'],
            'box_body' => [$this, 'block_box_body'],
            'form_body' => [$this, 'block_form_body'],
            'box_footer' => [$this, 'block_box_footer'],
            'box_after' => [$this, 'block_box_after'],
        ];
    }

    protected function doGetParent(array $context)
    {
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $this->parent = $this->loadTemplate("@AdminLTE/Widgets/box-widget.html.twig", "default/_form_delete.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

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

    // line 5
    public function block_box_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 6
        echo "        ";
        echo twig_escape_filter($this->env, (((isset($context["title"]) || array_key_exists("title", $context))) ? (_twig_default_filter(($context["title"] ?? null), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("confirm.delete"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("confirm.delete"))), "html", null, true);
        echo "
    ";
    }

    // line 8
    public function block_box_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 9
        echo "        ";
        $this->displayBlock('form_body', $context, $blocks);
        // line 20
        echo "    ";
    }

    // line 9
    public function block_form_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 10
        echo "            ";
        if ((($context["used"] ?? null) === false)) {
            // line 11
            echo "                ";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("delete.not_in_use"), "html", null, true);
            echo "
                <div class=\"hidden\">
                    ";
            // line 13
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
            echo "
                </div>
            ";
        } else {
            // line 16
            echo "                <p>";
            echo ($context["message"] ?? null);
            echo "</p>
                ";
            // line 17
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
            echo "
            ";
        }
        // line 18
        echo "            
        ";
    }

    // line 21
    public function block_box_footer($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 22
        echo "        <input type=\"submit\" value=\"";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.delete"), "html", null, true);
        echo "\" class=\"btn btn-danger\" />
        ";
        // line 23
        if (($context["back"] ?? null)) {
            // line 24
            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 26
        echo "    ";
    }

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

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  191 => 28,  187 => 27,  183 => 26,  175 => 24,  173 => 23,  168 => 22,  164 => 21,  159 => 18,  154 => 17,  149 => 16,  143 => 13,  137 => 11,  134 => 10,  130 => 9,  126 => 20,  123 => 9,  119 => 8,  112 => 6,  108 => 5,  101 => 3,  97 => 2,  37 => 1,);
    }

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