Changed AR error messages style (same as flash errors).

Fixed flash styles for IE6.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@610 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2007-08-12 11:25:25 +00:00
1 parent 58ea44a462
commit e9ba8a4494
5 files changed
+15 -40

No files matched your search

+1 -1
View File
@@ -211,7 +211,7 @@ module ApplicationHelper
end
content_tag("div",
content_tag(
options[:header_tag] || "h2", lwr(:gui_validation_error, full_messages.length) + " :"
options[:header_tag] || "span", lwr(:gui_validation_error, full_messages.length) + ":"
) +
content_tag("ul", full_messages.collect { |msg| content_tag("li", msg) }),
"id" => options[:id] || "errorExplanation", "class" => options[:class] || "errorExplanation"
+4 -2
View File
@@ -138,8 +138,10 @@
</div>
<div id="content">
<%= content_tag('div', flash[:error], :id => 'flash', :class => 'error') if flash[:error] %>
<%= content_tag('div', flash[:notice], :id => 'flash', :class => 'notice') if flash[:notice] %>
<div id="flash">
<%= content_tag('div', flash[:error], :class => 'error') if flash[:error] %>
<%= content_tag('div', flash[:notice], :class => 'notice') if flash[:notice] %>
</div>
<%= yield %>
</div>