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

/* pages/assets/enclosure.html.twig */
class __TwigTemplate_64c833d980fdda94026456673cf285fb extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'more_fields' => [$this, 'block_more_fields'],
        ];
    }

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

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 34
        $macros["fields"] = $this->macros["fields"] = $this->loadTemplate("components/form/fields_macros.html.twig", "pages/assets/enclosure.html.twig", 34)->unwrap();
        // line 35
        $context["params"] = (($context["params"]) ?? ([]));
        // line 33
        $this->parent = $this->loadTemplate("generic_show_form.html.twig", "pages/assets/enclosure.html.twig", 33);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 37
    public function block_more_fields($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 38
        yield "    ";
        yield CoreExtension::callMacro($macros["fields"], "macro_numberField", ["power_supplies", max((($__internal_compile_0 = CoreExtension::getAttribute($this->env, $this->source,         // line 40
($context["item"] ?? null), "fields", [], "any", false, false, false, 40)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["power_supplies"] ?? null) : null), 1), $this->extensions['Glpi\Application\View\Extension\ItemtypeExtension']->getItemtypeName("DevicePowerSupply", Session::getPluralNumber()), Twig\Extension\CoreExtension::merge(        // line 42
($context["field_options"] ?? null), ["min" => 1, "max" => 6, "step" => 1])], 38, $context, $this->getSourceContext());
        // line 47
        yield "
";
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "pages/assets/enclosure.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  61 => 47,  59 => 42,  58 => 40,  56 => 38,  52 => 37,  47 => 33,  45 => 35,  43 => 34,  36 => 33,);
    }

    public function getSourceContext()
    {
        return new Source("", "pages/assets/enclosure.html.twig", "/home/tisoluci/public_html/crpamplona/templates/pages/assets/enclosure.html.twig");
    }
}
