2011-02-21 16:58:08 +03:00
|
|
|
<h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></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%>
|
2011-02-21 16:58:08 +03:00
|
|
|
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
|
2009-09-20 11:24:16 +04:00
|
|
|
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
|
2011-02-21 16:58:08 +03:00
|
|
|
<div style="<%= @query.new_record? ? "" : "display: none;" %>">
|
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:21 +04:00
|
|
|
<%= link_to_previous_month(@year, @month, :project => @project) %> | <%= link_to_next_month(@year, @month, :project => @project) %>
|
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),
|
2010-09-26 11:51:10 +04:00
|
|
|
{ :url => { :project_id => @project, :set_filter => (@query.new_record? ? 1 : nil) },
|
|
|
|
:method => :put,
|
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">
|
2010-10-07 19:26:53 +04:00
|
|
|
<span class="starting"><%= l(:text_tip_issue_begin_day) %></span>
|
|
|
|
<span class="ending"><%= l(:text_tip_issue_end_day) %></span>
|
|
|
|
<span class="starting ending"><%= l(:text_tip_issue_begin_end_day) %></span>
|
2010-02-24 00:10:15 +03:00
|
|
|
</p>
|
2008-09-11 21:03:26 +04:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<%= render :partial => 'issues/sidebar' %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% html_title(l(:label_calendar)) -%>
|