tap/app/views/products/new.html.erb
2014-11-10 15:52:54 +01:00

25 lines
No EOL
602 B
Text

<h1>Product creation</h1>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<%= form_for(@product) do |f| %>
<%= render 'shared/error_messages', object: f.object %>
<%= f.label :name %>
<%= f.text_field :name %>
</br>
<%= f.label :purchase_price %>
<%= f.number_field :purchase_price %>
</br>
<%= f.label :sale_price %>
<%= f.number_field :sale_price %>
</br>
<%= f.label :image_path %>
<%= f.text_field :image_path %>
</br>
<%= f.submit "Create product", class: "btn btn-primary" %>
<% end %>
</div>
</div>