show.html.erb
51 lines
| 1.9 KiB
| text/plain
|
TextLexer
|
r2777 | <h2><%= l(:label_calendar) %></h2> | ||
|
r2778 | |||
|
r3927 | <% form_tag(calendar_path, :method => :put, :id => 'query_form') do %> | ||
<%= hidden_field_tag('project_id', @project.to_param) if @project%> | ||||
|
r2777 | <fieldset id="filters" class="collapsible"> | ||
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> | ||||
<div> | ||||
|
r1796 | <%= render :partial => 'queries/filters', :locals => {:query => @query} %> | ||
|
r2777 | </div> | ||
</fieldset> | ||||
|
r1796 | |||
|
r2777 | <p style="float:right;"> | ||
|
r3931 | <%= link_to_previous_month(@year, @month, :project => @project) %> | <%= link_to_next_month(@year, @month, :project => @project) %> | ||
|
r1796 | </p> | ||
<p class="buttons"> | ||||
|
r3632 | <%= label_tag('month', l(:label_month)) %> | ||
|
r2777 | <%= select_month(@month, :prefix => "month", :discard_type => true) %> | ||
|
r3632 | <%= label_tag('year', l(:label_year)) %> | ||
|
r2777 | <%= select_year(@year, :prefix => "year", :discard_type => true) %> | ||
|
r1796 | <%= link_to_remote l(:button_apply), | ||
|
r2326 | { :url => { :set_filter => (@query.new_record? ? 1 : nil) }, | ||
|
r1796 | :update => "content", | ||
:with => "Form.serialize('query_form')" | ||||
}, :class => 'icon icon-checked' %> | ||||
<%= link_to_remote l(:button_clear), | ||||
|
r4062 | { :url => { :project_id => @project, :set_filter => (@query.new_record? ? 1 : nil) }, | ||
:method => :put, | ||||
|
r1796 | :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} %> | ||||
|
r3363 | <p class="legend cal"> | ||
|
r4124 | <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> | ||||
|
r3363 | </p> | ||
|
r1796 | <% end %> | ||
<% content_for :sidebar do %> | ||||
<%= render :partial => 'issues/sidebar' %> | ||||
<% end %> | ||||
<% html_title(l(:label_calendar)) -%> | ||||