Sha256: 29b406e42cc46b9d6b273fdcf914ed87a0c2b858c030e2780534dfa70db82e6c

Contents?: true

Size: 999 Bytes

Versions: 2

Compression:

Stored size: 999 Bytes

Contents

%table{params}
  %thead
    %tr
      -if presenter.has_batch_actions?
        %th.batching
          %input{id: 'toggle-all-batch-actions-items',type: 'checkbox'}
      - @thead_renderer.columns.each do |column|
        - if ( @presenter.render_field?(column[:field], :index))
          %th{"onclick" => "javascript:#{column[:sort_function]}",  "class" => "#{column[:class]}"}= translate_field(presenter, column[:field])
      - if @presenter.actions_for_record.any?
        %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|
          - if ( @presenter.render_field?(field, :index))
            = list_cel(@presenter, key,record, false).html_safe
        - if @presenter.actions_for_record.any?
          %td
            = list_buttons(@presenter, record).html_safe

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
carnival-0.3.0 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.2.8 app/views/carnival/base_admin/_index_as_table.html.haml