Skip to content

Commit 1c2fbd4

Browse files
committed
Fix error message not on new line
1 parent b896f0b commit 1c2fbd4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/templates/edit_password.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ <h1>{{ i18n.t('auth.edit_password_page_title') }}</h1>
1111
<div class="control-group">
1212
{{ form.password(placeholder=i18n.t('auth.new_password_placeholder'), type='password', autofocus=True, class_='login-field') }}
1313
{% if form.password.errors %}
14-
<span style="color: red;">
14+
<div style="color: red;">
1515
{% for error in form.password.errors %}
1616
{{ error }}
1717
{% endfor %}
18-
</span>
18+
</div>
1919
{% endif %}
2020
</div>
2121

2222
<div class="control-group">
2323
{{ form.password_confirmation(placeholder=i18n.t('auth.new_password_confirm_placeholder'), type='password', class_='login-field') }}
2424
{% for error in form.password_confirmation.errors %}
25-
<span style="color: red;">{{ error }}</span>
25+
<div style="color: red;">{{ error }}</div>
2626
{% endfor %}
2727
</div>
2828

src/templates/new_password.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1>{{ i18n.t('auth.new_password_form_title') }}</h1>
1717
<div class="control-group">
1818
{{ form.email(placeholder=i18n.t('auth.email_placeholder'), type='email', autofocus=False, class_='login-field') }}
1919
{% for error in form.email.errors %}
20-
<span style="color: red;">[{{ error }}]</span>
20+
<div style="color: red;">[{{ error }}]</div>
2121
{% endfor %}
2222
</div>
2323
{% endif %}

0 commit comments

Comments
 (0)