Sha256: 121c8da48e99ea8b65df6a5fb6a4243fa5a85f502badd13dd329052bd9f26310

Contents?: true

Size: 1.45 KB

Versions: 19

Compression:

Stored size: 1.45 KB

Contents

- content_for :scripts do
  :javascript
    $(function() {
      $('.preview').click(function(e) {
        for ( instance in CKEDITOR.instances )
          CKEDITOR.instances[instance].updateElement();
        var vals = $('form').serialize();
        window.open('/products/preview?' + vals);
        e.preventDefault();
      });

      $('#tabs').tabs();
      clearUIClasses();

      FORGE.features.nestedFields.init('#images', {after: function() { FORGE.features.nestedFields.reorganize(4, '#images-list li'); }});
      FORGE.features.nestedFields.reorganize(4, '#images-list li');
    });


= form_for [:forge, @product], :builder => ForgeFormBuilder do |f|
  = error_messages_for :product
  #tabs
    %ul.tabbed
      %li= link_to "Product Details", '#details'
      %li= link_to "Product Images", '#images'
      %li= link_to "Taxes & Shipping", '#taxes_shipping'
      %li= link_to "SEO Fields", "#seo"
    .spacer
    #details= render :partial => "forge/products/modules/details", :locals => {:f => f}
    #images= render :partial => "forge/products/modules/images", :locals => {:f => f}
    #taxes_shipping= render :partial => "forge/products/modules/taxes_shipping", :locals => {:f => f}
    #seo= render :partial => "forge/shared/seo_fields", :locals => {:f => f}
  #item-list-bottom
    .float-right
      Everything look good?
      = button_link "Preview", "javascript:;", :class => "preview button"
      = button_link "Save", "javascript:;", :class => "submit button"

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
forge-cli-0.1.5 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.1.4 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.1.3 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.1.2 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.1.1 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.1.0 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.18 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.17 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.16 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.15 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.14 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.13 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.12 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.11 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.10 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.9 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.8 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.7 lib/forge/app/views/forge/products/_form.html.haml
forge-cli-0.0.6 lib/forge/app/views/forge/products/_form.html.haml