Revision 442:753f1380d6bc app/views/gantts/.svn/text-base
| app/views/gantts/.svn/text-base/show.html.erb.svn-base | ||
|---|---|---|
| 1 | 1 |
<% @gantt.view = self %> |
| 2 | 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 %>
|
|
| 5 |
<%= hidden_field_tag('project_id', @project.to_param) if @project%>
|
|
| 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 'set_filter', '1' %>
|
|
| 6 | 6 |
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> |
| 7 | 7 |
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
| 8 | 8 |
<div style="<%= @query.new_record? ? "" : "display: none;" %>"> |
| ... | ... | |
| 22 | 22 |
<%= select_year(@gantt.year_from, :prefix => "year", :discard_type => true) %> |
| 23 | 23 |
<%= hidden_field_tag 'zoom', @gantt.zoom %> |
| 24 | 24 |
|
| 25 |
<%= link_to_remote l(:button_apply), |
|
| 26 |
{ :url => { :set_filter => 1 },
|
|
| 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' %> |
|
| 25 |
<%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %>
|
|
| 26 |
<%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %>
|
|
| 36 | 27 |
</p> |
| 37 | 28 |
<% end %> |
| 38 | 29 |
|
| ... | ... | |
| 178 | 169 |
|
| 179 | 170 |
<table width="100%"> |
| 180 | 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>
|
|
| 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>
|
|
| 172 |
<td align="left"><%= link_to_content_update('« ' + l(:label_previous), params.merge(@gantt.params_previous)) %></td>
|
|
| 173 |
<td align="right"><%= link_to_content_update(l(:label_next) + ' »', params.merge(@gantt.params_next)) %></td>
|
|
| 183 | 174 |
</tr> |
| 184 | 175 |
</table> |
| 185 | 176 |
|
| 186 | 177 |
<% other_formats_links do |f| %> |
| 187 |
<%= f.link_to 'PDF', :url => @gantt.params %>
|
|
| 188 |
<%= f.link_to('PNG', :url => @gantt.params) if @gantt.respond_to?('to_image') %>
|
|
| 178 |
<%= f.link_to 'PDF', :url => params.merge(@gantt.params) %>
|
|
| 179 |
<%= f.link_to('PNG', :url => params.merge(@gantt.params)) if @gantt.respond_to?('to_image') %>
|
|
| 189 | 180 |
<% end %> |
| 190 | 181 |
<% end # query.valid? %> |
| 191 | 182 |
|
Also available in: Unified diff