Form errors should be very apparent.

* Adding the required control-group css class to the form fields.
  * bug #898808

Change-Id: I1c09200e1e58204f5e651d57967f4e3aa4c41919
This commit is contained in:
Joshua McKenty 2012-03-01 23:40:25 +00:00 committed by jakedahn
parent a6c39e5ba6
commit 86bb083c9d
3 changed files with 10 additions and 1 deletions

View File

@ -27,6 +27,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

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