From f5b5688e8ad80dbfc3b2da13ac0ae245f541da48 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 16 Mar 2008 14:31:17 +0000 Subject: [PATCH] Move the filters buttons inside the filters fieldset on the issue list (closes #614). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1262 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/index.rhtml | 6 +++--- app/views/queries/_columns.rhtml | 4 ++-- app/views/queries/_filters.rhtml | 2 -- app/views/queries/_form.rhtml | 3 +++ public/stylesheets/application.css | 3 +++ 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/views/issues/index.rhtml b/app/views/issues/index.rhtml index d3408fa99..d212ab6bb 100644 --- a/app/views/issues/index.rhtml +++ b/app/views/issues/index.rhtml @@ -4,8 +4,9 @@ <% form_tag({ :controller => 'queries', :action => 'new' }, :id => 'query_form') do %> <%= hidden_field_tag('project_id', @project.id) if @project %> +
<%= l(:label_filter_plural) %> <%= render :partial => 'queries/filters', :locals => {:query => @query} %> -
+
<%= link_to_remote l(:button_apply), { :url => { :set_filter => 1 }, :update => "content", @@ -21,8 +22,7 @@ <%= link_to l(:button_save), {}, :onclick => "$('query_form').submit(); return false;", :class => 'icon icon-save' %> <% end %>
-
-   +
<% end %> <% else %>
diff --git a/app/views/queries/_columns.rhtml b/app/views/queries/_columns.rhtml index 8d3da7f6a..1a481adae 100644 --- a/app/views/queries/_columns.rhtml +++ b/app/views/queries/_columns.rhtml @@ -1,8 +1,8 @@ <% content_tag 'fieldset', :id => 'columns', :style => (query.has_default_columns? ? 'display:none;' : nil) do %> <%= l(:field_column_names) %> -<%= hidden_field_tag 'query[column_names][]', '' %> - +<%= hidden_field_tag 'query[column_names][]', '', :id => nil %> +
<%= select_tag 'available_columns', options_for_select((query.available_columns - query.columns).collect {|column| [column.caption, column.name]}), diff --git a/app/views/queries/_filters.rhtml b/app/views/queries/_filters.rhtml index 2465818d8..458d7139e 100644 --- a/app/views/queries/_filters.rhtml +++ b/app/views/queries/_filters.rhtml @@ -56,7 +56,6 @@ function toggle_multi_select(field) { //]]> -
<%= l(:label_filter_plural) %>
@@ -100,4 +99,3 @@ function toggle_multi_select(field) {
-
\ No newline at end of file diff --git a/app/views/queries/_form.rhtml b/app/views/queries/_form.rhtml index 1620d9b05..2d4b96fd1 100644 --- a/app/views/queries/_form.rhtml +++ b/app/views/queries/_form.rhtml @@ -16,6 +16,9 @@ :onclick => 'if (this.checked) {Element.hide("columns")} else {Element.show("columns")}' %>

+
<%= l(:label_filter_plural) %> <%= render :partial => 'queries/filters', :locals => {:query => query}%> +
+ <%= render :partial => 'queries/columns', :locals => {:query => query}%> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 816cd05a2..a0d5deb28 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -159,6 +159,9 @@ textarea.wiki-edit { width: 99%; } li p {margin-top: 0;} div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;} +#filters { margin-bottom: 1em; } +#filters .buttons { text-align: right; font-size: 0.9em; } + div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;} div#issue-changesets .changeset { padding: 4px;} div#issue-changesets .changeset { border-bottom: 1px solid #ddd; } -- 2.39.5