Permalink
Browse files

Cleanup indention and spacing and turn errorExplanation into error_ex…

…planation now that nobody depends on it anymore
  • Loading branch information...
1 parent 5c89727 commit 8116a2b981b7382c467f84597e92156385f037d7 @dhh dhh committed Apr 13, 2010
@@ -1,13 +1,14 @@
<%%= form_for(@<%= singular_name %>) do |f| %>
<%% if @<%= singular_name %>.errors.any? %>
- <div id="errorExplanation">
- <h2><%%= pluralize(@<%= singular_name %>.errors.count, "error") %> prohibited this <%= singular_name %> from being saved:</h2>
- <ul>
- <%% @<%= singular_name %>.errors.full_messages.each do |msg| %>
- <li><%%= msg %></li>
- <%% end %>
- </ul>
- </div>
+ <div id="error_explanation">
+ <h2><%%= pluralize(@<%= singular_name %>.errors.count, "error") %> prohibited this <%= singular_name %> from being saved:</h2>
+
+ <ul>
+ <%% @<%= singular_name %>.errors.full_messages.each do |msg| %>
+ <li><%%= msg %></li>
+ <%% end %>
+ </ul>
+ </div>
<%% end %>
<% for attribute in attributes -%>
@@ -34,7 +34,7 @@ div.field, div.actions {
display: table;
}
-#errorExplanation {
+#error_explanation {
width: 450px;
border: 2px solid red;
padding: 7px;
@@ -43,7 +43,7 @@ div.field, div.actions {
background-color: #f0f0f0;
}
-#errorExplanation h2 {
+#error_explanation h2 {
text-align: left;
font-weight: bold;
padding: 5px 5px 5px 15px;
@@ -54,7 +54,7 @@ div.field, div.actions {
color: #fff;
}
-#errorExplanation ul li {
+#error_explanation ul li {
font-size: 12px;
list-style: square;
}

0 comments on commit 8116a2b

Please sign in to comment.