Chris@0
|
1 <h2><%= l(:label_calendar) %></h2>
|
Chris@0
|
2
|
Chris@0
|
3 <% form_tag({}, :id => 'query_form') do %>
|
Chris@0
|
4 <fieldset id="filters" class="collapsible">
|
Chris@0
|
5 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
|
Chris@0
|
6 <div>
|
Chris@0
|
7 <%= render :partial => 'queries/filters', :locals => {:query => @query} %>
|
Chris@0
|
8 </div>
|
Chris@0
|
9 </fieldset>
|
Chris@0
|
10
|
Chris@0
|
11 <p style="float:right;">
|
Chris@0
|
12 <%= link_to_remote ('« ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
|
Chris@0
|
13 {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
|
Chris@0
|
14 {:href => url_for(:action => 'show', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
|
Chris@0
|
15 %> |
|
Chris@0
|
16 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' »'),
|
Chris@0
|
17 {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
|
Chris@0
|
18 {:href => url_for(:action => 'show', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
|
Chris@0
|
19 %>
|
Chris@0
|
20 </p>
|
Chris@0
|
21
|
Chris@0
|
22 <p class="buttons">
|
Chris@0
|
23 <%= label_tag('month', l(:label_month)) %>
|
Chris@0
|
24 <%= select_month(@month, :prefix => "month", :discard_type => true) %>
|
Chris@0
|
25 <%= label_tag('year', l(:label_year)) %>
|
Chris@0
|
26 <%= select_year(@year, :prefix => "year", :discard_type => true) %>
|
Chris@0
|
27
|
Chris@0
|
28 <%= link_to_remote l(:button_apply),
|
Chris@0
|
29 { :url => { :set_filter => (@query.new_record? ? 1 : nil) },
|
Chris@0
|
30 :update => "content",
|
Chris@0
|
31 :with => "Form.serialize('query_form')"
|
Chris@0
|
32 }, :class => 'icon icon-checked' %>
|
Chris@0
|
33
|
Chris@0
|
34 <%= link_to_remote l(:button_clear),
|
Chris@0
|
35 { :url => { :set_filter => (@query.new_record? ? 1 : nil) },
|
Chris@0
|
36 :update => "content",
|
Chris@0
|
37 }, :class => 'icon icon-reload' if @query.new_record? %>
|
Chris@0
|
38 </p>
|
Chris@0
|
39 <% end %>
|
Chris@0
|
40
|
Chris@0
|
41 <%= error_messages_for 'query' %>
|
Chris@0
|
42 <% if @query.valid? %>
|
Chris@0
|
43 <%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
|
Chris@0
|
44
|
Chris@0
|
45 <p class="legend cal">
|
Chris@0
|
46 <span class="starting"><%= l(:text_tip_task_begin_day) %></span>
|
Chris@0
|
47 <span class="ending"><%= l(:text_tip_task_end_day) %></span>
|
Chris@0
|
48 <span class="starting ending"><%= l(:text_tip_task_begin_end_day) %></span>
|
Chris@0
|
49 </p>
|
Chris@0
|
50 <% end %>
|
Chris@0
|
51
|
Chris@0
|
52 <% content_for :sidebar do %>
|
Chris@0
|
53 <%= render :partial => 'issues/sidebar' %>
|
Chris@0
|
54 <% end %>
|
Chris@0
|
55
|
Chris@0
|
56 <% html_title(l(:label_calendar)) -%>
|