Chris@1464
|
1 <div id="query_form_content" class="hide-when-print">
|
Chris@1464
|
2 <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
|
Chris@1464
|
3 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
|
Chris@1464
|
4 <div style="<%= @query.new_record? ? "" : "display: none;" %>">
|
Chris@1464
|
5 <%= render :partial => 'queries/filters', :locals => {:query => @query} %>
|
Chris@1464
|
6 </div>
|
Chris@1464
|
7 </fieldset>
|
Chris@1464
|
8 <fieldset class="collapsible collapsed">
|
Chris@1464
|
9 <legend onclick="toggleFieldset(this);"><%= l(:label_options) %></legend>
|
Chris@1464
|
10 <div style="display: none;">
|
Chris@1464
|
11 <table>
|
Chris@1464
|
12 <tr>
|
Chris@1464
|
13 <td><%= l(:field_column_names) %></td>
|
Chris@1464
|
14 <td><%= render_query_columns_selection(@query) %></td>
|
Chris@1464
|
15 </tr>
|
Chris@1464
|
16 </table>
|
Chris@1464
|
17 </div>
|
Chris@1464
|
18 </fieldset>
|
Chris@1464
|
19 </div>
|
Chris@1464
|
20
|
Chris@1464
|
21 <p class="buttons hide-when-print">
|
Chris@1464
|
22 <%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %>
|
Chris@1464
|
23 <%= link_to l(:button_clear), {:project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %>
|
Chris@1464
|
24 </p>
|
Chris@1464
|
25
|
Chris@1464
|
26 <div class="tabs">
|
Chris@1464
|
27 <% query_params = params.slice(:f, :op, :v, :sort) %>
|
Chris@1464
|
28 <ul>
|
Chris@1464
|
29 <li><%= link_to(l(:label_details), query_params.merge({:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue }),
|
Chris@1464
|
30 :class => (action_name == 'index' ? 'selected' : nil)) %></li>
|
Chris@1464
|
31 <li><%= link_to(l(:label_report), query_params.merge({:controller => 'timelog', :action => 'report', :project_id => @project, :issue_id => @issue}),
|
Chris@1464
|
32 :class => (action_name == 'report' ? 'selected' : nil)) %></li>
|
Chris@1464
|
33 </ul>
|
Chris@1464
|
34 </div>
|