Styled error messages
This commit is contained in:
parent
9ef7c0f737
commit
716a0ac3f1
@ -23,8 +23,6 @@ h1 {
|
||||
margin-top:40px;
|
||||
}
|
||||
|
||||
28px
|
||||
|
||||
a {
|
||||
color: #86D4B1;
|
||||
}
|
||||
@ -109,9 +107,17 @@ label {
|
||||
}
|
||||
|
||||
.form_field_box {
|
||||
margin-bottom:20px;
|
||||
margin-bottom:24px;
|
||||
}
|
||||
|
||||
.form_field_label {
|
||||
.form_field_label,.form_field_input {
|
||||
margin-bottom:4px;
|
||||
}
|
||||
|
||||
.form_field_error {
|
||||
background-color:#87453b;
|
||||
border:none;
|
||||
font-size:16px;
|
||||
padding:9px;
|
||||
margin-top:8px;
|
||||
}
|
||||
|
@ -26,13 +26,11 @@
|
||||
{%- endif %}
|
||||
<div class="form_field_input">{{ field }}</div>
|
||||
{%- if field.errors -%}
|
||||
<div class="form_field_errors">
|
||||
<ul>
|
||||
{% for error in field.errors %}
|
||||
<li>{{ error }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="form_field_error">
|
||||
{{ error }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{%- endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user