Mercurial > hg > soundsoftware-site
comparison app/views/gantts/.svn/text-base/show.html.erb.svn-base @ 441:cbce1fd3b1b7 redmine-1.2
Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 14:24:13 +0100 |
parents | 051f544170fe |
children |
comparison
equal
deleted
inserted
replaced
245:051f544170fe | 441:cbce1fd3b1b7 |
---|---|
1 <% @gantt.view = self %> | 1 <% @gantt.view = self %> |
2 <h2><%= @query.new_record? ? l(:label_gantt) : h(@query.name) %></h2> | 2 <h2><%= @query.new_record? ? l(:label_gantt) : h(@query.name) %></h2> |
3 | 3 |
4 <% form_tag(gantt_path(:month => params[:month], :year => params[:year], :months => params[:months]), :method => :put, :id => 'query_form') do %> | 4 <% form_tag({:controller => 'gantts', :action => 'show', :project_id => @project, :month => params[:month], :year => params[:year], :months => params[:months]}, :method => :get, :id => 'query_form') do %> |
5 <%= hidden_field_tag('project_id', @project.to_param) if @project%> | 5 <%= hidden_field_tag 'set_filter', '1' %> |
6 <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> | 6 <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> |
7 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> | 7 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
8 <div style="<%= @query.new_record? ? "" : "display: none;" %>"> | 8 <div style="<%= @query.new_record? ? "" : "display: none;" %>"> |
9 <%= render :partial => 'queries/filters', :locals => {:query => @query} %> | 9 <%= render :partial => 'queries/filters', :locals => {:query => @query} %> |
10 </div> | 10 </div> |
20 <%= l(:label_months_from) %> | 20 <%= l(:label_months_from) %> |
21 <%= select_month(@gantt.month_from, :prefix => "month", :discard_type => true) %> | 21 <%= select_month(@gantt.month_from, :prefix => "month", :discard_type => true) %> |
22 <%= select_year(@gantt.year_from, :prefix => "year", :discard_type => true) %> | 22 <%= select_year(@gantt.year_from, :prefix => "year", :discard_type => true) %> |
23 <%= hidden_field_tag 'zoom', @gantt.zoom %> | 23 <%= hidden_field_tag 'zoom', @gantt.zoom %> |
24 | 24 |
25 <%= link_to_remote l(:button_apply), | 25 <%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %> |
26 { :url => { :set_filter => 1 }, | 26 <%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %> |
27 :update => "content", | |
28 :with => "Form.serialize('query_form')" | |
29 }, :class => 'icon icon-checked' %> | |
30 | |
31 <%= link_to_remote l(:button_clear), | |
32 { :url => { :project_id => @project, :set_filter => 1 }, | |
33 :method => :put, | |
34 :update => "content", | |
35 }, :class => 'icon icon-reload' %> | |
36 </p> | 27 </p> |
37 <% end %> | 28 <% end %> |
38 | 29 |
39 <%= error_messages_for 'query' %> | 30 <%= error_messages_for 'query' %> |
40 <% if @query.valid? %> | 31 <% if @query.valid? %> |
176 </tr> | 167 </tr> |
177 </table> | 168 </table> |
178 | 169 |
179 <table width="100%"> | 170 <table width="100%"> |
180 <tr> | 171 <tr> |
181 <td align="left"><%= link_to_remote ('« ' + l(:label_previous)), {:url => @gantt.params_previous, :method => :get, :update => 'content', :complete => 'window.scrollTo(0,0)'}, {:href => url_for(@gantt.params_previous)} %></td> | 172 <td align="left"><%= link_to_content_update('« ' + l(:label_previous), params.merge(@gantt.params_previous)) %></td> |
182 <td align="right"><%= link_to_remote (l(:label_next) + ' »'), {:url => @gantt.params_next, :method => :get, :update => 'content', :complete => 'window.scrollTo(0,0)'}, {:href => url_for(@gantt.params_next)} %></td> | 173 <td align="right"><%= link_to_content_update(l(:label_next) + ' »', params.merge(@gantt.params_next)) %></td> |
183 </tr> | 174 </tr> |
184 </table> | 175 </table> |
185 | 176 |
186 <% other_formats_links do |f| %> | 177 <% other_formats_links do |f| %> |
187 <%= f.link_to 'PDF', :url => @gantt.params %> | 178 <%= f.link_to 'PDF', :url => params.merge(@gantt.params) %> |
188 <%= f.link_to('PNG', :url => @gantt.params) if @gantt.respond_to?('to_image') %> | 179 <%= f.link_to('PNG', :url => params.merge(@gantt.params)) if @gantt.respond_to?('to_image') %> |
189 <% end %> | 180 <% end %> |
190 <% end # query.valid? %> | 181 <% end # query.valid? %> |
191 | 182 |
192 <% content_for :sidebar do %> | 183 <% content_for :sidebar do %> |
193 <%= render :partial => 'issues/sidebar' %> | 184 <%= render :partial => 'issues/sidebar' %> |