mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Add login view message
This commit is contained in:
parent
341c00cfb0
commit
c1593abd86
1 changed files with 20 additions and 35 deletions
|
@ -17,65 +17,52 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<font color="white">
|
<font color="white">
|
||||||
<div style="
|
<div style="display: flex;
|
||||||
display: flex;
|
justify-content: center;
|
||||||
justify-content: center;
|
align-items: center;
|
||||||
align-items: center;
|
height: 95vh">
|
||||||
height: 95vh;
|
<div style=" text-align: center; ">
|
||||||
">
|
|
||||||
<div style="
|
|
||||||
text-align: center;
|
|
||||||
">
|
|
||||||
<h1>AdvLabDB</h1>
|
<h1>AdvLabDB</h1>
|
||||||
<p>Database for labs</p>
|
<p>Database for labs</p>
|
||||||
|
|
||||||
<h2>Login</h2>
|
<h2>Login</h2>
|
||||||
|
|
||||||
|
{% if message %}
|
||||||
|
<div style="background-color: rgba(255,200,0,0.2); padding: 10px;">{{ message | safe }}</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% include "security/_messages.html" %}
|
{% include "security/_messages.html" %}
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<form action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
|
<form action="{{ url_for_security('login') }}"
|
||||||
|
method="POST"
|
||||||
|
name="login_user_form">
|
||||||
{{ login_user_form.hidden_tag() }}
|
{{ login_user_form.hidden_tag() }}
|
||||||
{{ render_form_errors(login_user_form) }}
|
{{ render_form_errors(login_user_form) }}
|
||||||
|
|
||||||
<div style="
|
<div style=" display: flex; justify-content: center; ">
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
">
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>Email</td>
|
||||||
Email
|
<td>{{ login_user_form.email() }}</td>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ login_user_form.email() }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>Password</td>
|
||||||
Password
|
<td>{{ login_user_form.password() }}</td>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ login_user_form.password() }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if login_user_form.email.errors %}
|
{% if login_user_form.email.errors %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for error in login_user_form.email.errors %}
|
{% for error in login_user_form.email.errors %}<li class="fs-error-msg">{{ error }}</li>{% endfor %}
|
||||||
<li class="fs-error-msg">{{ error }}</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if login_user_form.password.errors %}
|
{% if login_user_form.password.errors %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for error in login_user_form.password.errors %}
|
{% for error in login_user_form.password.errors %}<li class="fs-error-msg">{{ error }}</li>{% endfor %}
|
||||||
<li class="fs-error-msg">{{ error }}</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -85,9 +72,7 @@
|
||||||
|
|
||||||
{% if login_user_form.remember.errors %}
|
{% if login_user_form.remember.errors %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for error in login_user_form.remember.errors %}
|
{% for error in login_user_form.remember.errors %}<li class="fs-error-msg">{{ error }}</li>{% endfor %}
|
||||||
<li class="fs-error-msg">{{ error }}</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue