<?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;
/* server/privileges/add_user.twig */
class __TwigTemplate_779a84b6f64f2c24d0d34f77953f28cb 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 1
yield "<h2>
";
// line 2
yield PhpMyAdmin\Html\Generator::getIcon("b_usradd");
yield "
";
yield _gettext("Add user account");
// line 4
yield "</h2>
<form name=\"usersForm\" id=\"addUsersForm\" action=\"";
// line 6
yield PhpMyAdmin\Url::getFromRoute("/server/privileges");
yield "\" method=\"post\" autocomplete=\"off\">
";
// line 7
yield PhpMyAdmin\Url::getHiddenInputs();
yield "
";
// line 9
yield ($context["login_information_fields_new"] ?? null);
yield "
<fieldset class=\"pma-fieldset\" id=\"fieldset_add_user_database\">
<legend>";
yield _gettext("Database for user account");
// line 12
yield "</legend>
<input type=\"checkbox\" name=\"createdb-1\" id=\"createdb-1\">
<label for=\"createdb-1\">";
yield _gettext("Create database with same name and grant all privileges.");
// line 15
yield "</label>
<br>
<input type=\"checkbox\" name=\"createdb-2\" id=\"createdb-2\">
<label for=\"createdb-2\">";
yield _gettext("Grant all privileges on wildcard name (username\\_%).");
// line 19
yield "</label>
<br>
";
// line 22
if ( !Twig\Extension\CoreExtension::testEmpty(($context["database"] ?? null))) {
// line 23
yield " <input type=\"checkbox\" name=\"createdb-3\" id=\"createdb-3\" checked>
<label for=\"createdb-3\">";
// line 24
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::sprintf(_gettext("Grant all privileges on database %s."), ($context["database"] ?? null)), "html", null, true);
yield "</label>
<input type=\"hidden\" name=\"dbname\" value=\"";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["database"] ?? null), "html", null, true);
yield "\">
<br>
";
}
// line 28
yield " </fieldset>
";
// line 30
if (($context["is_grant_user"] ?? null)) {
// line 31
yield " ";
yield ($context["privileges_table"] ?? null);
yield "
";
}
// line 33
yield "
<fieldset id=\"fieldset_add_user_footer\" class=\"pma-fieldset tblFooters\">
<input type=\"hidden\" name=\"adduser_submit\" value=\"1\">
<input class=\"btn btn-primary\" type=\"submit\" id=\"adduser_submit\" value=\"";
yield _gettext("Go");
// line 36
yield "\">
</fieldset>
</form>
";
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "server/privileges/add_user.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 121 => 36, 115 => 33, 109 => 31, 107 => 30, 103 => 28, 97 => 25, 93 => 24, 90 => 23, 88 => 22, 83 => 19, 76 => 15, 70 => 12, 63 => 9, 58 => 7, 54 => 6, 50 => 4, 45 => 2, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("", "server/privileges/add_user.twig", "/usr/share/phpmyadmin/templates/server/privileges/add_user.twig");
}
}