nuosso/templates/Home/loginHYDRA.html.twig

37 lines
1.0 KiB
Twig
Executable File

{% extends "base.html.twig" %}
{% block body %}
<div style="text-align:center">
{% if mode=="SQL" %}
{% set route="app_hydra_checkloginsql" %}
{% else %}
{% set route="app_hydra_checkloginldap" %}
{% endif %}
{{ form_start(form, {'action': path(route), 'method': 'POST'}) }}
<div class="card homecard mb-3" style="width:400px; margin:auto; text-align: left;">
<div class="card-body">
{% if error is defined and not error is empty %}
<div class='alert alert-danger' style='margin: 5px 0px'>
{{ error }}
</div>
{% endif %}
{{ form_row(form.username) }}
{{ form_row(form.password) }}
{{ form_row(form.submit) }}
</div>
</div>
{{ form_end(form) }}
</div>
{% endblock %}
{% block localscript %}
<script>
$(document).ready(function() {
$("#login_username").focus();
});
</script>
{% endblock %}