17 lines
582 B
Text
17 lines
582 B
Text
<div class="row">
|
|
<div class="col-md-6 col-md-offset-3 sign-in">
|
|
<%= form_for @product, html: { multipart: true } do |f| %>
|
|
<%= render 'application/errors', model: @product %>
|
|
|
|
<%= form_text_field f, :name %>
|
|
|
|
<%= f.label :price %>
|
|
<%= f.number_field :price, value: number_with_precision(f.object.price, precision: 2), class: 'form-control form-field', placeholder: "0.00", step: :any %>
|
|
|
|
<%= f.label :avatar %>
|
|
<%= f.file_field :avatar , class: "form-field" %>
|
|
|
|
<%= f.submit class: "btn btn-primary" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|