optimize ui
add new ki endpoint params
This commit is contained in:
@@ -3,34 +3,71 @@
|
||||
{% block title %}Admin Login{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="row justify-content-center">
|
||||
|
||||
<div class="row justify-content-center align-items-center" style="min-height:70vh;">
|
||||
<div class="col-12 col-md-5 col-lg-4">
|
||||
|
||||
<h1 class="h4 mb-3">Admin Login</h1>
|
||||
<div class="card bg-black border-secondary text-info">
|
||||
<div class="card-body">
|
||||
|
||||
<h1 class="h4 mb-4 text-center text-info">
|
||||
mitho® KI RAG Login
|
||||
</h1>
|
||||
|
||||
{% if error %}
|
||||
<div class="alert alert-danger">
|
||||
{{ error.messageKey|trans(error.messageData, 'security') }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action="{{ path('admin_login') }}">
|
||||
|
||||
{# ============================= #}
|
||||
{# Email #}
|
||||
{# ============================= #}
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">E-Mail</label>
|
||||
<input class="form-control bg-dark text-light border-secondary"
|
||||
name="_username"
|
||||
value="{{ last_username }}"
|
||||
autocomplete="email"
|
||||
required>
|
||||
</div>
|
||||
|
||||
{# ============================= #}
|
||||
{# Passwort #}
|
||||
{# ============================= #}
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="form-label">Passwort</label>
|
||||
<input class="form-control bg-dark text-light border-secondary"
|
||||
type="password"
|
||||
name="_password"
|
||||
autocomplete="current-password"
|
||||
required>
|
||||
</div>
|
||||
|
||||
{# CSRF #}
|
||||
<input type="hidden"
|
||||
name="_csrf_token"
|
||||
value="{{ csrf_token('authenticate') }}">
|
||||
|
||||
<button class="btn btn-outline-info w-100"
|
||||
type="submit">
|
||||
Einloggen
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
{% if error %}
|
||||
<div class="alert alert-danger">
|
||||
{{ error.messageKey|trans(error.messageData, 'security') }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<form method="post" action="{{ path('admin_login') }}">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">E-Mail</label>
|
||||
<input class="form-control" name="_username" value="{{ last_username }}" autocomplete="email" required>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Passwort</label>
|
||||
<input class="form-control" type="password" name="_password" autocomplete="current-password" required>
|
||||
</div>
|
||||
|
||||
{# CSRF #}
|
||||
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
|
||||
|
||||
<button class="btn btn-light w-100" type="submit">Einloggen</button>
|
||||
</form>
|
||||
<div class="text-center mt-3 small text-secondary">
|
||||
Zugriff nur für autorisierte Administratoren.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user