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.1.10 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.1.9 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.1.8 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.1.7 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.1.6 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.1.5 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.1.4 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.1.3 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.1.2 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.1.1 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.1.0 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.18 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.17 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.16 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.15 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.14 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.13 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.12 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.11 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml
forge-cli-0.0.10 lib/forge/lib/generators/forge/scaffold/templates/view_index.html.haml