1 <h2><%= l(:label_calendar) %></h2>
3 <% form_tag({}, :id => 'query_form') do %>
4 <fieldset id="filters" class="collapsible">
5 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
7 <%= render :partial => 'queries/filters', :locals => {:query => @query} %>
11 <p style="float:right;">
12 <%= link_to_remote ('« ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
13 {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
14 {:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
16 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' »'),
17 {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
18 {:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
23 <%= select_month(@month, :prefix => "month", :discard_type => true) %>
24 <%= select_year(@year, :prefix => "year", :discard_type => true) %>
26 <%= link_to_remote l(:button_apply),
27 { :url => { :set_filter => (@query.new_record? ? 1 : nil) },
29 :with => "Form.serialize('query_form')"
30 }, :class => 'icon icon-checked' %>
32 <%= link_to_remote l(:button_clear),
33 { :url => { :set_filter => (@query.new_record? ? 1 : nil) },
35 }, :class => 'icon icon-reload' if @query.new_record? %>
39 <%= error_messages_for 'query' %>
40 <% if @query.valid? %>
41 <%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
43 <%= image_tag 'arrow_from.png' %> <%= l(:text_tip_task_begin_day) %><br />
44 <%= image_tag 'arrow_to.png' %> <%= l(:text_tip_task_end_day) %><br />
45 <%= image_tag 'arrow_bw.png' %> <%= l(:text_tip_task_begin_end_day) %><br />
48 <% content_for :sidebar do %>
49 <%= render :partial => 'issues/sidebar' %>
52 <% html_title(l(:label_calendar)) -%>