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

/* project/edit.html.twig */
class __TwigTemplate_450e78dc9b91c5dc7effc96d003b44336a1e0e308afa04e1639624061b365f08 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'page_title' => [$this, 'block_page_title'],
            'page_actions' => [$this, 'block_page_actions'],
            'main' => [$this, 'block_main'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return $this->loadTemplate(((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1), "xmlHttpRequest", [], "any", false, false, false, 1)) ? ("form.html.twig") : ("base.html.twig")), "project/edit.html.twig", 1);
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 2
        $macros["actions"] = $this->macros["actions"] = $this->loadTemplate("project/actions.html.twig", "project/edit.html.twig", 2)->unwrap();
        // line 1
        $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
    }

    // line 4
    public function block_page_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_project.title"), "html", null, true);
    }

    // line 5
    public function block_page_actions($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo twig_call_macro($macros["actions"], "macro_project", [($context["project"] ?? null), "edit"], 5, $context, $this->getSourceContext());
    }

    // line 7
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 8
        echo "    ";
        $context["formEditTemplate"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 8), "xmlHttpRequest", [], "any", false, false, false, 8)) ? ("default/_form_modal.html.twig") : ("default/_form.html.twig"));
        // line 9
        echo "    ";
        $context["formOptions"] = ["title" => ((twig_get_attribute($this->env, $this->source,         // line 10
($context["project"] ?? null), "name", [], "any", true, true, false, 10)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "name", [], "any", false, false, false, 10), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("create-project", [], "actions"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("create-project", [], "actions"))), "form" =>         // line 11
($context["form"] ?? null), "back" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_project")];
        // line 14
        echo "    ";
        $this->loadTemplate("project/edit.html.twig", "project/edit.html.twig", 14, "404366091")->display(twig_array_merge($context, ($context["formOptions"] ?? null)));
    }

    public function getTemplateName()
    {
        return "project/edit.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  76 => 14,  74 => 11,  73 => 10,  71 => 9,  68 => 8,  64 => 7,  57 => 5,  50 => 4,  46 => 1,  44 => 2,  37 => 1,);
    }

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


/* project/edit.html.twig */
class __TwigTemplate_450e78dc9b91c5dc7effc96d003b44336a1e0e308afa04e1639624061b365f08___404366091 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'form_body' => [$this, 'block_form_body'],
        ];
    }

    protected function doGetParent(array $context)
    {
        return $this->loadTemplate(($context["formEditTemplate"] ?? null), "project/edit.html.twig", 14);
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
    }

    // line 15
    public function block_form_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 16
        echo "            <div class=\"row\">
                <div class=\"col-md-10\">
                    ";
        // line 18
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "name", [], "any", false, false, false, 18), 'row');
        echo "
                </div>
                <div class=\"col-md-2\">
                    ";
        // line 21
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "color", [], "any", false, false, false, 21), 'row');
        echo "
                </div>
            </div>
            ";
        // line 24
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "comment", [], "any", false, false, false, 24), 'row');
        echo "
            ";
        // line 25
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "customer", [], "any", false, false, false, 25), 'row');
        echo "
            <div class=\"row\">
                <div class=\"col-md-6\">
                    ";
        // line 28
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "orderNumber", [], "any", false, false, false, 28), 'row');
        echo "
                </div>
                <div class=\"col-md-6\">
                    ";
        // line 31
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "orderDate", [], "any", false, false, false, 31), 'row');
        echo "
                </div>
            </div>
            <div class=\"row\">
                <div class=\"col-md-6\">
                    ";
        // line 36
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "start", [], "any", false, false, false, 36), 'row');
        echo "
                </div>
                <div class=\"col-md-6\">
                    ";
        // line 39
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "end", [], "any", false, false, false, 39), 'row');
        echo "
                </div>
            </div>
            ";
        // line 42
        if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "budget", [], "any", true, true, false, 42)) {
            // line 43
            echo "            <div class=\"row\">
                <div class=\"col-md-6\">
                    ";
            // line 45
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "budget", [], "any", false, false, false, 45), 'row');
            echo "
                </div>
                <div class=\"col-md-6\">
                    ";
            // line 48
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "timeBudget", [], "any", false, false, false, 48), 'row');
            echo "
                </div>
            </div>
            ";
        }
        // line 52
        echo "            ";
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "visible", [], "any", false, false, false, 52), 'row');
        echo "
            ";
        // line 53
        if ((twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "metaFields", [], "any", true, true, false, 53) &&  !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "metaFields", [], "any", false, false, false, 53)))) {
            // line 54
            echo "                ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "metaFields", [], "any", false, false, false, 54), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["a"] ?? null), "vars", [], "any", false, false, false, 54), "data", [], "any", false, false, false, 54), "order", [], "any", false, false, false, 54) <=> twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["b"] ?? null), "vars", [], "any", false, false, false, 54), "data", [], "any", false, false, false, 54), "order", [], "any", false, false, false, 54)); }));
            foreach ($context['_seq'] as $context["_key"] => $context["meta"]) {
                // line 55
                echo "                    ";
                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["meta"], 'row');
                echo "
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['meta'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 57
            echo "            ";
        }
        // line 58
        echo "            ";
        if ((twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "create_more", [], "any", true, true, false, 58) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 58), "xmlHttpRequest", [], "any", false, false, false, 58))) {
            // line 59
            echo "                <div class=\"hidden\">
                    ";
            // line 60
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "create_more", [], "any", false, false, false, 60), 'row');
            echo "
                </div>
            ";
        }
        // line 63
        echo "            ";
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        echo "
        ";
    }

    public function getTemplateName()
    {
        return "project/edit.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  242 => 63,  236 => 60,  233 => 59,  230 => 58,  227 => 57,  218 => 55,  213 => 54,  211 => 53,  206 => 52,  199 => 48,  193 => 45,  189 => 43,  187 => 42,  181 => 39,  175 => 36,  167 => 31,  161 => 28,  155 => 25,  151 => 24,  145 => 21,  139 => 18,  135 => 16,  131 => 15,  76 => 14,  74 => 11,  73 => 10,  71 => 9,  68 => 8,  64 => 7,  57 => 5,  50 => 4,  46 => 1,  44 => 2,  37 => 1,);
    }

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