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

/* login/form.twig */
class __TwigTemplate_a5fa8ea06113bbc308779c9a48fab9ee8f47e27381d6c6dd12bd71856cffec1b extends \Twig\Template
{
    private $source;
    private $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
            '__internal_d13df5bde54a0ad262ab3d194d71004346d1a2c672b8e57a28d9e6935e036cbb' => [$this, 'block___internal_d13df5bde54a0ad262ab3d194d71004346d1a2c672b8e57a28d9e6935e036cbb'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo ($context["login_header"] ?? null);
        echo "

";
        // line 3
        if (($context["is_demo"] ?? null)) {
            // line 4
            echo "  <fieldset>
    <legend>";
            // line 5
            echo _gettext("phpMyAdmin Demo Server");
            echo "</legend>
    ";
            // line 6
            echo sprintf(            $this->renderBlock("__internal_d13df5bde54a0ad262ab3d194d71004346d1a2c672b8e57a28d9e6935e036cbb", $context, $blocks), "<a href=\"url.php?url=https://demo.phpmyadmin.net/\" target=\"_blank\" rel=\"noopener noreferrer\">demo.phpmyadmin.net</a>");
            // line 11
            echo "  </fieldset>
";
        }
        // line 13
        echo "
";
        // line 14
        echo ($context["error_messages"] ?? null);
        echo "

";
        // line 16
        if (($context["has_languages"] ?? null)) {
            // line 17
            echo "  <div class='hide js-show'>
    ";
            // line 18
            echo ($context["language_selector"] ?? null);
            echo "
  </div>
";
        }
        // line 21
        echo "
<form method=\"post\" id=\"login_form\" action=\"index.php?route=/\" name=\"login_form\" class=\"";
        // line 23
        echo (( !($context["is_session_expired"] ?? null)) ? ("disableAjax hide ") : (""));
        echo "login js-show form-horizontal\"";
        echo (( !($context["has_autocomplete"] ?? null)) ? (" autocomplete=\"off\"") : (""));
        echo ">
  <fieldset>
    <legend class=\"col-form-label\">
      <input type=\"hidden\" name=\"set_session\" value=\"";
        // line 26
        echo twig_escape_filter($this->env, ($context["session_id"] ?? null), "html", null, true);
        echo "\">
      ";
        // line 27
        if (($context["is_session_expired"] ?? null)) {
            // line 28
            echo "        <input type=\"hidden\" name=\"session_timedout\" value=\"1\">
      ";
        }
        // line 30
        echo "      ";
        echo _gettext("Log in");
        // line 31
        echo "      ";
        echo PhpMyAdmin\Util::showDocu("index");
        echo "
    </legend>

    ";
        // line 34
        if (($context["is_arbitrary_server_allowed"] ?? null)) {
            // line 35
            echo "      <div class=\"item form-group\">
        <label for=\"input_servername\" title=\"";
            // line 36
            echo _gettext("You can enter hostname/IP address and port separated by space.");
            echo "\">
          ";
            // line 37
            echo _gettext("Server:");
            // line 38
            echo "        </label>
        <input type=\"text\" name=\"pma_servername\" id=\"input_servername\" value=\"";
            // line 39
            echo twig_escape_filter($this->env, ($context["default_server"] ?? null), "html", null, true);
            echo "\" size=\"24\" class=\"textfield\" title=\"";
            // line 40
            echo _gettext("You can enter hostname/IP address and port separated by space.");
            echo "\">
      </div>
    ";
        }
        // line 43
        echo "
    <div class=\"item form-row\">
      <label for=\"input_username\" class=\"col-3 d-flex align-items-center\">
        ";
        // line 46
        echo _gettext("Username:");
        // line 47
        echo "      </label>
      <div class=\"col-8\">
        <input type=\"text\" name=\"pma_username\" id=\"input_username\" value=\"";
        // line 49
        echo twig_escape_filter($this->env, ($context["default_user"] ?? null), "html", null, true);
        echo "\" size=\"24\" class=\"textfield form-control\">
      </div>
    </div>

    <div class=\"item form-row\">
      <label for=\"input_password\" class=\"col-3 d-flex align-items-center\">
        ";
        // line 55
        echo _gettext("Password:");
        // line 56
        echo "      </label>
      <div class=\"col-8\">
        <input type=\"password\" name=\"pma_password\" id=\"input_password\" value=\"\" size=\"24\" class=\"textfield form-control\">
      </div>
    </div>

    ";
        // line 62
        if (($context["has_servers"] ?? null)) {
            // line 63
            echo "      <div class=\"item\">
        <label for=\"select_server\">
          ";
            // line 65
            echo _gettext("Server choice:");
            // line 66
            echo "        </label>
        <select name=\"server\" id=\"select_server\"";
            // line 67
            echo ((($context["is_arbitrary_server_allowed"] ?? null)) ? (" onchange=\"document.forms['login_form'].elements['pma_servername'].value = ''\"") : (""));
            echo ">
          ";
            // line 68
            echo ($context["server_options"] ?? null);
            echo "
        </select>
      </div>
    ";
        } else {
            // line 72
            echo "      <input type=\"hidden\" name=\"server\" value=\"";
            echo twig_escape_filter($this->env, ($context["server"] ?? null), "html", null, true);
            echo "\">
    ";
        }
        // line 74
        echo "  </fieldset>

  <fieldset class=\"tblFooters\">
    ";
        // line 77
        if (($context["has_captcha"] ?? null)) {
            // line 78
            echo "      <script src=\"https://www.google.com/recaptcha/api.js?hl=";
            echo twig_escape_filter($this->env, ($context["lang"] ?? null), "html", null, true);
            echo "\" async defer></script>
      <input class=\"btn btn-primary g-recaptcha\" data-sitekey=\"";
            // line 79
            echo twig_escape_filter($this->env, ($context["captcha_key"] ?? null), "html", null, true);
            echo "\" data-callback=\"Functions.recaptchaCallback\" value=\"";
            echo _gettext("Go");
            echo "\" type=\"submit\" id=\"input_go\">
    ";
        } else {
            // line 81
            echo "      <input class=\"btn btn-primary\" value=\"";
            echo _gettext("Go");
            echo "\" type=\"submit\" id=\"input_go\">
    ";
        }
        // line 83
        echo "    ";
        // line 84
        echo "    ";
        echo PhpMyAdmin\Url::getHiddenInputs(($context["form_params"] ?? null), "", 0, "server");
        echo "
  </fieldset>
</form>

";
        // line 88
        if ( !twig_test_empty(($context["errors"] ?? null))) {
            // line 89
            echo "  <div id=\"pma_errors\">
    ";
            // line 90
            echo ($context["errors"] ?? null);
            echo "
  </div>
  </div>
  </div>
";
        }
        // line 95
        echo "
";
        // line 96
        echo ($context["login_footer"] ?? null);
        echo "

";
        // line 98
        echo ($context["config_footer"] ?? null);
        echo "
";
    }

    // line 6
    public function block___internal_d13df5bde54a0ad262ab3d194d71004346d1a2c672b8e57a28d9e6935e036cbb($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 7
        echo "      ";
        echo _gettext("You are using the demo server. You can do anything here, but please do not change root, debian-sys-maint and pma users. More information is available at %s.");
        // line 10
        echo "    ";
    }

    public function getTemplateName()
    {
        return "login/form.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  258 => 10,  255 => 7,  251 => 6,  245 => 98,  240 => 96,  237 => 95,  229 => 90,  226 => 89,  224 => 88,  216 => 84,  214 => 83,  208 => 81,  201 => 79,  196 => 78,  194 => 77,  189 => 74,  183 => 72,  176 => 68,  172 => 67,  169 => 66,  167 => 65,  163 => 63,  161 => 62,  153 => 56,  151 => 55,  142 => 49,  138 => 47,  136 => 46,  131 => 43,  125 => 40,  122 => 39,  119 => 38,  117 => 37,  113 => 36,  110 => 35,  108 => 34,  101 => 31,  98 => 30,  94 => 28,  92 => 27,  88 => 26,  80 => 23,  77 => 21,  71 => 18,  68 => 17,  66 => 16,  61 => 14,  58 => 13,  54 => 11,  52 => 6,  48 => 5,  45 => 4,  43 => 3,  38 => 1,);
    }

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