@@ -1,7 +1,7 | |||||
1 | <div class="contextual"> |
|
1 | <div class="contextual"> | |
2 | <% if !@query.new_record? && @query.editable_by?(User.current) %> |
|
2 | <% if !@query.new_record? && @query.editable_by?(User.current) %> | |
3 |
|
|
3 | <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => @query}, :class => 'icon icon-edit' %> | |
4 |
|
|
4 | <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => @query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> | |
5 | <% end %> |
|
5 | <% end %> | |
6 | </div> |
|
6 | </div> | |
7 |
|
7 | |||
@@ -10,29 +10,29 | |||||
10 |
|
10 | |||
11 | <% form_tag({ :controller => 'issues', :action => 'index', :project_id => @project }, :method => :get, :id => 'query_form') do %> |
|
11 | <% form_tag({ :controller => 'issues', :action => 'index', :project_id => @project }, :method => :get, :id => 'query_form') do %> | |
12 | <%= hidden_field_tag 'set_filter', '1' %> |
|
12 | <%= hidden_field_tag 'set_filter', '1' %> | |
13 |
|
|
13 | <div id="query_form_content" class="hide-when-print"> | |
14 | <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> |
|
14 | <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> | |
15 |
|
|
15 | <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> | |
16 |
|
|
16 | <div style="<%= @query.new_record? ? "" : "display: none;" %>"> | |
17 |
|
|
17 | <%= render :partial => 'queries/filters', :locals => {:query => @query} %> | |
18 |
|
|
18 | </div> | |
19 | </fieldset> |
|
19 | </fieldset> | |
20 | <fieldset class="collapsible collapsed"> |
|
20 | <fieldset class="collapsible collapsed"> | |
21 |
|
|
21 | <legend onclick="toggleFieldset(this);"><%= l(:label_options) %></legend> | |
22 |
|
|
22 | <div style="display: none;"> | |
23 |
|
|
23 | <table> | |
24 |
|
|
24 | <tr> | |
25 |
|
|
25 | <td><%= l(:field_column_names) %></td> | |
26 |
|
|
26 | <td><%= render :partial => 'queries/columns', :locals => {:query => @query} %></td> | |
27 | </tr> |
|
27 | </tr> | |
28 | <tr> |
|
28 | <tr> | |
29 |
|
|
29 | <td><%= l(:field_group_by) %></td> | |
30 |
|
|
30 | <td><%= select_tag('group_by', options_for_select([[]] + @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, @query.group_by)) %></td> | |
31 | </tr> |
|
31 | </tr> | |
32 | </table> |
|
32 | </table> | |
33 | </div> |
|
33 | </div> | |
34 |
|
|
34 | </fieldset> | |
35 |
|
|
35 | </div> | |
36 | <p class="buttons hide-when-print"> |
|
36 | <p class="buttons hide-when-print"> | |
37 |
|
37 | |||
38 | <%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %> |
|
38 | <%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %> | |
@@ -53,9 +53,9 | |||||
53 | <% end %> |
|
53 | <% end %> | |
54 |
|
54 | |||
55 | <% other_formats_links do |f| %> |
|
55 | <% other_formats_links do |f| %> | |
56 |
|
|
56 | <%= f.link_to 'Atom', :url => params.merge(:key => User.current.rss_key) %> | |
57 |
|
|
57 | <%= f.link_to 'CSV', :url => params %> | |
58 |
|
|
58 | <%= f.link_to 'PDF', :url => params %> | |
59 | <% end %> |
|
59 | <% end %> | |
60 |
|
60 | |||
61 | <% end %> |
|
61 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now