@@ -1,77 +1,77 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 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 | 5 | <% end %> |
|
6 | 6 | </div> |
|
7 | 7 | |
|
8 | 8 | <h2><%= @query.new_record? ? l(:label_issue_plural) : h(@query.name) %></h2> |
|
9 | 9 | <% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %> |
|
10 | 10 | |
|
11 | 11 | <% form_tag({ :controller => 'queries', :action => 'new' }, :id => 'query_form') do %> |
|
12 | 12 | <%= hidden_field_tag('project_id', @project.to_param) if @project %> |
|
13 | 13 | <div id="query_form_content"> |
|
14 | 14 | <fieldset id="filters" class="collapsible"> |
|
15 | 15 | <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
|
16 | 16 | <div> |
|
17 | 17 | <%= render :partial => 'queries/filters', :locals => {:query => @query} %> |
|
18 | 18 | </div> |
|
19 | 19 | </fieldset> |
|
20 | 20 | <fieldset class="collapsible collapsed"> |
|
21 |
<legend onclick="toggleFieldset(this);"> |
|
|
21 | <legend onclick="toggleFieldset(this);"><%= l(:label_options) %></legend> | |
|
22 | 22 | <div style="display: none;"> |
|
23 | 23 | <%= l(:field_group_by) %> |
|
24 | 24 | <%= select_tag('group_by', options_for_select([[]] + @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, @query.group_by)) %> |
|
25 | 25 | </div> |
|
26 | 26 | </fieldset> |
|
27 | 27 | </div> |
|
28 | 28 | <p class="buttons"> |
|
29 | 29 | |
|
30 | 30 | <%= link_to_remote l(:button_apply), |
|
31 | 31 | { :url => { :set_filter => 1 }, |
|
32 | 32 | :update => "content", |
|
33 | 33 | :with => "Form.serialize('query_form')" |
|
34 | 34 | }, :class => 'icon icon-checked' %> |
|
35 | 35 | |
|
36 | 36 | <%= link_to_remote l(:button_clear), |
|
37 | 37 | { :url => { :set_filter => 1, :project_id => @project }, |
|
38 | 38 | :method => :get, |
|
39 | 39 | :update => "content", |
|
40 | 40 | }, :class => 'icon icon-reload' %> |
|
41 | 41 | |
|
42 | 42 | <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> |
|
43 | 43 | <%= link_to l(:button_save), {}, :onclick => "$('query_form').submit(); return false;", :class => 'icon icon-save' %> |
|
44 | 44 | <% end %> |
|
45 | 45 | </p> |
|
46 | 46 | <% end %> |
|
47 | 47 | |
|
48 | 48 | <%= error_messages_for 'query' %> |
|
49 | 49 | <% if @query.valid? %> |
|
50 | 50 | <% if @issues.empty? %> |
|
51 | 51 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
52 | 52 | <% else %> |
|
53 | 53 | <%= render :partial => 'issues/list', :locals => {:issues => @issues, :query => @query} %> |
|
54 | 54 | <p class="pagination"><%= pagination_links_full @issue_pages, @issue_count %></p> |
|
55 | 55 | <% end %> |
|
56 | 56 | |
|
57 | 57 | <% other_formats_links do |f| %> |
|
58 | 58 | <%= f.link_to 'Atom', :url => { :project_id => @project, :query_id => (@query.new_record? ? nil : @query), :key => User.current.rss_key } %> |
|
59 | 59 | <%= f.link_to 'CSV', :url => { :project_id => @project } %> |
|
60 | 60 | <%= f.link_to 'PDF', :url => { :project_id => @project } %> |
|
61 | 61 | <% end %> |
|
62 | 62 | |
|
63 | 63 | <% end %> |
|
64 | 64 | |
|
65 | 65 | <% content_for :sidebar do %> |
|
66 | 66 | <%= render :partial => 'issues/sidebar' %> |
|
67 | 67 | <% end %> |
|
68 | 68 | |
|
69 | 69 | <% content_for :header_tags do %> |
|
70 | 70 | <%= auto_discovery_link_tag(:atom, {:query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_issue_plural)) %> |
|
71 | 71 | <%= auto_discovery_link_tag(:atom, {:action => 'changes', :query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_changes_details)) %> |
|
72 | 72 | <%= javascript_include_tag 'context_menu' %> |
|
73 | 73 | <%= stylesheet_link_tag 'context_menu' %> |
|
74 | 74 | <% end %> |
|
75 | 75 | |
|
76 | 76 | <div id="context-menu" style="display: none;"></div> |
|
77 | 77 | <%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %> |
General Comments 0
You need to be logged in to leave comments.
Login now