Sha256: 0c847cf8d2b98e3533c3b0edce6afdef80d323960b39e668c95a8bb829431621

Contents?: true

Size: 1.19 KB

Versions: 6

Compression:

Stored size: 1.19 KB

Contents

- content_for :scripts do
  = javascript_include_tag 'jquery.quickSearch.js', 'jquery.twoLevelSort.js'
  :javascript
    $(function() {
      $('#quick-search').quickSearch({url: '#{forge_product_categories_path}'});

      $('.item-list-compact').forgeTwoLevelSort({callbackPath: '#{reorder_forge_product_categories_path}', itemArray: 'product_category_list[]'});

      FORGE.features.compact_form.init();
    });

%h1
  Product Categories
  = language_switcher(:product_categories)
%p.info This is a list of all the product categories in your site.  You can add, edit, delete and reorder product categories here.


.inner-form.no-top.with-wide-sidebar
  .column.wide-side
    #form
      - if can?(:create, ProductCategory)
        = render "form"
      - else
        You can't create product categories, but you can choose a product category on the right to edit.

  .column.main-small.last
    %h3 Existing Product Categories
    .explanation You can edit or delete your existing product categories here.
    %ul.item-list-compact= render :partial => "product_category", :collection => @product_categories

  .spacer
= render :partial => "forge/shared/section_footer", :locals => {:items => @product_categories}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/views/forge/product_categories/index.html.haml
forge-cli-0.1.9 lib/forge/app/views/forge/product_categories/index.html.haml
forge-cli-0.1.8 lib/forge/app/views/forge/product_categories/index.html.haml
forge-cli-0.1.7 lib/forge/app/views/forge/product_categories/index.html.haml
forge-cli-0.1.6 lib/forge/app/views/forge/product_categories/index.html.haml
forge-cli-0.1.5 lib/forge/app/views/forge/product_categories/index.html.haml