]> source.dussan.org Git - redmine.git/commitdiff
Wrap filters, options and buttons with extra div (#15362).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 11 Jan 2014 11:12:03 +0000 (11:12 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 11 Jan 2014 11:12:03 +0000 (11:12 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12645 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/index.html.erb
app/views/timelog/_date_range.html.erb

index 0e4f940b29dcf4b926f95cc9e85030a64772bf4c..4c0528b7923454a8dd91ffe99d8f5b7cf694324a 100644 (file)
@@ -10,8 +10,9 @@
 
 <%= form_tag({ :controller => 'issues', :action => 'index', :project_id => @project },
             :method => :get, :id => 'query_form') do %>
+  <div id="query_form_with_buttons" class="hide-when-print">
     <%= hidden_field_tag 'set_filter', '1' %>
-    <div id="query_form_content" class="hide-when-print">
+    <div id="query_form_content">
     <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
       <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
       <div style="<%= @query.new_record? ? "" : "display: none;" %>">
@@ -42,8 +43,7 @@
       </div>
     </fieldset>
     </div>
-    <p class="buttons hide-when-print">
-
+    <p class="buttons">
     <%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %>
     <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload'  %>
     <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %>
@@ -52,6 +52,7 @@
                              :class => 'icon icon-save' %>
     <% end %>
     </p>
+  </div>
 <% end %>
 
 <%= error_messages_for 'query' %>
index a889f160c7195d513761ed22e0699ad5c93e5db0..2b3dbf268a7bc07e5602e1b7fa1afc09b419ac8b 100644 (file)
@@ -1,4 +1,5 @@
-<div id="query_form_content" class="hide-when-print">
+<div id="query_form_with_buttons" class="hide-when-print">
+<div id="query_form_content">
   <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
     <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
     <div style="<%= @query.new_record? ? "" : "display: none;" %>">
   </fieldset>
 </div>
 
-<p class="buttons hide-when-print">
+<p class="buttons">
   <%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %>
   <%= link_to l(:button_clear), {:project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload'  %>
 </p>
+</div>
 
-<div class="tabs">
+<div class="tabs hide-when-print">
 <% query_params = params.slice(:f, :op, :v, :sort) %>
 <ul>
     <li><%= link_to(l(:label_details), query_params.merge({:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue }),