##// END OF EJS Templates
Ajaxified issue filter reset link...
Jean-Philippe Lang -
r508:b9be1d126863
parent child
Show More
@@ -1,84 +1,87
1 1 <% if @query.new_record? %>
2 2 <div class="contextual">
3 3 <%= render :partial => 'issues/add_shortcut', :locals => {:trackers => @trackers } %>
4 4 </div>
5 5 <h2><%=l(:label_issue_plural)%></h2>
6 6
7 7 <% form_tag({:action => 'list_issues'}, :id => 'query_form') do %>
8 8 <%= render :partial => 'queries/filters', :locals => {:query => @query} %>
9 9 <% end %>
10 10 <div class="contextual">
11 11 <%= link_to_remote l(:button_apply),
12 12 { :url => { :controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1 },
13 13 :update => "content",
14 14 :with => "Form.serialize('query_form')"
15 }, :class => 'icon icon-edit' %>
16
17 <%= link_to l(:button_clear), {:controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1}, :class => 'icon icon-del' %>
18 <% if authorize_for('projects', 'add_query') %>
19
15 }, :class => 'icon icon-edit' %>
16
17 <%= link_to_remote l(:button_clear),
18 { :url => {:controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1},
19 :update => "content",
20 }, :class => 'icon icon-del' %>
21
22 <% if authorize_for('projects', 'add_query') %>
20 23 <%= link_to_remote l(:button_save),
21 24 { :url => { :controller => 'projects', :action => "add_query", :id => @project },
22 25 :method => 'get',
23 26 :update => "content",
24 27 :with => "Form.serialize('query_form')"
25 28 }, :class => 'icon icon-save' %>
26 29 <% end %>
27 30 </div>
28 31 <br />
29 32 <% else %>
30 33 <div class="contextual">
31 34 <%= render :partial => 'issues/add_shortcut', :locals => {:trackers => @trackers } %>
32 35 <% if authorize_for('projects', 'add_query') %>
33 36 <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => @query}, :class => 'icon icon-edit' %>
34 37 <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => @query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
35 38 <% end %>
36 39 </div>
37 40 <h2><%= @query.name %></h2>
38 41 <% end %>
39 42 <%= error_messages_for 'query' %>
40 43 <% if @query.valid? %>
41 44 <% if @issues.empty? %>
42 45 <p><i><%= l(:label_no_data) %></i></p>
43 46 <% else %>
44 47 &nbsp;
45 48 <% form_tag({:controller => 'projects', :action => 'move_issues', :id => @project}, :id => 'issues_form' ) do %>
46 49 <table class="list">
47 50 <thead><tr>
48 51 <th></th>
49 52 <%= sort_header_tag("#{Issue.table_name}.id", :caption => '#') %>
50 53 <%= sort_header_tag("#{Issue.table_name}.tracker_id", :caption => l(:field_tracker)) %>
51 54 <%= sort_header_tag("#{IssueStatus.table_name}.name", :caption => l(:field_status)) %>
52 55 <%= sort_header_tag("#{Issue.table_name}.priority_id", :caption => l(:field_priority)) %>
53 56 <th><%=l(:field_subject)%></th>
54 57 <%= sort_header_tag("#{User.table_name}.lastname", :caption => l(:field_assigned_to)) %>
55 58 <%= sort_header_tag("#{Issue.table_name}.updated_on", :caption => l(:field_updated_on)) %>
56 59 </tr></thead>
57 60 <tbody>
58 61 <% for issue in @issues %>
59 62 <tr class="<%= cycle("odd", "even") %>">
60 63 <th style="width:15px;"><%= check_box_tag "issue_ids[]", issue.id, false, :id => "issue_#{issue.id}" %></th>
61 64 <td align="center"><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
62 65 <td align="center"><%= issue.tracker.name %></td>
63 66 <td><div class="square" style="background:#<%= issue.status.html_color %>;"></div> <%= issue.status.name %></td>
64 67 <td align="center"><%= issue.priority.name %></td>
65 68 <td><%= "#{issue.project.name} - " unless @project && @project == issue.project %><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></td>
66 69 <td align="center"><%= issue.assigned_to.name if issue.assigned_to %></td>
67 70 <td align="center"><%= format_time(issue.updated_on) %></td>
68 71 </tr>
69 72 <% end %>
70 73 </tbody>
71 74 </table>
72 75 <div class="contextual">
73 76 <%= l(:label_export_to) %>
74 77 <%= link_to 'CSV', {:action => 'export_issues_csv', :id => @project}, :class => 'icon icon-csv' %>,
75 78 <%= link_to 'PDF', {:action => 'export_issues_pdf', :id => @project}, :class => 'icon icon-pdf' %>
76 79 </div>
77 80 <p><%= submit_tag l(:button_move), :class => "button-small" %>
78 81 &nbsp;
79 82 <%= pagination_links_full @issue_pages %>
80 83 [ <%= @issue_pages.current.first_item %> - <%= @issue_pages.current.last_item %> / <%= @issue_count %> ]
81 84 </p>
82 85 <% end %>
83 86 <% end %>
84 87 <% end %> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now