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

/* @PimUser/Group/Tab/users.html.twig */
class __TwigTemplate_c50bdfa32935bb3c72261580e929406d extends Template
{
    private $source;
    private $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 = [])
    {
        $macros = $this->macros;
        // line 1
        $macros["dataGrid"] = $this->macros["dataGrid"] = $this->loadTemplate("@PimDataGrid/macros.html.twig", "@PimUser/Group/Tab/users.html.twig", 1)->unwrap();
        // line 2
        yield "
<div class=\"tab-pane";
        // line 3
        yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["viewElement"] ?? null), "loop", [], "any", false, false, false, 3), "first", [], "any", false, false, false, 3)) ? (" active") : (""));
        yield "\" id=\"";
        yield Twig\Extension\EscaperExtension::escape($this->env, Twig\Extension\CoreExtension::lowerFilter($this->env, Twig\Extension\CoreExtension::replaceFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["viewElement"] ?? null), "alias", [], "any", false, false, false, 3), [" " => "-", "." => "-"])), "html", null, true);
        yield "\">
    ";
        // line 4
        yield CoreExtension::callMacro($macros["dataGrid"], "macro_renderGrid", ["pim-group-user-grid", ["group_id" => ($context["entityId"] ?? null)]], 4, $context, $this->getSourceContext());
        yield "
    ";
        // line 5
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "appendUsers", [], "any", false, false, false, 5), 'widget', ["id" => "groupAppendUsers"]);
        yield "
    ";
        // line 6
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "removeUsers", [], "any", false, false, false, 6), 'widget', ["id" => "groupRemoveUsers"]);
        yield "
</div>
";
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@PimUser/Group/Tab/users.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  57 => 6,  53 => 5,  49 => 4,  43 => 3,  40 => 2,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@PimUser/Group/Tab/users.html.twig", "/var/www/html/pim/vendor/akeneo/pim-community-dev/src/Akeneo/UserManagement/Bundle/Resources/views/Group/Tab/users.html.twig");
    }
}
