Sha256: 016866d8eb43f116d7d353128c5409ed27d2db02344bb038a4c83e8d2e83d504

Contents?: true

Size: 1.24 KB

Versions: 5

Compression:

Stored size: 1.24 KB

Contents

- is_short ||= false
- reroute(:orange_sites, :orange, packet['site'].id, :edit) unless is_short
- packet.add_js("page-list-effects.js", :module => "_sparkles_")
.list-view
  %table.tablesorter{:class => (is_short ? "is_short" : "")}
    %thead
      %tr.list-header-group
        %th.list-header.page-listing-expand-collapse  
        - for prop in props
          %th.list-header= prop[:name]
        %td.list-header Actions
    %tfoot
      %tr
        %td  
        - for prop in props
          %td  
        %td
          %a.button.add-button{:href => route_to(model_name, 'create')} New
    %tbody
      - for obj in list
        %tr.page-listing-item= view_table_row(model_name, :model => obj)
  .pager
    %form
      %img.first{:src=>"/assets/_sparkles_/images/tablesorter/first.png"}
      %img.prev{:src=>"/assets/_sparkles_/images/tablesorter/prev.png"}
      %input.pagedisplay{:type => "text"}
      %img.next{:src=>"/assets/_sparkles_/images/tablesorter/next.png"}
      %img.last{:src=>"/assets/_sparkles_/images/tablesorter/last.png"}
      %select.pagesize
        %option{:value => "5", :selected => is_short ? true : false} 5
        %option{:value => "10", :selected => is_short ? false : true} 10
        %option{:value => "25"} 25

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
orange-sparkles-0.7.1 lib/orange-sparkles/views/contactforms/list.haml
orange-sparkles-0.7.0 lib/orange-sparkles/views/contactforms/list.haml
orange-sparkles-0.5.9 lib/orange-sparkles/views/contactforms/list.haml
orange-sparkles-0.5.8 lib/orange-sparkles/views/contactforms/list.haml
orange-sparkles-0.5.7 lib/orange-sparkles/views/contactforms/list.haml