Merge "Form errors should be very apparent."

This commit is contained in:
Jenkins 2012-03-05 22:28:45 +00:00 committed by Gerrit Code Review
commit 874e72b16a
3 changed files with 10 additions and 1 deletions

View File

@ -28,6 +28,7 @@ Jeffrey Wilcox <jeffjapan@gmail.com>
Jesse Andrews <anotherjesse@gmail.com>
Joe Heck <heckj@mac.com>
Joseph Heck <heckj@mac.com>
Joshua McKenty <joshua@pistoncloud.com>
Julien Danjou <julien.danjou@enovance.com>
Ken Pepple <ken.pepple@gmail.com>
lzyeval <lzyeval@gmail.com>

View File

@ -7,7 +7,7 @@
</div>
{% endif %}
{% for field in form.visible_fields %}
<div class="form-field clearfix{% if field.errors %} error{% endif %}">
<div class="control-group form-field clearfix{% if field.errors %} error{% endif %}">
{{ field.label_tag }}
{% if field.errors %}
{% for error in field.errors %}

View File

@ -913,3 +913,11 @@ iframe {
float: left;
margin-right: 50px;
}
.error .help-inline {
background: #efdfdf;
border: 1px solid #ead5d8;
padding: 10px;
display: block;
width: 304px;
}