Revision 441:cbce1fd3b1b7 app/views/calendars/.svn/text-base
| app/views/calendars/.svn/text-base/show.html.erb.svn-base | ||
|---|---|---|
| 1 | 1 |
<h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2> |
| 2 | 2 |
|
| 3 |
<% form_tag(calendar_path, :method => :put, :id => 'query_form') do %>
|
|
| 4 |
<%= hidden_field_tag('project_id', @project.to_param) if @project%>
|
|
| 3 |
<% form_tag({:controller => 'calendars', :action => 'show', :project_id => @project}, :method => :get, :id => 'query_form') do %>
|
|
| 4 |
<%= hidden_field_tag 'set_filter', '1' %>
|
|
| 5 | 5 |
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> |
| 6 | 6 |
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
| 7 | 7 |
<div style="<%= @query.new_record? ? "" : "display: none;" %>"> |
| ... | ... | |
| 10 | 10 |
</fieldset> |
| 11 | 11 |
|
| 12 | 12 |
<p style="float:right;"> |
| 13 |
<%= link_to_previous_month(@year, @month, :project => @project) %> | <%= link_to_next_month(@year, @month, :project => @project) %>
|
|
| 13 |
<%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %>
|
|
| 14 | 14 |
</p> |
| 15 | 15 |
|
| 16 | 16 |
<p class="buttons"> |
| ... | ... | |
| 19 | 19 |
<%= label_tag('year', l(:label_year)) %>
|
| 20 | 20 |
<%= select_year(@year, :prefix => "year", :discard_type => true) %> |
| 21 | 21 |
|
| 22 |
<%= link_to_remote l(:button_apply), |
|
| 23 |
{ :url => { :set_filter => 1 },
|
|
| 24 |
:update => "content", |
|
| 25 |
:with => "Form.serialize('query_form')"
|
|
| 26 |
}, :class => 'icon icon-checked' %> |
|
| 27 |
|
|
| 28 |
<%= link_to_remote l(:button_clear), |
|
| 29 |
{ :url => { :project_id => @project, :set_filter => 1 },
|
|
| 30 |
:method => :put, |
|
| 31 |
:update => "content", |
|
| 32 |
}, :class => 'icon icon-reload' %> |
|
| 22 |
<%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %>
|
|
| 23 |
<%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %>
|
|
| 33 | 24 |
</p> |
| 34 | 25 |
<% end %> |
| 35 | 26 |
|
Also available in: Unified diff