Sha256: 7f37bff33fb8b66fb90161935aecef9a5c36cef262f372992c1d67415ee314e3

Contents?: true

Size: 1.99 KB

Versions: 3

Compression:

Stored size: 1.99 KB

Contents

<!--[form:product]-->                       
<p>
  <label for="product_name">Name</label><br/>
	<%=error_message_on :product, :name%>  
  <%= f.text_field :name  %>
</p>
<p>
  <label for="product_description">Description</label><br/>
	<%=error_message_on :product, :description%>
  <%= f.text_area :description, {:cols => 90, :rows => 10} %>
</p>
<p>
<p>
  <label for="price">Price:</label><br/>
	<%=error_message_on :product, :price%>
  <%= f.text_field :price  %></p>
</p>
<p>
  <% fields_for :sku, @product.sku do |s| %>
    <label for="product_sku">Sku</label><br/>
    <%= s.text_field :number %>
  <% end %>	
</p>
<p>
  <label for="category">Category:</label><br/>
  <select id="category" 
	        name="category" 
					style="width:250px;"> 
    <%= options_from_collection_for_select(@all_categories, :id, :long_name, @selected_category) %>
  </select>
	<%= observe_field :category, 
                    :update => 'treatmentWrapper', 
                    :url => {:action => :tax_treatments}, 
                    :with => "'id=#{@product.id}&category_id=' + encodeURIComponent(value)", 
                    :on => 'changed' -%> 
</p>
<br/>
<div id="variation-listing">
	<%= render :partial => 'variations', :locals => {:product => @product} -%>
</div>
<br/>
<div id="option-type-listing">
	<%= render :partial => 'option_types', :locals => {:product => @product} -%>
</div>
<br/>
<div id="image-listing">
  <%= render :partial => 'shared/images', :locals => {:viewable => @product} -%>
</div>

<p>
	<label for="tags">Tags:</label><br/>
  <input autocomplete="off" id="product_tags" name="tags" value="<%= @product.tag_list %>" size="35" type="text"/>
</p>
<p>
	<i>Space delimited, no special characters.</i>
</p>
<br/>

<div id="treatmentWrapper">
  <%= render :partial => 'shared/tax_treatments', :locals => {:tax_treatments => @all_tax_treatments, :selected_treatments => @product.tax_treatments} -%>
</div>
<div id="tags_update"></div>

<!--[eoform:product]-->

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree-0.0.5 starter-app/vendor/plugins/spree/app/views/admin/products/_form.rhtml
spree-0.0.6 starter-app/vendor/plugins/spree/app/views/admin/products/_form.rhtml
spree-0.0.7 starter-app/vendor/plugins/spree/app/views/admin/products/_form.rhtml