Sha256: 2e24c5998e656d6b402f804254ccaaa8f6e62a34ef001255e6105dd51eeebb60

Contents?: true

Size: 1.15 KB

Versions: 4

Compression:

Stored size: 1.15 KB

Contents

<%= error_messages_for 'category' %>

<!--[form:category]-->
<p><label for="category_name">Name</label><br/>
<%= text_field 'category', 'name'  %></p>

<p><label for="category_parent_id">Parent Category</label><br/>
<%= collection_select :category, :parent_id, @all_categories, :id, :long_name, {}, {"style" => "width:250px"} %></p>

<%= observe_field :category_parent_id, 
                  :update => 'treatmentWrapper', 
                  :url => {:action => :tax_treatments}, 
                  :with => "'category_id=#{@category.id}&parent_id=' + encodeURIComponent(value)",
                  :on => 'changed' -%>
<%= observe_field :category_parent_id, 
                  :update => 'variationsWrapper', 
                  :url => {:controller => :variations, :action => :category_variations}, 
                  :with => "'category_id=#{@category.id}&parent_id=' + encodeURIComponent(value)", 
                  :on => 'changed' -%>                   
<div id="treatmentWrapper">
  <%= render :partial => 'shared/tax_treatments', :locals => {:tax_treatments => @all_tax_treatments, :selected_treatments => @category.tax_treatments} -%>
</div>
<!--[eoform:category]-->

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
railscart-0.0.4 starter_app/vendor/plugins/railscart/app/views/admin/categories/_form.rhtml
spree-0.0.6 starter-app/vendor/plugins/spree/app/views/admin/categories/_form.rhtml
spree-0.0.5 starter-app/vendor/plugins/spree/app/views/admin/categories/_form.rhtml
spree-0.0.7 starter-app/vendor/plugins/spree/app/views/admin/categories/_form.rhtml