Mercurial > hg > soundsoftware-site
comparison app/views/calendars/.svn/text-base/show.html.erb.svn-base @ 441:cbce1fd3b1b7 redmine-1.2
Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 14:24:13 +0100 |
parents | 051f544170fe |
children |
comparison
equal
deleted
inserted
replaced
245:051f544170fe | 441:cbce1fd3b1b7 |
---|---|
1 <h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2> | 1 <h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2> |
2 | 2 |
3 <% form_tag(calendar_path, :method => :put, :id => 'query_form') do %> | 3 <% form_tag({:controller => 'calendars', :action => 'show', :project_id => @project}, :method => :get, :id => 'query_form') do %> |
4 <%= hidden_field_tag('project_id', @project.to_param) if @project%> | 4 <%= hidden_field_tag 'set_filter', '1' %> |
5 <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> | 5 <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> |
6 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> | 6 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
7 <div style="<%= @query.new_record? ? "" : "display: none;" %>"> | 7 <div style="<%= @query.new_record? ? "" : "display: none;" %>"> |
8 <%= render :partial => 'queries/filters', :locals => {:query => @query} %> | 8 <%= render :partial => 'queries/filters', :locals => {:query => @query} %> |
9 </div> | 9 </div> |
10 </fieldset> | 10 </fieldset> |
11 | 11 |
12 <p style="float:right;"> | 12 <p style="float:right;"> |
13 <%= link_to_previous_month(@year, @month, :project => @project) %> | <%= link_to_next_month(@year, @month, :project => @project) %> | 13 <%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %> |
14 </p> | 14 </p> |
15 | 15 |
16 <p class="buttons"> | 16 <p class="buttons"> |
17 <%= label_tag('month', l(:label_month)) %> | 17 <%= label_tag('month', l(:label_month)) %> |
18 <%= select_month(@month, :prefix => "month", :discard_type => true) %> | 18 <%= select_month(@month, :prefix => "month", :discard_type => true) %> |
19 <%= label_tag('year', l(:label_year)) %> | 19 <%= label_tag('year', l(:label_year)) %> |
20 <%= select_year(@year, :prefix => "year", :discard_type => true) %> | 20 <%= select_year(@year, :prefix => "year", :discard_type => true) %> |
21 | 21 |
22 <%= link_to_remote l(:button_apply), | 22 <%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %> |
23 { :url => { :set_filter => 1 }, | 23 <%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %> |
24 :update => "content", | |
25 :with => "Form.serialize('query_form')" | |
26 }, :class => 'icon icon-checked' %> | |
27 | |
28 <%= link_to_remote l(:button_clear), | |
29 { :url => { :project_id => @project, :set_filter => 1 }, | |
30 :method => :put, | |
31 :update => "content", | |
32 }, :class => 'icon icon-reload' %> | |
33 </p> | 24 </p> |
34 <% end %> | 25 <% end %> |
35 | 26 |
36 <%= error_messages_for 'query' %> | 27 <%= error_messages_for 'query' %> |
37 <% if @query.valid? %> | 28 <% if @query.valid? %> |