wrong password now has close button looking consistent AND actually closes alert
This commit is contained in:
@@ -27,7 +27,10 @@
|
||||
<div class="container">
|
||||
{% if form.errors|length > 0 %}
|
||||
<div class="row my-5">
|
||||
<alert class="alert alert-danger alert-dismissible fade show">
|
||||
<alert id="err" class="alert alert-danger alert-dismissible fade show">
|
||||
<button type="button" class="close btn border-secondary me-3" data-dismiss="alert" aria-label="Close" onClick="$('#err').hide()">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
{% set last_err = namespace(txt="") %}
|
||||
{% for e in form.errors %}
|
||||
{% if last_err.txt != form.errors[e] %}
|
||||
@@ -37,9 +40,6 @@
|
||||
{% set last_err.txt=form.errors[e] %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</alert>
|
||||
</div class="row">
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user