<?php

/* install/step3.html.twig */
class __TwigTemplate_09f07bd8403c0400c8325d68b0a5213346fa0adc34f279b4b82d6a325957ad1f extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("install/install.html.twig", "install/step3.html.twig", 1);
        $this->blocks = array(
            'content' => array($this, 'block_content'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "install/install.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_content($context, array $blocks = array())
    {
        // line 4
        echo "    <div id=\"step_3\">
        <div class=\"alert alert-info\">
            ";
        // line 6
        echo gettext("<strong>Atenção:</strong> O banco de dados especificado precisa existir. A aplicação procurará por versões anteriores para atualizar o banco. Caso não exista uma versão, ou não queira atualizar, certifique-se que a banco esteja vazio.");
        // line 7
        echo "        </div>
        <form role=\"form\" onsubmit=\"return false\">
            <fieldset>
                <legend>";
        // line 10
        echo gettext("Banco de Dados");
        echo "</legend>
                <div id=\"db_test_success\" class=\"alert alert-success\" style=\"display: none\">
                </div>
                <div id=\"db_test_error\" class=\"alert alert-danger\" style=\"display: none\">
                </div>
                <div class=\"form-group\">
                    <label>Tipo:</label>
                    <abbr class=\"db-type\" title=\"";
        // line 17
        echo gettext("Escolhido no passo 1");
        echo "\">";
        echo twig_escape_filter($this->env, (isset($context["rdmsName"]) ? $context["rdmsName"] : null), "html", null, true);
        echo "</abbr>
                </div>
                <div class=\"form-group\">
                    <label for=\"host\">Host:</label>
                    <input type=\"text\" id=\"host\" class=\"form-control\" onchange=\"SGA.Install.onChangeData()\" />
                </div>
                <div class=\"form-group\">
                    <label for=\"port\">";
        // line 24
        echo gettext("Porta");
        echo ":</label>
                    <input type=\"text\" id=\"port\" class=\"form-control\" onchange=\"SGA.Install.onChangeData()\" />
                </div>
                <div class=\"form-group\">
                    <label for=\"user\">";
        // line 28
        echo gettext("Usuário");
        echo ":</label>
                    <input type=\"text\" id=\"user\" class=\"form-control\" onchange=\"SGA.Install.onChangeData()\" />
                </div>
                <div class=\"form-group\">
                    <label for=\"password\">";
        // line 32
        echo gettext("Senha");
        echo ":</label>
                    <input type=\"password\" id=\"password\" class=\"form-control\" onchange=\"SGA.Install.onChangeData()\" />
                </div>
                <div class=\"form-group\">
                    <label for=\"dbname\">Database:</label>
                    <input type=\"text\" id=\"dbname\" class=\"form-control\" onchange=\"SGA.Install.onChangeData()\" />
                </div>
                <div class=\"form-group\">
                    <label for=\"dbname\">Charset:</label>
                    <input type=\"text\" id=\"charset\" class=\"form-control\" onchange=\"SGA.Install.onChangeData()\" />
                </div>
                <div class=\"alert alert-block\">
                    ";
        // line 44
        echo gettext("É necessário testar o banco antes de prosseguir.");
        // line 45
        echo "                    <button id=\"btn_test_db\" class=\"btn btn-default\" onclick=\"SGA.Install.testDB()\"
                            title=\"";
        // line 46
        echo gettext("Clique para testar a conexão com o Banco de Dados.");
        echo "\">";
        echo gettext("Testar");
        echo "</button>
                </div>
            </fieldset>
        </form>
        <script type=\"text/javascript\">
            ";
        // line 51
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "database", array()));
        foreach ($context['_seq'] as $context["field"] => $context["message"]) {
            // line 52
            echo "            SGA.Install.dbData.";
            echo twig_escape_filter($this->env, $context["field"], "html", null, true);
            echo " = \"";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "database", array()), $context["field"], array(), "array"), "html", null, true);
            echo "\";
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['field'], $context['message'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 54
        echo "            SGA.Install.loadDatabaseData();
        </script>
    </div>
";
    }

    public function getTemplateName()
    {
        return "install/step3.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  123 => 54,  112 => 52,  108 => 51,  98 => 46,  95 => 45,  93 => 44,  78 => 32,  71 => 28,  64 => 24,  52 => 17,  42 => 10,  37 => 7,  35 => 6,  31 => 4,  28 => 3,  11 => 1,);
    }
}
