Sha256: 5f2790a2cdbe7ccc523f026cd56a3b44893952f7a3c7e9aea6df7e35e1e5ae2f

Contents?: true

Size: 784 Bytes

Versions: 5

Compression:

Stored size: 784 Bytes

Contents

%table{params}
  %thead
    %tr
      -if presenter.has_batch_actions?
        %th
          %input{id: 'toggle-all-batch-actions-items',type: 'checkbox',disabled: 'disabled'}
      - @thead_renderer.columns.each do |column|
        %th{"onclick" => "javascript:#{column[:sort_function]}",  "class" => "#{column[:class]}"}= translate_field(presenter, column[:field])
      %th.buttons
  %tbody
    - @records.each do |record|
      %tr
        - if @presenter.has_batch_actions?
          %td
            =check_box_tag(:batch_action_item, record.id, false, class: 'batch_action_items')
        - @presenter.fields_for_action(:index).each do |key, field|
          = list_cel(@presenter, key,record, false).html_safe
        %td
          = list_buttons(@presenter, record).html_safe

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
carnival-0.1.5 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.1.3 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.1.2 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.1.1 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.1.0 app/views/carnival/base_admin/_index_as_table.html.haml