${ util.include('header', [title:'Setup: ' + page.title]) }
<div class="panel panel-default">
    <div class="panel-heading panel-xs">
        <h4>You have selected ${setup.config.dbType} database. This database needs additional configuration parameters. Please enter all required information.</h4>
    </div>
    <div class="panel-body">
<form method='POST' action="?step=${ page.nextPage() }">
<% page.getQuestions().each { q -> %>
    <div class="form-group">
        <% if (q.getName().endsWith("useSSL") || q.getName().endsWith("useLegacyDatetimeCode")) { %>
        <label class="col-sm-6 control-label" style="margin-left: -15px; padding-top: 7px;" for='${q.getName()}'><%= q.getLabel() %></label>
        <div class="col-sm-6">
            <input class="form-control" type='checkbox' size='30' name='${q.getName()}' <% if (q.isSelected("true")) { %>checked<% } %> />
        </div>
        <% } else { %>
        <label class="control-label" for='${q.getName()}'><%= q.getLabel() %></label>
        <input class="form-control" type='${q.isSecret() ? "password" : "text"}' size='90' name='${q.getName()}' value='${q.getValue() ?: ""}' />
        <% } %>
    </div>
<% } %>
    </div>
</div>

    <button class="btn btn-default" type="submit">Next</button>

</form>
${ util.include('footer') } 