Sha256: 9e55829199c1da1ee9486c367a3252ba4444726d4ad82b1a50a73bad3c10d89c

Contents?: true

Size: 911 Bytes

Versions: 9

Compression:

Stored size: 911 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|
        - if ( @presenter.render_field?(column[:field], :index))
          %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|
          - if ( @presenter.render_field?(field, :index))
            = list_cel(@presenter, key,record, false).html_safe
        %td
          = list_buttons(@presenter, record).html_safe

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
carnival-0.2.3 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.1.10 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.2.2 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.2.1 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.2.0 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.1.9 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.1.8 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.1.7 app/views/carnival/base_admin/_index_as_table.html.haml
carnival-0.1.6 app/views/carnival/base_admin/_index_as_table.html.haml