23 lines
500 B
Text
23 lines
500 B
Text
<h1>Update product</h1>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6 col-md-offset-3">
|
|
<%= form_for(@product) do |f| %>
|
|
|
|
<%= f.label :name %>
|
|
<%= f.text_field :name %>
|
|
|
|
<%= f.label :purchase_price %>
|
|
<%= f.number_field :purchase_price %>
|
|
|
|
<%= f.label :sale_price %>
|
|
<%= f.number_field :sale_price %>
|
|
|
|
<%= f.label :img_path %>
|
|
<%= f.text_field :img_path %>
|
|
|
|
<%= f.submit "Save changes", class: "btn btn-primary" %>
|
|
<% end %>
|
|
|
|
</div>
|
|
</div>
|