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