Mercurial > hg > soundsoftware-site
comparison app/views/calendars/.svn/text-base/show.html.erb.svn-base @ 22:40f7cfd4df19
* Update to SVN trunk rev 4173
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 24 Sep 2010 14:06:04 +0100 |
parents | 513646585e45 |
children | 94944d00e43c |
comparison
equal
deleted
inserted
replaced
14:1d32c0a0efbf | 22:40f7cfd4df19 |
---|---|
1 <h2><%= l(:label_calendar) %></h2> | 1 <h2><%= l(:label_calendar) %></h2> |
2 | 2 |
3 <% form_tag({}, :id => 'query_form') do %> | 3 <% form_tag(calendar_path, :method => :put, :id => 'query_form') do %> |
4 <%= hidden_field_tag('project_id', @project.to_param) if @project%> | |
4 <fieldset id="filters" class="collapsible"> | 5 <fieldset id="filters" class="collapsible"> |
5 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> | 6 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
6 <div> | 7 <div> |
7 <%= render :partial => 'queries/filters', :locals => {:query => @query} %> | 8 <%= render :partial => 'queries/filters', :locals => {:query => @query} %> |
8 </div> | 9 </div> |
9 </fieldset> | 10 </fieldset> |
10 | 11 |
11 <p style="float:right;"> | 12 <p style="float:right;"> |
12 <%= link_to_remote ('« ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")), | 13 <%= link_to_previous_month(@year, @month, :project => @project) %> | <%= link_to_next_month(@year, @month, :project => @project) %> |
13 {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }}, | |
14 {:href => url_for(:action => 'show', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))} | |
15 %> | | |
16 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' »'), | |
17 {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }}, | |
18 {:href => url_for(:action => 'show', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))} | |
19 %> | |
20 </p> | 14 </p> |
21 | 15 |
22 <p class="buttons"> | 16 <p class="buttons"> |
23 <%= label_tag('month', l(:label_month)) %> | 17 <%= label_tag('month', l(:label_month)) %> |
24 <%= select_month(@month, :prefix => "month", :discard_type => true) %> | 18 <%= select_month(@month, :prefix => "month", :discard_type => true) %> |