tap/app/views/products/_form.html.erb

17 lines
457 B
Plaintext
Raw Normal View History

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