Minor fix. #43

This commit is contained in:
Éloi Rivard 2021-01-01 15:34:48 +01:00
parent 8d9a11a2e4
commit 801031f3b1

View file

@ -33,7 +33,7 @@
{{ form.hidden_tag() if form.hidden_tag }}
{{ sui.render_field(form.login, icon="user") }}
<button type="submit" class="ui right floated {% if request.method == "POST" and not form.errors %}primary {% endif %}button">
<button type="submit" class="ui right floated {% if request.method != "POST" or form.errors %}primary {% endif %}button">
{% if request.method == "POST" %}
{{ _("Send again") }}
{% else %}