show.html.erb
43 lines
| 1.7 KiB
| text/plain
|
TextLexer
|
r4790 | <h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2> | ||
|
r2778 | |||
|
r9346 | <%= form_tag({:controller => 'calendars', :action => 'show', :project_id => @project}, | ||
:method => :get, :id => 'query_form') do %> | ||||
|
r5156 | <%= hidden_field_tag 'set_filter', '1' %> | ||
|
r4790 | <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> | ||
|
r2777 | <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> | ||
|
r4790 | <div style="<%= @query.new_record? ? "" : "display: none;" %>"> | ||
|
r1796 | <%= render :partial => 'queries/filters', :locals => {:query => @query} %> | ||
|
r2777 | </div> | ||
</fieldset> | ||||
|
r1796 | |||
|
r2777 | <p style="float:right;"> | ||
|
r5156 | <%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %> | ||
|
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) %> | ||
|
r9885 | <%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %> | ||
|
r5156 | <%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %> | ||
|
r1796 | </p> | ||
<% end %> | ||||
<%= error_messages_for 'query' %> | ||||
<% if @query.valid? %> | ||||
<%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %> | ||||
|
r3363 | <p class="legend cal"> | ||
|
r7119 | <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)) -%> | ||||