Sha256: 5cfcdf245e8d27442ff367682e4ee97f44e63b061296d535daabb785ad7734a6

Contents?: true

Size: 1.46 KB

Versions: 6

Compression:

Stored size: 1.46 KB

Contents

<%= render :partial => 'admin/shared/product_sub_menu' %>

<%= error_messages_for :product %>


<% form_for(:product,  :url => collection_url, :html => { :multipart => true }) do |f| %>
<fieldset>

  <% f.field_container :name do %>
    <%= f.label :name, t("name") %> <span class="required">*</span><br />
    <%= f.text_field :name, :class => 'fullwidth title'  %>
    <%= f.error_message_on :name %>
  <% end %>

  <div class="yui-gb">
    <div class="yui-u first">
    
      <% unless @product.has_variants? %>
      <% f.field_container :sku do %>
        <%= f.label :sku, t("sku") %><br />
        <%= f.text_field :sku, :size => 16 %>
        <%= f.error_message_on :sku %>
      <% end %>
      <% end %>
      
      <p>
        <%= f.label :prototype_id, t("prototype") %><br />
        <%= f.collection_select :prototype_id, Prototype.all, :id, :name, :include_blank => true %>
      </p>
    
    </div>
    <div class="yui-u">
        
      <% f.field_container :price do %>
        <%= f.label :price, t("master_price")%> <span class="required">*</span><br />
        <%= f.text_field :price  %>
        <%= f.error_message_on :price%>
      <% end %>

      <p>
        <%= f.label :available_on, t("available_on") %><br />
        <%= f.error_message_on :available_on %>
        <%= calendar_date_select :product, :available_on, :style=>"width:150px" %>
      </p>


    </div>
  </div>

  <%= render :partial => 'admin/shared/new_resource_links' %>

</fieldset>
<% end %>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 app/views/admin/products/new.html.erb
spree-0.9.4 app/views/admin/products/new.html.erb
spree-0.9.3 app/views/admin/products/new.html.erb
spree-0.9.2 app/views/admin/products/new.html.erb
spree-0.9.1 app/views/admin/products/new.html.erb
spree-0.9.0 app/views/admin/products/new.html.erb