OSDN Git Service

add Redmine trunk rev 3089
[redminele/redminele.git] / redmine / app / views / issues / calendar.rhtml
1 <h2><%= l(:label_calendar) %></h2>
2
3 <% form_tag({}, :id => 'query_form') do %>
4 <fieldset id="filters" class="collapsible">
5   <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
6   <div>
7     <%= render :partial => 'queries/filters', :locals => {:query => @query} %>
8   </div>
9 </fieldset>
10
11 <p style="float:right;">
12 <%= link_to_remote ('&#171; ' + (@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))}
15                         %> |
16 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'), 
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))}
19                         %>
20 </p>
21
22 <p class="buttons">
23 <%= select_month(@month, :prefix => "month", :discard_type => true) %>
24 <%= select_year(@year, :prefix => "year", :discard_type => true) %>
25
26 <%= link_to_remote l(:button_apply), 
27                    { :url => { :set_filter => (@query.new_record? ? 1 : nil) },
28                      :update => "content",
29                      :with => "Form.serialize('query_form')"
30                    }, :class => 'icon icon-checked' %>
31                    
32 <%= link_to_remote l(:button_clear),
33                    { :url => { :set_filter => (@query.new_record? ? 1 : nil) }, 
34                      :update => "content",
35                    }, :class => 'icon icon-reload' if @query.new_record? %>
36 </p>
37 <% end %>
38
39 <%= error_messages_for 'query' %>
40 <% if @query.valid? %>
41 <%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
42
43 <%= image_tag 'arrow_from.png' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_day) %><br />
44 <%= image_tag 'arrow_to.png' %>&nbsp;&nbsp;<%= l(:text_tip_task_end_day) %><br />
45 <%= image_tag 'arrow_bw.png' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_end_day) %><br />
46 <% end %>
47
48 <% content_for :sidebar do %>
49     <%= render :partial => 'issues/sidebar' %>
50 <% end %>
51
52 <% html_title(l(:label_calendar)) -%>