Sha256: bd7615106c288557c68b034a7e75501885dd70ec734349f2c83cd7f50a5c88fb

Contents?: true

Size: 1.5 KB

Versions: 28

Compression:

Stored size: 1.5 KB

Contents

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

<%= render "shared/error_messages", :target => @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 %>
        <%= f.spree_date_picker :available_on, :style=>"width:150px" %>
      </p>


    </div>
  </div>

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

</fieldset>
<% end %>
<%= javascript_tag "datePickerController.create();" %>

Version data entries

28 entries across 28 versions & 6 rubygems

Version Path
apispree_core-0.0.0 app/views/admin/products/new.erb~
My-Commerce_core-1.1.0 app/views/admin/products/new.erb~
My-Commerce_core-1.0.0 app/views/admin/products/new.erb~
MyCommerceapi-1.0.0 core/app/views/admin/products/new.erb~
MyCommerce-0.0.3 core/app/views/admin/products/new.erb~
rfcommerce_core-0.0.3 app/views/admin/products/new.erb~
spree_core-0.60.6 app/views/admin/products/new.erb
spree_core-0.60.5 app/views/admin/products/new.erb
spree_core-0.30.2 app/views/admin/products/new.html.erb
spree_core-0.40.4 app/views/admin/products/new.html.erb
spree_core-0.50.4 app/views/admin/products/new.html.erb
spree_core-0.60.4 app/views/admin/products/new.erb
spree_core-0.50.3 app/views/admin/products/new.html.erb
spree_core-0.60.3 app/views/admin/products/new.erb
spree_core-0.60.2 app/views/admin/products/new.erb
spree_core-0.60.1 app/views/admin/products/new.erb
spree_core-0.60.0 app/views/admin/products/new.erb
spree_core-0.60.0.RC1 app/views/admin/products/new.erb
spree_core-0.50.2 app/views/admin/products/new.html.erb
spree_core-0.50.1 app/views/admin/products/new.html.erb