2014-01-11 15:12:03 +04:00
|
|
|
<div id="query_form_with_buttons" class="hide-when-print">
|
|
|
|
<div id="query_form_content">
|
2012-12-10 01:03:30 +04:00
|
|
|
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
|
|
|
|
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
|
|
|
|
<div style="<%= @query.new_record? ? "" : "display: none;" %>">
|
|
|
|
<%= render :partial => 'queries/filters', :locals => {:query => @query} %>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset class="collapsible collapsed">
|
|
|
|
<legend onclick="toggleFieldset(this);"><%= l(:label_options) %></legend>
|
|
|
|
<div style="display: none;">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td><%= l(:field_column_names) %></td>
|
2013-02-23 16:14:22 +04:00
|
|
|
<td><%= render_query_columns_selection(@query) %></td>
|
2012-12-10 01:03:30 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
2012-12-09 21:57:18 +04:00
|
|
|
</div>
|
|
|
|
|
2014-01-11 15:12:03 +04:00
|
|
|
<p class="buttons">
|
2012-12-10 01:03:30 +04:00
|
|
|
<%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %>
|
2012-12-09 21:57:18 +04:00
|
|
|
<%= link_to l(:button_clear), {:project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %>
|
2009-09-20 11:24:16 +04:00
|
|
|
</p>
|
2014-01-11 15:12:03 +04:00
|
|
|
</div>
|
2008-04-05 20:40:26 +04:00
|
|
|
|
2014-01-11 15:12:03 +04:00
|
|
|
<div class="tabs hide-when-print">
|
2012-12-09 21:57:18 +04:00
|
|
|
<% query_params = params.slice(:f, :op, :v, :sort) %>
|
2008-04-05 20:40:26 +04:00
|
|
|
<ul>
|
2012-12-09 21:57:18 +04:00
|
|
|
<li><%= link_to(l(:label_details), query_params.merge({:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue }),
|
2012-04-25 21:17:49 +04:00
|
|
|
:class => (action_name == 'index' ? 'selected' : nil)) %></li>
|
2012-12-09 21:57:18 +04:00
|
|
|
<li><%= link_to(l(:label_report), query_params.merge({:controller => 'timelog', :action => 'report', :project_id => @project, :issue_id => @issue}),
|
2012-04-25 21:17:49 +04:00
|
|
|
:class => (action_name == 'report' ? 'selected' : nil)) %></li>
|
2008-04-05 20:40:26 +04:00
|
|
|
</ul>
|
|
|
|
</div>
|