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

/* server/privileges/new_user_ajax.twig */
class __TwigTemplate_7673e46a0ce845427132f258f06fe56c88b0f2699f66c230d93247ec809042a7 extends \Twig\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
        echo "<tr>
  <td>
    <input type=\"checkbox\" name=\"selected_usr[]\" id=\"checkbox_sel_users_\" value=\"";
        // line 4
        echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "name", [], "any", false, false, false, 4) . "&amp;#27;") . twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "host", [], "any", false, false, false, 4)), "html", null, true);
        echo "\">
  </td>
  <td>
    <label for=\"checkbox_sel_users_\">
      ";
        // line 8
        if (twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "name", [], "any", false, false, false, 8))) {
            // line 9
            echo "        <span class=\"text-danger\">";
            echo _gettext("Any");
            echo "</span>
      ";
        } else {
            // line 11
            echo "        ";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "name", [], "any", false, false, false, 11), "html", null, true);
            echo "
      ";
        }
        // line 13
        echo "    </label>
  </td>
  <td>
    ";
        // line 16
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "host", [], "any", false, false, false, 16), "html", null, true);
        echo "
  </td>
  <td>
    ";
        // line 19
        if (twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "has_password", [], "any", false, false, false, 19)) {
            // line 20
            echo "      ";
            echo _gettext("Yes");
            // line 21
            echo "    ";
        } else {
            // line 22
            echo "      <span class=\"text-danger\">";
            echo _gettext("No");
            echo "</span>
    ";
        }
        // line 24
        echo "  </td>
  <td>
    <code>
      ";
        // line 27
        echo twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "privileges", [], "any", false, false, false, 27);
        echo "
    </code>
  </td>
  ";
        // line 30
        if (twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "has_group", [], "any", false, false, false, 30)) {
            // line 31
            echo "    <td class=\"usrGroup\"></td>
  ";
        }
        // line 33
        echo "  <td>
    ";
        // line 34
        echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "has_grant", [], "any", false, false, false, 34)) ? (_gettext("Yes")) : (_gettext("No"))), "html", null, true);
        echo "
  </td>
  ";
        // line 36
        if (($context["is_grantuser"] ?? null)) {
            // line 37
            echo "    <td>
      <a class=\"edit_user_anchor\" href=\"";
            // line 38
            echo PhpMyAdmin\Url::getFromRoute("/server/privileges", ["username" => twig_get_attribute($this->env, $this->source,             // line 39
($context["user"] ?? null), "name", [], "any", false, false, false, 39), "hostname" => twig_get_attribute($this->env, $this->source,             // line 40
($context["user"] ?? null), "host", [], "any", false, false, false, 40), "dbname" => "", "tablename" => "", "routinename" => ""]);
            // line 44
            echo "\">
        ";
            // line 45
            echo PhpMyAdmin\Util::getIcon("b_usredit", _gettext("Edit privileges"));
            echo "
      </a>
    </td>
  ";
        }
        // line 49
        echo "  ";
        if (twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "has_group_edit", [], "any", false, false, false, 49)) {
            // line 50
            echo "    <td>
      <a class=\"edit_user_group_anchor ajax\" href=\"";
            // line 51
            echo PhpMyAdmin\Url::getFromRoute("/server/privileges", ["username" => twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "name", [], "any", false, false, false, 51)]);
            echo "\">
        ";
            // line 52
            echo PhpMyAdmin\Util::getIcon("b_usrlist", _gettext("Edit user group"));
            echo "
      </a>
    </td>
  ";
        }
        // line 56
        echo "  <td>
    <a class=\"export_user_anchor ajax\" href=\"";
        // line 57
        echo PhpMyAdmin\Url::getFromRoute("/server/privileges", ["username" => twig_get_attribute($this->env, $this->source,         // line 58
($context["user"] ?? null), "name", [], "any", false, false, false, 58), "hostname" => twig_get_attribute($this->env, $this->source,         // line 59
($context["user"] ?? null), "host", [], "any", false, false, false, 59), "export" => true, "initial" =>         // line 61
($context["initial"] ?? null)]);
        // line 62
        echo "\">
      ";
        // line 63
        echo PhpMyAdmin\Util::getIcon("b_tblexport", _gettext("Export"));
        echo "
    </a>
  </td>
</tr>
";
    }

    public function getTemplateName()
    {
        return "server/privileges/new_user_ajax.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  159 => 63,  156 => 62,  154 => 61,  153 => 59,  152 => 58,  151 => 57,  148 => 56,  141 => 52,  137 => 51,  134 => 50,  131 => 49,  124 => 45,  121 => 44,  119 => 40,  118 => 39,  117 => 38,  114 => 37,  112 => 36,  107 => 34,  104 => 33,  100 => 31,  98 => 30,  92 => 27,  87 => 24,  81 => 22,  78 => 21,  75 => 20,  73 => 19,  67 => 16,  62 => 13,  56 => 11,  50 => 9,  48 => 8,  41 => 4,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "server/privileges/new_user_ajax.twig", "/home/files/phpmyadmin/release/phpMyAdmin-5.1+snapshot/templates/server/privileges/new_user_ajax.twig");
    }
}
