2012-12-09 21:57:18 +04:00
|
|
|
<div id="query_form_content" class="hide-when-print">
|
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>
|
|
|
|
<td><%= render :partial => 'queries/columns', :locals => {:query => @query} %></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
2012-12-09 21:57:18 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="buttons hide-when-print">
|
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>
|
2008-04-05 20:40:26 +04:00
|
|
|
|
|
|
|
<div class="tabs">
|
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>
|