Styled error messages

This commit is contained in:
Jef van Schendel 2011-05-28 21:02:34 +02:00
parent 9ef7c0f737
commit 716a0ac3f1
2 changed files with 67 additions and 63 deletions

View File

@ -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;
}

View File

@ -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 %}