Module: Para::SearchResultsHelper

Defined in:
app/helpers/para/search_results_helper.rb

Instance Method Summary collapse

Instance Method Details

#selected_item_for(result) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'app/helpers/para/search_results_helper.rb', line 3

def selected_item_for(result)
  (:tr, class: 'selected-item', data: { :'selected-item-id' => result.id }) do
    (:td, reorder_anchor, class: 'reorder-anchor-cell') +
    (:td, resource_name(result)) +

    (:td, class: 'remove-button-cell') do
      button_tag type: :button, class: 'btn btn-xs btn-danger', data: { :'remove-item' => true } do
        fa_icon 'arrow-left'
      end
    end
  end
end