Sha256: 63182a26c49a9b49667632ee164d8c8d3c5a6b617c9699e740cda62dd9c6619b

Contents?: true

Size: 782 Bytes

Versions: 6

Compression:

Stored size: 782 Bytes

Contents

- if <%= sco_underscored_plural %>.any?
  
  %table#<%= sco_underscored_plural %>
  
    = render :partial => 'shared/admin/table_header', :locals => { :columns => %w( Title ), :buttons => 3 }
    
    %tbody
    
      - <%= sco_underscored_plural %>.each do |<%= sco_underscored %>|
    
        %tr
      
          %td&= <%= sco_underscored %>
        
          %td=  link_to_button 'Show',   admin_<%= sco_underscored %>_path(<%= sco_underscored %>)
          %td=  link_to_button 'Edit',   edit_admin_<%= sco_underscored %>_path(<%= sco_underscored %>)
          %td=  link_to_button 'Delete', admin_<%= sco_underscored %>_path(<%= sco_underscored %>), :method => 'delete', :confirm => "Are you sure you want to delete the <%= sco_humanized %>: #{h(<%= sco_underscored %>)}?"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
schofield-0.0.11 generators/schofield_controller/templates/index_partial.rb
schofield-0.0.10 generators/schofield_controller/templates/index_partial.rb
schofield-0.0.9 generators/schofield_controller/templates/index_partial.rb
schofield-0.0.8 generators/schofield_controller/templates/index_partial.rb
schofield-0.0.7 generators/schofield_controller/templates/index_partial.rb
schofield-0.0.6 generators/schofield_controller/templates/index_partial.rb