From 276cc32305b5985491d1e9c886f97b2526793721 Mon Sep 17 00:00:00 2001 From: Mischa The Evil Date: Thu, 8 Jun 2017 17:43:21 +0200 Subject: [PATCH 1/4] Fix HTML structure of query_form on calendar/gantt views. This unifies the HTML structure of the query form on the calendars/show and gantts/show views to be the same as it is currently for the issues and spent time views, which were themself unified into the new queries/_query_form partial in r15649. --- app/views/calendars/show.html.erb | 5 +++++ app/views/gantts/show.html.erb | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/app/views/calendars/show.html.erb b/app/views/calendars/show.html.erb index f189460..45de7a6 100644 --- a/app/views/calendars/show.html.erb +++ b/app/views/calendars/show.html.erb @@ -3,6 +3,9 @@ <%= form_tag({:controller => 'calendars', :action => 'show', :project_id => @project}, :method => :get, :id => 'query_form') do %> <%= hidden_field_tag 'set_filter', '1' %> + +
+
"> <%= l(:label_filter_plural) %>
"> @@ -13,6 +16,7 @@

<%= link_to_previous_month(@year, @month, :accesskey => accesskey(:previous)) %> | <%= link_to_next_month(@year, @month, :accesskey => accesskey(:next)) %>

+

<%= label_tag('month', l(:label_month)) %> @@ -23,6 +27,7 @@ <%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %> <%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %>

+
<% end %> <%= error_messages_for 'query' %> diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index 314c2f2..242489f 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -14,6 +14,9 @@ :method => :get, :id => 'query_form') do %> <%= hidden_field_tag 'set_filter', '1' %> <%= hidden_field_tag 'gantt', '1' %> + +
+
"> <%= l(:label_filter_plural) %>
"> @@ -53,6 +56,7 @@
+

<%= gantt_zoom_link(@gantt, :in) %> @@ -76,6 +80,7 @@ :class => 'icon icon-save' %> <% end %>

+
<% end %> <%= error_messages_for 'query' %> -- 1.9.1