Chris@1296
|
1 <h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2>
|
Chris@1296
|
2
|
Chris@1296
|
3 <%= form_tag({:controller => 'calendars', :action => 'show', :project_id => @project},
|
Chris@1296
|
4 :method => :get, :id => 'query_form') do %>
|
Chris@1296
|
5 <%= hidden_field_tag 'set_filter', '1' %>
|
Chris@1296
|
6 <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
|
Chris@1296
|
7 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
|
Chris@1296
|
8 <div style="<%= @query.new_record? ? "" : "display: none;" %>">
|
Chris@1296
|
9 <%= render :partial => 'queries/filters', :locals => {:query => @query} %>
|
Chris@1296
|
10 </div>
|
Chris@1296
|
11 </fieldset>
|
Chris@1296
|
12
|
Chris@1296
|
13 <p style="float:right;">
|
Chris@1296
|
14 <%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %>
|
Chris@1296
|
15 </p>
|
Chris@1296
|
16
|
Chris@1296
|
17 <p class="buttons">
|
Chris@1296
|
18 <%= label_tag('month', l(:label_month)) %>
|
Chris@1296
|
19 <%= select_month(@month, :prefix => "month", :discard_type => true) %>
|
Chris@1296
|
20 <%= label_tag('year', l(:label_year)) %>
|
Chris@1296
|
21 <%= select_year(@year, :prefix => "year", :discard_type => true) %>
|
Chris@1296
|
22
|
Chris@1296
|
23 <%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %>
|
Chris@1296
|
24 <%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %>
|
Chris@1296
|
25 </p>
|
Chris@1296
|
26 <% end %>
|
Chris@1296
|
27
|
Chris@1296
|
28 <%= error_messages_for 'query' %>
|
Chris@1296
|
29 <% if @query.valid? %>
|
Chris@1296
|
30 <%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
|
Chris@1296
|
31
|
Chris@1296
|
32 <p class="legend cal">
|
Chris@1296
|
33 <span class="starting"><%= l(:text_tip_issue_begin_day) %></span>
|
Chris@1296
|
34 <span class="ending"><%= l(:text_tip_issue_end_day) %></span>
|
Chris@1296
|
35 <span class="starting ending"><%= l(:text_tip_issue_begin_end_day) %></span>
|
Chris@1296
|
36 </p>
|
Chris@1296
|
37 <% end %>
|
Chris@1296
|
38
|
Chris@1296
|
39 <% content_for :sidebar do %>
|
Chris@1296
|
40 <%= render :partial => 'issues/sidebar' %>
|
Chris@1296
|
41 <% end %>
|
Chris@1296
|
42
|
Chris@1296
|
43 <% html_title(l(:label_calendar)) -%>
|