<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;

/* components/itilobject/timeline/simple_form.html.twig */
class __TwigTemplate_4f80b692b1a812438a1a7f15dd476646 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $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 = []): iterable
    {
        $macros = $this->macros;
        // line 32
        yield "
";
        // line 33
        $macros["fields"] = $this->macros["fields"] = $this->load("components/form/fields_macros.html.twig", 33)->unwrap();
        // line 34
        yield "
";
        // line 35
        $context["target"] = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "getFormURL", [], "method", false, false, false, 35);
        // line 36
        $context["is_new_item"] = ((($_v0 = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 36)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0["id"] ?? null) : null) == 0);
        // line 37
        $context["show_form"] = ( !array_key_exists("no_form", $context) || true);
        // line 38
        yield "
";
        // line 39
        $context["field_options"] = ["is_horizontal" => false, "full_width" => true, "fields_template" =>         // line 42
($context["itiltemplate"] ?? null), "disabled" => (!(        // line 43
($context["canupdate"] ?? null) || ($context["can_requester"] ?? null)))];
        // line 45
        yield "
";
        // line 46
        if ((($tmp = ($context["show_form"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 47
            yield "<form method=\"post\" action=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["target"] ?? null), "html", null, true);
            yield "\" ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["formoptions"] ?? null), "html", null, true);
            yield " enctype=\"multipart/form-data\" data-submit-once>
";
        }
        // line 49
        yield "   <div class=\"row flex-column\">
      ";
        // line 50
        if ((($tmp =  !CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "isNewItem", [], "method", false, false, false, 50)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 51
            yield "        ";
            $context["recipient"] = ((((($_v1 = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 51)) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1["users_id_recipient"] ?? null) : null) > 0)) ? ((($_v2 = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 51)) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2["users_id_recipient"] ?? null) : null)) : ($this->extensions['Glpi\Application\View\Extension\SessionExtension']->session("glpiID")));
            // line 52
            yield "        ";
            yield $macros["fields"]->getTemplateForMacro("macro_dropdownField", $context, 52, $this->getSourceContext())->macro_dropdownField(...["User", "users_id_recipient",             // line 55
($context["recipient"] ?? null), __("By"), Twig\Extension\CoreExtension::merge(            // line 57
($context["field_options"] ?? null), ["maxlength" => 255, "entity" => (($_v3 = CoreExtension::getAttribute($this->env, $this->source,             // line 59
($context["item"] ?? null), "fields", [], "any", false, false, false, 59)) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3["entities_id"] ?? null) : null), "right" => "all"])]);
            // line 62
            yield "
      ";
        }
        // line 64
        yield "
      ";
        // line 65
        yield $macros["fields"]->getTemplateForMacro("macro_textField", $context, 65, $this->getSourceContext())->macro_textField(...["name", (($_v4 = CoreExtension::getAttribute($this->env, $this->source,         // line 67
($context["item"] ?? null), "fields", [], "any", false, false, false, 67)) && is_array($_v4) || $_v4 instanceof ArrayAccess ? ($_v4["name"] ?? null) : null), __("Title"), Twig\Extension\CoreExtension::merge(        // line 69
($context["field_options"] ?? null), ["maxlength" => 255])]);
        // line 72
        yield "

      ";
        // line 74
        $context["uploads"] = [];
        // line 75
        yield "      ";
        if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "input", [], "any", false, true, false, 75), "_content", [], "any", true, true, false, 75)) {
            // line 76
            yield "         ";
            $context["uploads"] = Twig\Extension\CoreExtension::merge(($context["uploads"] ?? null), ["_content" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "input", [], "any", false, false, false, 76), "_content", [], "any", false, false, false, 76), "_tag_content" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "input", [], "any", false, false, false, 76), "_tag_content", [], "any", false, false, false, 76)]);
            // line 77
            yield "      ";
        }
        // line 78
        yield "      ";
        if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "input", [], "any", false, true, false, 78), "_filename", [], "any", true, true, false, 78)) {
            // line 79
            yield "         ";
            $context["uploads"] = Twig\Extension\CoreExtension::merge(($context["uploads"] ?? null), ["_filename" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "input", [], "any", false, false, false, 79), "_filename", [], "any", false, false, false, 79), "_tag_filename" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "input", [], "any", false, false, false, 79), "_tag_filename", [], "any", false, false, false, 79)]);
            // line 80
            yield "      ";
        }
        // line 81
        yield "
      ";
        // line 82
        yield $macros["fields"]->getTemplateForMacro("macro_textareaField", $context, 82, $this->getSourceContext())->macro_textareaField(...["content", (($_v5 = CoreExtension::getAttribute($this->env, $this->source,         // line 84
($context["item"] ?? null), "fields", [], "any", false, false, false, 84)) && is_array($_v5) || $_v5 instanceof ArrayAccess ? ($_v5["content"] ?? null) : null), __("Description"), Twig\Extension\CoreExtension::merge(        // line 86
($context["field_options"] ?? null), ["enable_richtext" => true, "enable_fileupload" => true, "enable_mentions" => true, "enable_fileupload" => (((($tmp = CoreExtension::getAttribute($this->env, $this->source,         // line 90
($context["itiltemplate"] ?? null), "isHiddenField", ["_documents_id"], "method", false, false, false, 90)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (false) : (true)), "entities_id" => (((($tmp = CoreExtension::getAttribute($this->env, $this->source,         // line 91
($context["item"] ?? null), "isNewItem", [], "method", false, false, false, 91)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (($context["entities_id"] ?? null)) : ((($_v6 = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 91)) && is_array($_v6) || $_v6 instanceof ArrayAccess ? ($_v6["entities_id"] ?? null) : null))), "uploads" =>         // line 92
($context["uploads"] ?? null), "add_field_class" => "col-12 itil-textarea-content"])]);
        // line 95
        yield "
   </div>

   ";
        // line 98
        if ((( !($context["is_new_item"] ?? null) && ($context["show_form"] ?? null)) &&  !(($_v7 = ($context["params"] ?? null)) && is_array($_v7) || $_v7 instanceof ArrayAccess ? ($_v7["template_preview"] ?? null) : null))) {
            // line 99
            yield "      <div class=\"d-flex card-footer mx-n3 mb-n3\">
         <button class=\"btn btn-primary me-2\" type=\"submit\" name=\"update\">
            <i class=\"far fa-save\"></i>
            <span>";
            // line 102
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(_x("button", "Save"), "html", null, true);
            yield "</span>
         </button>
      </div>

      <input type=\"hidden\" name=\"id\" value=\"";
            // line 106
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v8 = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 106)) && is_array($_v8) || $_v8 instanceof ArrayAccess ? ($_v8["id"] ?? null) : null), "html", null, true);
            yield "\" />
      <input type=\"hidden\" name=\"_glpi_csrf_token\" value=\"";
            // line 107
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Session::getNewCSRFToken(), "html", null, true);
            yield "\" />
   </form>
   ";
        }
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "components/itilobject/timeline/simple_form.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  158 => 107,  154 => 106,  147 => 102,  142 => 99,  140 => 98,  135 => 95,  133 => 92,  132 => 91,  131 => 90,  130 => 86,  129 => 84,  128 => 82,  125 => 81,  122 => 80,  119 => 79,  116 => 78,  113 => 77,  110 => 76,  107 => 75,  105 => 74,  101 => 72,  99 => 69,  98 => 67,  97 => 65,  94 => 64,  90 => 62,  88 => 59,  87 => 57,  86 => 55,  84 => 52,  81 => 51,  79 => 50,  76 => 49,  68 => 47,  66 => 46,  63 => 45,  61 => 43,  60 => 42,  59 => 39,  56 => 38,  54 => 37,  52 => 36,  50 => 35,  47 => 34,  45 => 33,  42 => 32,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "components/itilobject/timeline/simple_form.html.twig", "C:\\xampp\\htdocs\\itsm\\templates\\components\\itilobject\\timeline\\simple_form.html.twig");
    }
}
