<%
modul_uniq_id ||= controller_name + '_' + action_name
easy_query_label ||= l(:label_easy_project_attachments)
%>

<% if @query && @query.is_a?(EasyProjectAttachmentQuery) %>
  <div class="box doc-group" id="doc_query">
    <%= toggling_container(modul_uniq_id + dom_id(@query), User.current, { :heading => l(:label_easy_project_attachments), :wrapping_heading_element => 'h2', :wrapping_heading_element_classes => 'icon icon-attachment' }) do %>

      <%= render @query, :easy_query_name => easy_query_label, :options => {:hascontextmenu => false}, :form_options => {:free_search_options => {:free_search_url => url_for(:controller => 'easy_project_attachments', :action => 'index')}} %>
    <% end %>
  </div>
<% end %>
