2009-09-20 11:24:16 +04:00
|
|
|
<h2><%= l(:label_calendar) %></h2>
|
2009-09-20 11:39:53 +04:00
|
|
|
|
2010-08-26 20:36:59 +04:00
|
|
|
<% form_tag(calendar_path, :method => :put, :id => 'query_form') do %>
|
|
|
|
<%= hidden_field_tag('project_id', @project.to_param) if @project%>
|
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;">
|
2010-08-26 20:37:05 +04:00
|
|
|
<%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %>
|
2008-09-11 21:03:26 +04:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p class="buttons">
|
2010-05-24 22:07:43 +04:00
|
|
|
<%= label_tag('month', l(:label_month)) %>
|
2009-09-20 11:24:16 +04:00
|
|
|
<%= select_month(@month, :prefix => "month", :discard_type => true) %>
|
2010-05-24 22:07:43 +04:00
|
|
|
<%= label_tag('year', l(:label_year)) %>
|
2009-09-20 11:24:16 +04:00
|
|
|
<%= 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)) -%>
|