2009-09-20 11:24:16 +04:00
|
|
|
<h2><%= l(:label_calendar) %></h2>
|
2009-09-20 11:39:53 +04:00
|
|
|
|
|
|
|
<% form_tag({}, :id => 'query_form') do %>
|
2009-09-20 11:24:16 +04:00
|
|
|
<fieldset id="filters" class="collapsible">
|
|
|
|
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
|
|
|
|
<div>
|
2008-09-11 21:03:26 +04:00
|
|
|
<%= render :partial => 'queries/filters', :locals => {:query => @query} %>
|
2009-09-20 11:24:16 +04:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
2008-09-11 21:03:26 +04:00
|
|
|
|
2009-09-20 11:24:16 +04:00
|
|
|
<p style="float:right;">
|
2008-09-11 21:03:26 +04:00
|
|
|
<%= link_to_remote ('« ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
|
2009-01-29 00:20:39 +03:00
|
|
|
{:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
|
2010-05-03 20:02:37 +04:00
|
|
|
{:href => url_for(:action => 'show', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
|
2008-09-11 21:03:26 +04:00
|
|
|
%> |
|
|
|
|
<%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' »'),
|
2009-01-29 00:20:39 +03:00
|
|
|
{:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
|
2010-05-03 20:02:37 +04:00
|
|
|
{:href => url_for(:action => 'show', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
|
2008-09-11 21:03:26 +04:00
|
|
|
%>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p class="buttons">
|
2009-09-20 11:24:16 +04:00
|
|
|
<%= select_month(@month, :prefix => "month", :discard_type => true) %>
|
|
|
|
<%= select_year(@year, :prefix => "year", :discard_type => true) %>
|
|
|
|
|
2008-09-11 21:03:26 +04:00
|
|
|
<%= link_to_remote l(:button_apply),
|
2009-01-29 00:20:39 +03:00
|
|
|
{ :url => { :set_filter => (@query.new_record? ? 1 : nil) },
|
2008-09-11 21:03:26 +04:00
|
|
|
:update => "content",
|
|
|
|
:with => "Form.serialize('query_form')"
|
|
|
|
}, :class => 'icon icon-checked' %>
|
|
|
|
|
|
|
|
<%= link_to_remote l(:button_clear),
|
2009-01-29 00:20:39 +03:00
|
|
|
{ :url => { :set_filter => (@query.new_record? ? 1 : nil) },
|
2008-09-11 21:03:26 +04:00
|
|
|
:update => "content",
|
|
|
|
}, :class => 'icon icon-reload' if @query.new_record? %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= error_messages_for 'query' %>
|
|
|
|
<% if @query.valid? %>
|
|
|
|
<%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
|
|
|
|
|
2010-02-24 00:10:15 +03:00
|
|
|
<p class="legend cal">
|
|
|
|
<span class="starting"><%= l(:text_tip_task_begin_day) %></span>
|
|
|
|
<span class="ending"><%= l(:text_tip_task_end_day) %></span>
|
|
|
|
<span class="starting ending"><%= l(:text_tip_task_begin_end_day) %></span>
|
|
|
|
</p>
|
2008-09-11 21:03:26 +04:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<%= render :partial => 'issues/sidebar' %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% html_title(l(:label_calendar)) -%>
|