<%= form_tag({}, :data => {:cm_url => context_menu_operations_path}) do -%> <%= hidden_field_tag 'back_url', url_for(params.respond_to?(:to_unsafe_hash) ? params.to_unsafe_hash : params), :id => nil %> <%= hidden_field_tag 'project_id', @project.id if @project %>
<% @query.inline_columns.each do |column| %> <%= content_tag('th', column.caption) %> <% end %> <% previous_group = false %> <% @operations.each do |operation| -%> <% if @query.grouped? && (group = @query.group_by_column.value(operation)) != previous_group %> <% reset_cycle %> <% previous_group = group %> <% end %> <%= raw @query.inline_columns.map {|column| ""}.join %> <% @query.block_columns.each do |column| if (text = column_content(column, operation)) && text.present? -%> <% end -%> <% end -%> <% end -%>
<%= link_to image_tag('toggle_check.png'), {}, :onclick => 'toggleCRMIssuesSelection(this); return false;', :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> #
  <%= group.blank? ? l(:label_none) : column_content(@query.group_by_column, operation) %> <%= @operation_count_by_group[group] %> <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", "toggleAllRowGroups(this)", :class => 'toggle-all') %>
<%= check_box_tag("ids[]", operation.id, false, :id => nil) %> <%= link_to operation.id, operation_path(operation) %>#{column_content(column, operation)}
<%= text %>
<%= l(:label_finance_total) %>:<%= prices_collection_by_currency(@operations_debit).join('
').html_safe %>
<%= prices_collection_by_currency(@operations_credit).join('
').html_safe %>
<%= l(:label_account_balance) %>:<%= operations_balance_to_currency(@operations_debit, @operations_credit) %>
<% end -%>