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

/* @formcreator/pages/form.html.twig */
class __TwigTemplate_b3ada5af946768f334c755f001fe98885e76608512bec22f9e25b00b99b1b92d extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'form_fields' => [$this, 'block_form_fields'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 31
        return "generic_show_form.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 32
        $macros["fields"] = $this->macros["fields"] = $this->loadTemplate("components/form/fields_macros.html.twig", "@formcreator/pages/form.html.twig", 32)->unwrap();
        // line 33
        $macros["formcreatorFields"] = $this->macros["formcreatorFields"] = $this->loadTemplate("@formcreator/components/form/fields_macros.html.twig", "@formcreator/pages/form.html.twig", 33)->unwrap();
        // line 31
        $this->parent = $this->loadTemplate("generic_show_form.html.twig", "@formcreator/pages/form.html.twig", 31);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 35
    public function block_form_fields($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 36
        echo "    ";
        if (twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "isNewItem", [], "method", false, false, false, 36)) {
            // line 37
            echo "        ";
            $context["language"] = "";
            // line 38
            echo "        ";
            $context["iconColor"] = "#999999";
            // line 39
            echo "        ";
            $context["bgColor"] = "#E7E7E7";
            // line 40
            echo "    ";
        } else {
            // line 41
            echo "        ";
            $context["language"] = (($__internal_compile_0 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 41)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["language"] ?? null) : null);
            // line 42
            echo "        ";
            $context["iconColor"] = (($__internal_compile_1 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 42)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["icon_color"] ?? null) : null);
            // line 43
            echo "        ";
            $context["bgColor"] = (($__internal_compile_2 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 43)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["background_color"] ?? null) : null);
            // line 44
            echo "    ";
        }
        // line 45
        echo "
    ";
        // line 46
        echo twig_call_macro($macros["fields"], "macro_autoNameField", ["name",         // line 48
($context["item"] ?? null), __("Name"),         // line 50
($context["withtemplate"] ?? null), ["required" => true]], 46, $context, $this->getSourceContext());
        // line 52
        echo "

    ";
        // line 54
        echo twig_call_macro($macros["fields"], "macro_dropdownYesNo", ["is_active", (($__internal_compile_3 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 54)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["is_active"] ?? null) : null), __("Active"), ["required" => true]], 54, $context, $this->getSourceContext());
        echo "

    ";
        // line 56
        echo twig_call_macro($macros["fields"], "macro_dropdownField", ["PluginFormcreatorCategory", "plugin_formcreator_categories_id", (($__internal_compile_4 = twig_get_attribute($this->env, $this->source,         // line 59
($context["item"] ?? null), "fields", [], "any", false, false, false, 59)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["plugin_formcreator_categories_id"] ?? null) : null), $this->extensions['Glpi\Application\View\Extension\ItemtypeExtension']->getItemtypeName("PluginFormcreatorCategory")], 56, $context, $this->getSourceContext());
        // line 61
        echo "

    ";
        // line 63
        echo twig_call_macro($macros["fields"], "macro_dropdownYesNo", ["helpdesk_home", (($__internal_compile_5 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 63)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5["helpdesk_home"] ?? null) : null), __("Direct access on homepage", "formcreator")], 63, $context, $this->getSourceContext());
        echo "

    ";
        // line 65
        echo twig_call_macro($macros["formcreatorFields"], "macro_dropdownFontAwesomeIconField", ["icon", (($__internal_compile_6 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 65)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6["icon"] ?? null) : null), __("Icon", "formcreator")], 65, $context, $this->getSourceContext());
        echo "

    ";
        // line 67
        echo twig_call_macro($macros["fields"], "macro_colorField", ["icon_color", ($context["iconColor"] ?? null), __("Icon color")], 67, $context, $this->getSourceContext());
        echo "

    ";
        // line 69
        echo twig_call_macro($macros["formcreatorFields"], "macro_dropdownLanguageField", ["language", (($__internal_compile_7 = twig_get_attribute($this->env, $this->source,         // line 71
($context["item"] ?? null), "fields", [], "any", false, false, false, 71)) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7["icon"] ?? null) : null), __("Language", "formcreator"), ["display_emptychoice" => true, "emptylabel" => (("--- " . __("All languages", "formcreator")) . " ---"), "value" =>         // line 76
($context["language"] ?? null)]], 69, $context, $this->getSourceContext());
        // line 78
        echo "

    ";
        // line 80
        echo twig_call_macro($macros["fields"], "macro_colorField", ["background_color", ($context["bgColor"] ?? null), __("Background color", "formcreator")], 80, $context, $this->getSourceContext());
        echo "

    ";
        // line 82
        echo twig_call_macro($macros["fields"], "macro_textField", ["description", (($__internal_compile_8 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 82)) && is_array($__internal_compile_8) || $__internal_compile_8 instanceof ArrayAccess ? ($__internal_compile_8["description"] ?? null) : null), __("Description")], 82, $context, $this->getSourceContext());
        echo "

    ";
        // line 84
        echo twig_call_macro($macros["fields"], "macro_textareaField", ["content", (($__internal_compile_9 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 84)) && is_array($__internal_compile_9) || $__internal_compile_9 instanceof ArrayAccess ? ($__internal_compile_9["content"] ?? null) : null), _n("Header", "Headers", 1, "formcreator"), ["enable_richtext" => true]], 84, $context, $this->getSourceContext());
        echo "

    ";
        // line 86
        echo twig_call_macro($macros["fields"], "macro_dropdownYesNo", ["is_default", (($__internal_compile_10 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 86)) && is_array($__internal_compile_10) || $__internal_compile_10 instanceof ArrayAccess ? ($__internal_compile_10["is_default"] ?? null) : null), __("Default form in service catalog", "formcreator")], 86, $context, $this->getSourceContext());
        echo "

    ";
        // line 88
        $context["tooltip"] = $this->extensions['Glpi\Application\View\Extension\PhpExtension']->call("Html::showToolTip", [0 => __("If set to 'no', this form won't be shown for self-services users. They will still be able to access this form through its URL.", "formcreator"), 1 => ["display" => false]]);
        // line 95
        echo "    ";
        if (twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "isNewItem", [], "method", false, false, false, 95)) {
            // line 96
            echo "        ";
            $context["visible"] = 1;
            // line 97
            echo "    ";
        } else {
            // line 98
            echo "        ";
            $context["visible"] = (($__internal_compile_11 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 98)) && is_array($__internal_compile_11) || $__internal_compile_11 instanceof ArrayAccess ? ($__internal_compile_11["is_visible"] ?? null) : null);
            // line 99
            echo "    ";
        }
        // line 100
        echo "    ";
        echo twig_call_macro($macros["fields"], "macro_dropdownYesNo", ["is_visible", ($context["visible"] ?? null), __("Visible", "formcreator"), ["add_field_html" => ($context["tooltip"] ?? null)]], 100, $context, $this->getSourceContext());
        echo "
";
    }

    public function getTemplateName()
    {
        return "@formcreator/pages/form.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  165 => 100,  162 => 99,  159 => 98,  156 => 97,  153 => 96,  150 => 95,  148 => 88,  143 => 86,  138 => 84,  133 => 82,  128 => 80,  124 => 78,  122 => 76,  121 => 71,  120 => 69,  115 => 67,  110 => 65,  105 => 63,  101 => 61,  99 => 59,  98 => 56,  93 => 54,  89 => 52,  87 => 50,  86 => 48,  85 => 46,  82 => 45,  79 => 44,  76 => 43,  73 => 42,  70 => 41,  67 => 40,  64 => 39,  61 => 38,  58 => 37,  55 => 36,  51 => 35,  46 => 31,  44 => 33,  42 => 32,  35 => 31,);
    }

    public function getSourceContext()
    {
        return new Source("", "@formcreator/pages/form.html.twig", "C:\\xampp7433\\htdocs\\glpi\\marketplace\\formcreator\\templates\\pages\\form.html.twig");
    }
}
