integration hydra apps
This commit is contained in:
34
templates/Home/loginHYDRA.html.twig
Executable file
34
templates/Home/loginHYDRA.html.twig
Executable file
@ -0,0 +1,34 @@
|
||||
{% extends "base.html.twig" %}
|
||||
|
||||
{% block body %}
|
||||
<div style="text-align:center">
|
||||
<img src="{{ path('app_minio_image',{file:"uploads/logo/"~app.session.get("logolight")}) }}" style="height:120px;margin-top:10px;margin-bottom:20px;">
|
||||
<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 %}
|
Reference in New Issue
Block a user