<?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;

/* form/kimai-theme.html.twig */
class __TwigTemplate_fa98874ea18686116d1f072c95caa1a034f953ebf0570e212924dbef0639511a extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'form_label' => [$this, 'block_form_label'],
            'daterange_widget' => [$this, 'block_daterange_widget'],
            'datetime_widget' => [$this, 'block_datetime_widget'],
            'text_widget' => [$this, 'block_text_widget'],
            'monthpicker_widget' => [$this, 'block_monthpicker_widget'],
            'weekpicker_widget' => [$this, 'block_weekpicker_widget'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "@AdminLTE/layout/form-theme.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $this->parent = $this->loadTemplate("@AdminLTE/layout/form-theme.html.twig", "form/kimai-theme.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 4
    public function block_form_label($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 5
        echo "    ";
        if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 5), "docu_chapter", [], "any", true, true, false, 5) &&  !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, 5), "docu_chapter", [], "any", false, false, false, 5)))) {
            // line 6
            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, 6), "docu_chapter", [], "any", false, false, false, 6)), "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 8
        echo "    ";
        $this->displayParentBlock("form_label", $context, $blocks);
        echo "
";
    }

    // line 11
    public function block_daterange_widget($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 12
        echo "    <div class=\"input-group\">
        <div class=\"input-group-addon\">
            <i class=\"far fa-calendar-alt\"></i>
        </div>

        ";
        // line 17
        $context["attr"] = twig_array_merge(($context["attr"] ?? null), ["data-daterangepickerenable" => "on"]);
        // line 18
        echo "
        ";
        // line 19
        $this->displayBlock("form_widget_simple", $context, $blocks);
        echo "
    </div>
";
    }

    // line 23
    public function block_datetime_widget($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 24
        if (0 === twig_compare(($context["widget"] ?? null), "single_text")) {
            // line 25
            echo "<div class=\"input-group\">
            <div class=\"input-group-addon\">
                <a href=\"#\" onclick=\"\$('#";
            // line 27
            echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
            echo "').val(moment().format('";
            echo twig_escape_filter($this->env, (($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["attr"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4["data-format"] ?? null) : null), "html", null, true);
            echo "')).trigger('change')\"><i class=\"fa fa-calendar-alt\"></i></a>
            </div>
            ";
            // line 29
            $this->displayBlock("form_widget_simple", $context, $blocks);
            echo "
        </div>";
        } else {
            // line 32
            $this->displayBlock("form_widget_simple", $context, $blocks);
        }
    }

    // line 36
    public function block_text_widget($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 37
        if ( !twig_test_empty(($context["icon"] ?? null))) {
            // line 38
            echo "    <div class=\"input-group\">
        <div class=\"input-group-addon\">
            <i class=\"";
            // line 40
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon(($context["icon"] ?? null)), "html", null, true);
            echo "\"></i>
        </div>
        ";
            // line 42
            $this->displayBlock("form_widget_simple", $context, $blocks);
            echo "
    </div>
    ";
        } else {
            // line 45
            echo "        ";
            $this->displayBlock("form_widget_simple", $context, $blocks);
            echo "
    ";
        }
    }

    // line 49
    public function block_monthpicker_widget($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 50
        echo "<div class=\"btn-group\">
        <a class=\"btn btn-default btn-left\" href=\"#\" onclick=\"\$('#";
        // line 51
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 51), "id", [], "any", false, false, false, 51), "html", null, true);
        echo "').val('";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateShort(($context["previousMonth"] ?? null)), "html", null, true);
        echo "').change()\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->monthName(($context["previousMonth"] ?? null), true), "html", null, true);
        echo "\">
            <i class=\"";
        // line 52
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("left"), "html", null, true);
        echo "\"></i>
        </a>
        <a class=\"btn btn-default\" href=\"#\" onclick=\"return false;\">
            <span id=\"";
        // line 55
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 55), "id", [], "any", false, false, false, 55), "html", null, true);
        echo "_month_name\">";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->monthName(($context["month"] ?? null), true), "html", null, true);
        echo "</span>
        </a>
        <a class=\"btn btn-default btn-right\" href=\"#\" onclick=\"\$('#";
        // line 57
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 57), "id", [], "any", false, false, false, 57), "html", null, true);
        echo "').val('";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateShort(($context["nextMonth"] ?? null)), "html", null, true);
        echo "').change()\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->monthName(($context["nextMonth"] ?? null), true), "html", null, true);
        echo "\">
            <i class=\"";
        // line 58
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("right"), "html", null, true);
        echo "\"></i>
        </a>
    </div>
    ";
        // line 61
        $this->displayBlock("hidden_widget", $context, $blocks);
    }

    // line 64
    public function block_weekpicker_widget($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 65
        echo "<div class=\"btn-group\">
        <a class=\"btn btn-default btn-left\" href=\"#\" onclick=\"\$('#";
        // line 66
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 66), "id", [], "any", false, false, false, 66), "html", null, true);
        echo "').val('";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateShort(($context["previousWeek"] ?? null)), "html", null, true);
        echo "').change()\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("stats.workingTimeWeek", ["%week%" => $this->extensions['App\Twig\DateExtensions']->dateFormat(($context["previousWeek"] ?? null), "W")]), "html", null, true);
        echo "\">
            <i class=\"";
        // line 67
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("left"), "html", null, true);
        echo "\"></i>
        </a>
        <a class=\"btn btn-default\" href=\"#\" onclick=\"return false;\">
            <span id=\"";
        // line 70
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 70), "id", [], "any", false, false, false, 70), "html", null, true);
        echo "_week_number\">";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("stats.workingTimeWeek", ["%week%" => $this->extensions['App\Twig\DateExtensions']->dateFormat(($context["week"] ?? null), "W")]), "html", null, true);
        echo "</span>
        </a>
        <a class=\"btn btn-default btn-right\" href=\"#\" onclick=\"\$('#";
        // line 72
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 72), "id", [], "any", false, false, false, 72), "html", null, true);
        echo "').val('";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateShort(($context["nextWeek"] ?? null)), "html", null, true);
        echo "').change()\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("stats.workingTimeWeek", ["%week%" => $this->extensions['App\Twig\DateExtensions']->dateFormat(($context["nextWeek"] ?? null), "W")]), "html", null, true);
        echo "\">
            <i class=\"";
        // line 73
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("right"), "html", null, true);
        echo "\"></i>
        </a>
    </div>
    ";
        // line 76
        $this->displayBlock("hidden_widget", $context, $blocks);
    }

    public function getTemplateName()
    {
        return "form/kimai-theme.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  240 => 76,  234 => 73,  226 => 72,  219 => 70,  213 => 67,  205 => 66,  202 => 65,  198 => 64,  194 => 61,  188 => 58,  180 => 57,  173 => 55,  167 => 52,  159 => 51,  156 => 50,  152 => 49,  144 => 45,  138 => 42,  133 => 40,  129 => 38,  127 => 37,  123 => 36,  118 => 32,  113 => 29,  106 => 27,  102 => 25,  100 => 24,  96 => 23,  89 => 19,  86 => 18,  84 => 17,  77 => 12,  73 => 11,  66 => 8,  58 => 6,  55 => 5,  51 => 4,  40 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "form/kimai-theme.html.twig", "/var/www/html/kimai2/templates/form/kimai-theme.html.twig");
    }
}
