From 96757857c41216443f44dd9e70416ff30c5bfaec Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 12 Feb 2012 10:50:41 +0000 Subject: [PATCH] Removed "clear:both" divs that break the issue form with long sidebar content. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8858 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_attributes.html.erb | 3 ++- app/views/issues/_form_custom_fields.html.erb | 3 ++- public/stylesheets/application.css | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/issues/_attributes.html.erb b/app/views/issues/_attributes.html.erb index 90d47a20c..7ac662e13 100644 --- a/app/views/issues/_attributes.html.erb +++ b/app/views/issues/_attributes.html.erb @@ -1,5 +1,6 @@ <% labelled_fields_for :issue, @issue do |f| %> +
<% if @issue.safe_attribute? 'status_id' %>

<%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %>

@@ -58,8 +59,8 @@

<%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>

<% end %>
+
-
<% if @issue.safe_attribute? 'custom_field_values' %> <%= render :partial => 'issues/form_custom_fields' %> <% end %> diff --git a/app/views/issues/_form_custom_fields.html.erb b/app/views/issues/_form_custom_fields.html.erb index 10539264c..33b0b848b 100644 --- a/app/views/issues/_form_custom_fields.html.erb +++ b/app/views/issues/_form_custom_fields.html.erb @@ -1,3 +1,4 @@ +
<% i = 0 %> <% split_on = (@issue.custom_field_values.size / 2.0).ceil - 1 %> @@ -9,4 +10,4 @@ <% i += 1 -%> <% end -%>
-
+
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 98407afc4..b7cd41da9 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -280,6 +280,7 @@ div.square { .contextual input, .contextual select {font-size:0.9em;} .message .contextual { margin-top: 0; } +.splitcontent {overflow:auto;} .splitcontentleft{float:left; width:49%;} .splitcontentright{float:right; width:49%;} form {display: inline;}