2022-08-27 18:24:56 +02:00
|
|
|
{% extends "base.html.twig" %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<div style="text-align:center">
|
2022-08-31 11:20:22 +02:00
|
|
|
<img src="{{ path('app_minio_image',{file:"logo/"~app.session.get("logolight")}) }}" style="height:120px;margin-top:10px;margin-bottom:20px;">
|
2022-08-27 18:24:56 +02:00
|
|
|
<h1 style="border:none">{{app.session.get('appname')}}</h1>
|
|
|
|
{% 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">
|
|
|
|
{{ form_row(form.username) }}
|
|
|
|
{{ form_row(form.password) }}
|
|
|
|
{{ form_row(form.submit) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% if mode == "SQL"%}
|
|
|
|
<a href="{{path("app_resetpwd01")}}" class="mt-3">Mot de passe oublié ?</a>
|
|
|
|
{% endif %}
|
|
|
|
{{ form_end(form) }}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block localscript %}
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$("#login_username").focus();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|