<%%= form_tag({}, data: {cm_url: context_menu_<%= model_name_pluralize_underscored %>_path}) do %> <%%= hidden_field_tag 'back_url', url_for(params: request.query_parameters), id: nil %>
<%% @query.inline_columns.each do |column| %> <%%= column_header(@query, column) %> <%% end %> <%% grouped_query_results(entities, @query) do |entity, group_name, group_count, group_totals| %> <%% if group_name %> <%% reset_cycle %> <%% end %> <%% @query.inline_columns.each do |column| %> <%%= content_tag('td', column_content(column, entity), class: column.css_classes) %> <%% end %> <%% @query.block_columns.each do |column| %> <%% if (text = column_content(column, entity)) && text.present? %> <%% end %> <%% end %> <%% end %>
<%%= check_box_tag 'check_all', '', false, class: 'toggle-selection', title: "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
  <%%= group_name %> <%% if group_count %> <%%= group_count %> <%% end %> <%%= group_totals %> <%%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", 'toggleAllRowGroups(this)', class: 'toggle-all') %>
<%%= check_box_tag('ids[]', entity.id, false, id: nil) %> <%% if entity.editable_by?(User.current) %> <%%= link_to l(:button_edit), edit_<%= model_name_underscored %>_path(entity), title: l(:button_edit), class: 'icon-only icon-edit' %> <%%= link_to l(:button_delete), <%= model_name_underscored %>_path(entity), data: {confirm: l(:text_are_you_sure)}, method: :delete, title: l(:button_delete), class: 'icon-only icon-del' %> <%% end %>
<%% if query.block_columns.count > 1 %> <%%= column.caption %> <%% end %> <%%= text %>
<%% end %> <%%= context_menu %>