To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / calendars / show.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (1.65 KB)

1 245:051f544170fe Chris
<h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2>
2 0:513646585e45 Chris
3 441:cbce1fd3b1b7 Chris
<% form_tag({:controller => 'calendars', :action => 'show', :project_id => @project}, :method => :get, :id => 'query_form') do %>
4
<%= hidden_field_tag 'set_filter', '1' %>
5 245:051f544170fe Chris
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
6 0:513646585e45 Chris
  <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
7 245:051f544170fe Chris
  <div style="<%= @query.new_record? ? "" : "display: none;" %>">
8 0:513646585e45 Chris
    <%= render :partial => 'queries/filters', :locals => {:query => @query} %>
9
  </div>
10
</fieldset>
11
12
<p style="float:right;">
13 441:cbce1fd3b1b7 Chris
  <%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %>
14 0:513646585e45 Chris
</p>
15
16
<p class="buttons">
17
<%= label_tag('month', l(:label_month)) %>
18
<%= select_month(@month, :prefix => "month", :discard_type => true) %>
19
<%= label_tag('year', l(:label_year)) %>
20
<%= select_year(@year, :prefix => "year", :discard_type => true) %>
21
22 441:cbce1fd3b1b7 Chris
<%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %>
23
<%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %>
24 0:513646585e45 Chris
</p>
25
<% end %>
26
27
<%= error_messages_for 'query' %>
28
<% if @query.valid? %>
29
<%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
30
31
<p class="legend cal">
32 909:cbb26bc654de Chris
  <span class="starting"><%= l(:text_tip_issue_begin_day) %></span>
33
  <span class="ending"><%= l(:text_tip_issue_end_day) %></span>
34
  <span class="starting ending"><%= l(:text_tip_issue_begin_end_day) %></span>
35 0:513646585e45 Chris
</p>
36
<% end %>
37
38
<% content_for :sidebar do %>
39
    <%= render :partial => 'issues/sidebar' %>
40
<% end %>
41
42
<% html_title(l(:label_calendar)) -%>