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

/* invoice/template_edit.html.twig */
class __TwigTemplate_8acdd9f9a46b960742bf04a573157725a7a66baba4f4d0bb8af0661149358058 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'],
            '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")), "invoice/template_edit.html.twig", 1);
    }

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

    // line 3
    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_invoice_template.title"), "html", null, true);
    }

    // line 5
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 6
        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, 6), "xmlHttpRequest", [], "any", false, false, false, 6)) ? ("default/_form_modal.html.twig") : ("default/_form.html.twig"));
        // line 7
        echo "    ";
        $context["formOptions"] = ["title" => ((twig_get_attribute($this->env, $this->source,         // line 8
($context["template"] ?? null), "name", [], "any", true, true, false, 8)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["template"] ?? null), "name", [], "any", false, false, false, 8), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("create"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("create"))), "form" =>         // line 9
($context["form"] ?? null), "back" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_invoice_template")];
        // line 12
        echo "
    ";
        // line 13
        $this->loadTemplate("invoice/template_edit.html.twig", "invoice/template_edit.html.twig", 13, "1413047701")->display(twig_array_merge($context, ($context["formOptions"] ?? null)));
        // line 72
        echo "    
";
    }

    public function getTemplateName()
    {
        return "invoice/template_edit.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  70 => 72,  68 => 13,  65 => 12,  63 => 9,  62 => 8,  60 => 7,  57 => 6,  53 => 5,  46 => 3,  36 => 1,);
    }

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


/* invoice/template_edit.html.twig */
class __TwigTemplate_8acdd9f9a46b960742bf04a573157725a7a66baba4f4d0bb8af0661149358058___1413047701 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)
    {
        // line 13
        return $this->loadTemplate(($context["formEditTemplate"] ?? null), "invoice/template_edit.html.twig", 13);
    }

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

    // line 14
    public function block_form_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 15
        echo "            ";
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "name", [], "any", false, false, false, 15), 'row');
        echo "
            ";
        // line 16
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "title", [], "any", false, false, false, 16), 'row');
        echo "
            <div class=\"row\">
                <div class=\"col-md-6\">
                    ";
        // line 19
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "company", [], "any", false, false, false, 19), 'row');
        echo "
                </div>
                <div class=\"col-md-6\">
                    ";
        // line 22
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vatId", [], "any", false, false, false, 22), 'row');
        echo "
                </div>
            </div>
            <div class=\"row\">
                <div class=\"col-md-6\">
                    ";
        // line 27
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "address", [], "any", false, false, false, 27), 'row');
        echo "
                </div>
                <div class=\"col-md-6\">
                    ";
        // line 30
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "contact", [], "any", false, false, false, 30), 'row');
        echo "
                </div>
            </div>
            <div class=\"row\">
                <div class=\"col-md-6\">
                    ";
        // line 35
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "paymentTerms", [], "any", false, false, false, 35), 'row');
        echo "
                </div>
                <div class=\"col-md-6\">
                    ";
        // line 38
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "paymentDetails", [], "any", false, false, false, 38), 'row');
        echo "
                </div>
            </div>
            <div class=\"row\">
                <div class=\"col-md-6\">
                    ";
        // line 43
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "dueDays", [], "any", false, false, false, 43), 'row');
        echo "
                </div>
                <div class=\"col-md-6\">
                    ";
        // line 46
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vat", [], "any", false, false, false, 46), 'row');
        echo "
                </div>
            </div>
            <div class=\"row\">
                <div class=\"col-md-6\">
                    ";
        // line 51
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "renderer", [], "any", false, false, false, 51), 'row');
        echo "
                </div>
                <div class=\"col-md-6\">
                    ";
        // line 54
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "language", [], "any", false, false, false, 54), 'row');
        echo "
                </div>
            </div>
            <div class=\"row\">
                <div class=\"col-md-6\">
                    ";
        // line 59
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "calculator", [], "any", false, false, false, 59), 'row');
        echo "
                </div>
                <div class=\"col-md-6\">
                    ";
        // line 62
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "numberGenerator", [], "any", false, false, false, 62), 'row');
        echo "
                </div>
            </div>
            <div class=\"row\">
                <div class=\"col-md-12\">
                    ";
        // line 67
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "decimalDuration", [], "any", false, false, false, 67), 'row');
        echo "
                </div>
            </div>
            ";
        // line 70
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        echo "
        ";
    }

    public function getTemplateName()
    {
        return "invoice/template_edit.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  231 => 70,  225 => 67,  217 => 62,  211 => 59,  203 => 54,  197 => 51,  189 => 46,  183 => 43,  175 => 38,  169 => 35,  161 => 30,  155 => 27,  147 => 22,  141 => 19,  135 => 16,  130 => 15,  126 => 14,  116 => 13,  70 => 72,  68 => 13,  65 => 12,  63 => 9,  62 => 8,  60 => 7,  57 => 6,  53 => 5,  46 => 3,  36 => 1,);
    }

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