Sha256: 8cded5c7d5b01d3ac41cb44e70f59b3ec91aa11ea050bf37b5b8fadc629be8b2

Contents?: true

Size: 1.56 KB

Versions: 11

Compression:

Stored size: 1.56 KB

Contents

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

<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @product } %>

<%= form_for [:admin, @product], :html => { :multipart => true } do |f| %>
<fieldset data-hook="new_product">

  <%= 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="clearfix" data-hook="new_product_attrs">
    <div class="left">

      <% 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, Spree::Prototype.all, :id, :name, :include_blank => true %>
      </p>

    </div>
    <div class="right">

      <%= 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.text_field :available_on, :class => 'datepicker', :style => "width:150px" %>
      </p>


    </div>
  </div>

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

</fieldset>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_core-1.0.7 app/views/spree/admin/products/new.html.erb
spree_core-1.0.6 app/views/spree/admin/products/new.html.erb
spree_core-1.0.4 app/views/spree/admin/products/new.html.erb
spree_core-1.0.3 app/views/spree/admin/products/new.html.erb
spree_core-1.0.2 app/views/spree/admin/products/new.html.erb
spree_core-1.0.1 app/views/spree/admin/products/new.html.erb
spree_core-1.0.0 app/views/spree/admin/products/new.html.erb
spree_core-1.0.0.rc4 app/views/spree/admin/products/new.html.erb
spree_core-1.0.0.rc3 app/views/spree/admin/products/new.html.erb
spree_core-1.0.0.rc2 app/views/spree/admin/products/new.html.erb
spree_core-1.0.0.rc1 app/views/spree/admin/products/new.html.erb