2014-12-09 14:39:27 +01:00
|
|
|
<div class="row">
|
2014-12-12 12:50:13 +01:00
|
|
|
<div class="col-md-6 col-md-offset-3 sign-in">
|
2015-02-09 17:06:24 +01:00
|
|
|
<%= f_form_for @product, html: { multipart: true } do |f| %>
|
2015-02-09 11:58:43 +01:00
|
|
|
<%= f.error_messages %>
|
2014-12-09 14:39:27 +01:00
|
|
|
|
2015-02-09 11:58:43 +01:00
|
|
|
<%= f.text_field :name %>
|
|
|
|
<%= f.price_field :price %>
|
|
|
|
<%= f.collection_select :category, Product.categories.keys %>
|
|
|
|
<%= f.number_field :stock %>
|
|
|
|
<%= f.file_field :avatar %>
|
2014-12-09 14:39:27 +01:00
|
|
|
|
2015-02-09 11:58:43 +01:00
|
|
|
<%= f.submit %>
|
2014-12-09 14:39:27 +01:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|