Sha256: 4c0e49b15941924aa8b0ae7d5dedd8877e8d5a9fd0fb527018660225dfce8009
Contents?: true
Size: 1.99 KB
Versions: 1
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="variant-listing"> <%= render :partial => 'variants', :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree-0.0.8 | starter-app/vendor/plugins/spree/app/views/admin/products/_form.rhtml |