Sha256: 1010255b199b80a6e7ef910ae9138f4621546aa688bf150477778587037bcd6c

Contents?: true

Size: 993 Bytes

Versions: 24

Compression:

Stored size: 993 Bytes

Contents

- content_for :scripts do
  = javascript_include_tag 'jquery.quickSearch.js'<%= ", 'jquery.twoLevelSort.js'"  unless attributes.select{|a| a.name == "list_order" }.empty? %>
  :javascript
    $(function() {
      $('#quick-search').quickSearch({url: '#{forge_<%= table_name %>_path}'});
<% unless attributes.select{|a| a.name == "list_order" }.empty? -%>
      $('#item-list').forgeTwoLevelSort({callbackPath: '#{reorder_forge_<%= table_name %>_path}', itemArray: '<%= singular_name %>_list[]'});
<% end -%>
    });

%h1 Your <%= table_name.humanize.titleize %>

%p This is a list of all the <%= table_name.humanize.downcase %> in your site.  You can add, edit, and delete <%= table_name.humanize.downcase %> here.

= render :partial => "forge/shared/section_header", :locals => {:item => <%= class_name %>}
%ul#item-list= render :partial => "<%= singular_name %>", :collection => @<%= table_name %>
= render :partial => "forge/shared/section_footer", :locals => {:items => @<%= table_name %>}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.0.9 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.8 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.7 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.6 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml