wrong password now has close button looking consistent AND actually closes alert

This commit is contained in:
2021-10-08 22:31:31 +11:00
parent a4574390ec
commit 911d43bddc
2 changed files with 6 additions and 7 deletions

View File

@@ -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">&times;</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">&times;</span>
</button>
</alert>
</div class="row">
{% endif %}