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