<?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/user_properties.twig */
class __TwigTemplate_b87c66c5273e9a98d0a35941e34232156345258a65fadc887f803d2a365a053c 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 "<div id=\"edit_user_dialog\">
  <h2>
    ";
        // line 3
        echo \PhpMyAdmin\Html\Generator::getIcon("b_usredit");
        echo "
    ";
        // line 4
        echo _gettext("Edit privileges:");
        // line 5
        echo "    ";
        echo _gettext("User account");
        // line 6
        echo "
    ";
        // line 7
        if ( !twig_test_empty(($context["database"] ?? null))) {
            // line 8
            echo "      <em>
        <a class=\"edit_user_anchor\" href=\"";
            // line 9
            echo PhpMyAdmin\Url::getFromRoute("/server/privileges", ["username" =>             // line 10
($context["username"] ?? null), "hostname" =>             // line 11
($context["hostname"] ?? null), "dbname" => "", "tablename" => ""]);
            // line 14
            echo "\">
          '";
            // line 15
            echo twig_escape_filter($this->env, ($context["username"] ?? null), "html", null, true);
            echo "'@'";
            echo twig_escape_filter($this->env, ($context["hostname"] ?? null), "html", null, true);
            echo "'
        </a>
      </em>
      -
      ";
            // line 19
            if (($context["is_databases"] ?? null)) {
                // line 20
                echo "        ";
                echo _gettext("Databases");
                // line 21
                echo "      ";
            } else {
                // line 22
                echo "        ";
                echo _gettext("Database");
                // line 23
                echo "      ";
            }
            // line 24
            echo "
      ";
            // line 25
            if ( !twig_test_empty(($context["table"] ?? null))) {
                // line 26
                echo "        <em>
          <a href=\"";
                // line 27
                echo PhpMyAdmin\Url::getFromRoute("/server/privileges", ["username" =>                 // line 28
($context["username"] ?? null), "hostname" =>                 // line 29
($context["hostname"] ?? null), "dbname" =>                 // line 30
($context["dbname"] ?? null), "tablename" => ""]);
                // line 32
                echo "\">
            ";
                // line 33
                echo twig_escape_filter($this->env, ($context["database"] ?? null), "html", null, true);
                echo "
          </a>
        </em>
        -
        ";
                // line 37
                echo _gettext("Table");
                // line 38
                echo "        <em>";
                echo twig_escape_filter($this->env, ($context["table"] ?? null), "html", null, true);
                echo "</em>
      ";
            } else {
                // line 40
                echo "        ";
                if ( !twig_test_iterable(($context["database"] ?? null))) {
                    // line 41
                    echo "          ";
                    $context["database"] = [0 => ($context["database"] ?? null)];
                    // line 42
                    echo "        ";
                }
                // line 43
                echo "        <em>
          ";
                // line 44
                echo twig_escape_filter($this->env, twig_join_filter(($context["database"] ?? null), ", "), "html", null, true);
                echo "
        </em>
      ";
            }
            // line 47
            echo "    ";
        } else {
            // line 48
            echo "      <em>'";
            echo twig_escape_filter($this->env, ($context["username"] ?? null), "html", null, true);
            echo "'@'";
            echo twig_escape_filter($this->env, ($context["hostname"] ?? null), "html", null, true);
            echo "'</em>
    ";
        }
        // line 50
        echo "  </h2>

  ";
        // line 52
        if ((($context["current_user"] ?? null) == ((($context["username"] ?? null) . "@") . ($context["hostname"] ?? null)))) {
            // line 53
            echo "    ";
            echo call_user_func_array($this->env->getFilter('notice')->getCallable(), [_gettext("Note: You are attempting to edit privileges of the user with which you are currently logged in.")]);
            echo "
  ";
        }
        // line 55
        echo "
  ";
        // line 56
        if (($context["user_does_not_exists"] ?? null)) {
            // line 57
            echo "    ";
            echo call_user_func_array($this->env->getFilter('error')->getCallable(), [_gettext("The selected user was not found in the privilege table.")]);
            echo "
    ";
            // line 58
            echo ($context["login_information_fields"] ?? null);
            echo "
  ";
        }
        // line 60
        echo "
  <form class=\"submenu-item\" name=\"usersForm\" id=\"addUsersForm\" action=\"";
        // line 61
        echo PhpMyAdmin\Url::getFromRoute("/server/privileges");
        echo "\" method=\"post\">
    ";
        // line 62
        echo PhpMyAdmin\Url::getHiddenInputs(($context["params"] ?? null));
        echo "

    ";
        // line 64
        echo ($context["privileges_table"] ?? null);
        echo "
  </form>

  ";
        // line 67
        echo ($context["table_specific_rights"] ?? null);
        echo "

  ";
        // line 69
        if ((( !twig_test_iterable(($context["database"] ?? null)) && (twig_length_filter($this->env, ($context["database"] ?? null)) > 0)) &&  !($context["is_wildcard"] ?? null))) {
            // line 70
            echo "    [
    ";
            // line 71
            echo _gettext("Database");
            // line 72
            echo "    <a href=\"";
            echo ($context["database_url"] ?? null);
            echo PhpMyAdmin\Url::getCommon(["db" => twig_replace_filter(            // line 73
($context["database"] ?? null), ["\\_" => "_", "\\%" => "%"]), "reload" => true], "&");
            // line 75
            echo "\">
      ";
            // line 76
            echo twig_escape_filter($this->env, twig_replace_filter(($context["database"] ?? null), ["\\_" => "_", "\\%" => "%"]), "html", null, true);
            echo ":
      ";
            // line 77
            echo twig_escape_filter($this->env, ($context["database_url_title"] ?? null), "html", null, true);
            echo "
    </a>
    ]
    ";
            // line 80
            if ((twig_length_filter($this->env, ($context["table"] ?? null)) > 0)) {
                // line 81
                echo "      [
      ";
                // line 82
                echo _gettext("Table");
                // line 83
                echo "      <a href=\"";
                echo ($context["table_url"] ?? null);
                echo PhpMyAdmin\Url::getCommon(["db" => twig_replace_filter(                // line 84
($context["database"] ?? null), ["\\_" => "_", "\\%" => "%"]), "table" =>                 // line 85
($context["table"] ?? null), "reload" => true], "&");
                // line 87
                echo "\">
        ";
                // line 88
                echo twig_escape_filter($this->env, ($context["table"] ?? null), "html", null, true);
                echo ":
        ";
                // line 89
                echo twig_escape_filter($this->env, ($context["table_url_title"] ?? null), "html", null, true);
                echo "
      </a>
      ]
    ";
            }
            // line 93
            echo "  ";
        }
        // line 94
        echo "
  ";
        // line 95
        echo ($context["change_password"] ?? null);
        echo "

  <form action=\"";
        // line 97
        echo PhpMyAdmin\Url::getFromRoute("/server/privileges");
        echo "\" id=\"copyUserForm\" method=\"post\" class=\"copyUserForm submenu-item\">
    ";
        // line 98
        echo PhpMyAdmin\Url::getHiddenInputs();
        echo "
    <input type=\"hidden\" name=\"old_username\" value=\"";
        // line 99
        echo twig_escape_filter($this->env, ($context["username"] ?? null), "html", null, true);
        echo "\">
    <input type=\"hidden\" name=\"old_hostname\" value=\"";
        // line 100
        echo twig_escape_filter($this->env, ($context["hostname"] ?? null), "html", null, true);
        echo "\">
    ";
        // line 101
        if ( !twig_test_empty(($context["user_group"] ?? null))) {
            // line 102
            echo "      <input type=\"hidden\" name=\"old_usergroup\" value=\"";
            echo twig_escape_filter($this->env, ($context["user_group"] ?? null), "html", null, true);
            echo "\">
    ";
        }
        // line 104
        echo "
    <fieldset id=\"fieldset_change_copy_user\">
      <legend data-submenu-label=\"";
        // line 106
        echo _gettext("Login Information");
        echo "\">
        ";
        // line 107
        echo _gettext("Change login information / Copy user account");
        // line 108
        echo "      </legend>

      ";
        // line 110
        echo ($context["change_login_info_fields"] ?? null);
        echo "

      <fieldset id=\"fieldset_mode\">
        <legend>
          ";
        // line 114
        echo _gettext("Create a new user account with the same privileges and …");
        // line 115
        echo "        </legend>

        <div class=\"form-group form-check\">
          <input class=\"form-check-input\" type=\"radio\" name=\"mode\" id=\"mode_4\" value=\"4\" checked>
          <label class=\"form-check-label\" for=\"mode_4\">
            ";
        // line 120
        echo _gettext("… keep the old one.");
        // line 121
        echo "          </label>
        </div>

        <div class=\"form-group form-check\">
          <input class=\"form-check-input\" type=\"radio\" name=\"mode\" id=\"mode_1\" value=\"1\">
          <label class=\"form-check-label\" for=\"mode_1\">
            ";
        // line 127
        echo _gettext("… delete the old one from the user tables.");
        // line 128
        echo "          </label>
        </div>

        <div class=\"form-group form-check\">
          <input class=\"form-check-input\" type=\"radio\" name=\"mode\" id=\"mode_2\" value=\"2\">
          <label class=\"form-check-label\" for=\"mode_2\">
            ";
        // line 134
        echo _gettext("… revoke all active privileges from the old one and delete it afterwards.");
        // line 135
        echo "          </label>
        </div>

        <div class=\"form-group form-check\">
          <input class=\"form-check-input\" type=\"radio\" name=\"mode\" id=\"mode_3\" value=\"3\">
          <label class=\"form-check-label\" for=\"mode_3\">
            ";
        // line 141
        echo _gettext("… delete the old one from the user tables and reload the privileges afterwards.");
        // line 142
        echo "          </label>
        </div>
      </fieldset>
    </fieldset>

    <fieldset id=\"fieldset_change_copy_user_footer\" class=\"tblFooters\">
      <input type=\"hidden\" name=\"change_copy\" value=\"1\">
      <input class=\"btn btn-primary\" type=\"submit\" value=\"";
        // line 149
        echo _gettext("Go");
        echo "\">
    </fieldset>
  </form>
</div>
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  356 => 149,  347 => 142,  345 => 141,  337 => 135,  335 => 134,  327 => 128,  325 => 127,  317 => 121,  315 => 120,  308 => 115,  306 => 114,  299 => 110,  295 => 108,  293 => 107,  289 => 106,  285 => 104,  279 => 102,  277 => 101,  273 => 100,  269 => 99,  265 => 98,  261 => 97,  256 => 95,  253 => 94,  250 => 93,  243 => 89,  239 => 88,  236 => 87,  234 => 85,  233 => 84,  230 => 83,  228 => 82,  225 => 81,  223 => 80,  217 => 77,  213 => 76,  210 => 75,  208 => 73,  205 => 72,  203 => 71,  200 => 70,  198 => 69,  193 => 67,  187 => 64,  182 => 62,  178 => 61,  175 => 60,  170 => 58,  165 => 57,  163 => 56,  160 => 55,  154 => 53,  152 => 52,  148 => 50,  140 => 48,  137 => 47,  131 => 44,  128 => 43,  125 => 42,  122 => 41,  119 => 40,  113 => 38,  111 => 37,  104 => 33,  101 => 32,  99 => 30,  98 => 29,  97 => 28,  96 => 27,  93 => 26,  91 => 25,  88 => 24,  85 => 23,  82 => 22,  79 => 21,  76 => 20,  74 => 19,  65 => 15,  62 => 14,  60 => 11,  59 => 10,  58 => 9,  55 => 8,  53 => 7,  50 => 6,  47 => 5,  45 => 4,  41 => 3,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "server/privileges/user_properties.twig", "/var/www/pma/templates/server/privileges/user_properties.twig");
    }
}
