Sha256: e4a87d5c377b339e5cc78f2ca717a16527ec66f11b2374657a1e178c49dab7fc

Contents?: true

Size: 1.55 KB

Versions: 24

Compression:

Stored size: 1.55 KB

Contents

- content_for :scripts do
  = javascript_include_tag 'jquery.quickSearch'<%= ", 'jquery.twoLevelSort'"  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-compact').forgeTwoLevelSort({callbackPath: '#{reorder_forge_<%= table_name %>_path}', itemArray: '<%= singular_name %>_list[]'});
<% end -%>
      FORGE.features.compact_form.init();
    });

%h1
  <%= table_name.humanize.titleize %>
  = language_switcher(:<%= table_name %>)

%p.info 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.


.inner-form.no-top.with-wide-sidebar
  .column.wide-side
    %h3 Add/Edit <%= singular_name.humanize.titleize %>
    .explanation You can create/edit your <%= singular_name.humanize.downcase %> here.
    #form
      - if can?(:create, <%= class_name %>)
        = render "form"
      - else
        You can't create <%= table_name.humanize.downcase %>, but you can choose one on the right to edit.

  .column.main-small.last
    %h3 Existing <%= table_name.humanize.titleize %>
    .explanation You can edit or delete your existing <%= table_name.humanize.downcase %> here.
    %ul.item-list-compact= render :partial => "<%= singular_name %>", :collection => @<%= table_name %>

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