Sha256: c0c6a3732d41896102720e18141a1b25c02920ea3cd72a53d287265f6b8f83f3

Contents?: true

Size: 895 Bytes

Versions: 6

Compression:

Stored size: 895 Bytes

Contents

- fields = form.visible_fields

%table.table.table-striped
  %thead
    %tr
      - if resource_config.list.bulk_actions
        %th= check_box_tag :check_all, "all", false, data: {toggle: 'checkboxes', target: "input[name^='bulk_ids[]']"}
      - fields.each do |field|
        %th{class: "#{field.css_class} #{field.type_css_class}"}
          = form.render_sort_link(field)
      %th.last.shrink
  %tbody
    - form.collection_each do
      = form.render_row do
        - if resource_config.list.bulk_actions
          %td= check_box_tag "bulk_ids[]", form.resource.id
        - fields.each do |field|
          - value = field.pretty_value
          %td{class: "#{field.css_class} #{field.type_css_class}", title: strip_tags(value.to_s)}= value
        %td.last.links
          .btn-group.btn-mini
            = form.render_actions

= render "forms/pagination", collection: form.collection

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
basepack-1.0.1 app/views/forms/_list.html.haml
basepack-1.0.0 app/views/forms/_list.html.haml
basepack-1.0.0.pre.0 app/views/forms/_list.html.haml
basepack-0.2.0 app/views/forms/_list.html.haml
basepack-0.1.0 app/views/forms/_list.html.haml
basepack-0.0.2 app/views/forms/_list.html.haml