mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-04 22:40:30 +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>
|
||||
|
||||
<font color="white">
|
||||
<div style="
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 95vh;
|
||||
">
|
||||
<div style="
|
||||
text-align: center;
|
||||
">
|
||||
<div style="display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 95vh">
|
||||
<div style=" text-align: center; ">
|
||||
<h1>AdvLabDB</h1>
|
||||
<p>Database for labs</p>
|
||||
|
||||
<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" %}
|
||||
|
||||
<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() }}
|
||||
{{ render_form_errors(login_user_form) }}
|
||||
|
||||
<div style="
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
">
|
||||
<div style=" display: flex; justify-content: center; ">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
Email
|
||||
</td>
|
||||
<td>
|
||||
{{ login_user_form.email() }}
|
||||
</td>
|
||||
<td>Email</td>
|
||||
<td>{{ login_user_form.email() }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Password
|
||||
</td>
|
||||
<td>
|
||||
{{ login_user_form.password() }}
|
||||
</td>
|
||||
<td>Password</td>
|
||||
<td>{{ login_user_form.password() }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% if login_user_form.email.errors %}
|
||||
<ul>
|
||||
{% for error in login_user_form.email.errors %}
|
||||
<li class="fs-error-msg">{{ error }}</li>
|
||||
{% endfor %}
|
||||
{% for error in login_user_form.email.errors %}<li class="fs-error-msg">{{ error }}</li>{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% if login_user_form.password.errors %}
|
||||
<ul>
|
||||
{% for error in login_user_form.password.errors %}
|
||||
<li class="fs-error-msg">{{ error }}</li>
|
||||
{% endfor %}
|
||||
{% for error in login_user_form.password.errors %}<li class="fs-error-msg">{{ error }}</li>{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
|
@ -85,9 +72,7 @@
|
|||
|
||||
{% if login_user_form.remember.errors %}
|
||||
<ul>
|
||||
{% for error in login_user_form.remember.errors %}
|
||||
<li class="fs-error-msg">{{ error }}</li>
|
||||
{% endfor %}
|
||||
{% for error in login_user_form.remember.errors %}<li class="fs-error-msg">{{ error }}</li>{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue