<?php

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

        // line 1
        $this->parent = $this->loadTemplate("install/install.html.twig", "install/step4.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_4\">
        ";
        // line 5
        if ((isset($context["currVersion"]) ? $context["currVersion"] : null)) {
            // line 6
            echo "        <h2>";
            echo gettext("Uma versão já instalada do Novo SGA foi identificada.");
            echo "</h2>
        <p>";
            // line 7
            echo strtr(gettext("Foi identificado que o banco de dados atual possui a versão %currVersion% do Novo SGA."), array("%currVersion%" => (isset($context["currVersion"]) ? $context["currVersion"] : null), ));
            echo "</p>
        <p>";
            // line 8
            echo gettext("O instalador irá executar os scripts de migração para atualizar o banco. Caso você não queira atualizar, certifique-se que o banco esteja vazio e recarregue essa página.");
            echo "</p>
        <script type=\"text/javascript\">SGA.Install.isMigration = true;</script>
        ";
        } else {
            // line 11
            echo "        <form role=\"form\" onsubmit=\"return false\">
            <fieldset>
                <legend>";
            // line 13
            echo gettext("Administrador");
            echo "</legend>
                <div id=\"db_admin_error\" class=\"alert alert-danger\" style=\"display: none\"></div>
                <div class=\"form-group\">
                    <label for=\"nome\">";
            // line 16
            echo gettext("Nome");
            echo ":</label>
                    <input type=\"text\" id=\"nome\" class=\"form-control\" />
                </div>
                <div class=\"form-group\">
                    <label for=\"sobrenome\">";
            // line 20
            echo gettext("Sobrenome");
            echo ":</label>
                    <input type=\"text\" id=\"sobrenome\" class=\"form-control\" />
                </div>
                <div class=\"form-group\">
                    <label for=\"login\">";
            // line 24
            echo gettext("Usuário");
            echo ":</label>
                    <input type=\"text\" id=\"login\" onkeyup=\"SGA.Form.loginValue(this)\" maxlength=\"20\" class=\"form-control\" />
                </div>
                <div class=\"form-group\">
                    <label for=\"senha\">";
            // line 28
            echo gettext("Senha");
            echo ":</label>
                    <input type=\"password\" id=\"senha\" class=\"form-control\" />
                </div>
                <div class=\"form-group\">
                    <label for=\"senha_2\">";
            // line 32
            echo gettext("Confirmar Senha");
            echo ":</label>
                    <input type=\"password\" id=\"senha_2\" class=\"form-control\" />
                </div>
                <script type=\"text/javascript\">
                    ";
            // line 36
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "admin", array()));
            foreach ($context['_seq'] as $context["field"] => $context["message"]) {
                // line 37
                echo "                    SGA.Install.adminData.";
                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), "admin", 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 39
            echo "                    SGA.Install.loadAdminData();
                </script>
            </fieldset>
        </form>
        ";
        }
        // line 44
        echo "    </div>
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  118 => 44,  111 => 39,  100 => 37,  96 => 36,  89 => 32,  82 => 28,  75 => 24,  68 => 20,  61 => 16,  55 => 13,  51 => 11,  45 => 8,  41 => 7,  36 => 6,  34 => 5,  31 => 4,  28 => 3,  11 => 1,);
    }
}
