Added availability date to product table
[depot.git] / app / views / products / edit.html.erb
1 <h1>Editing product</h1>
2
3 <% form_for(@product) do |f| %>
4 <%= f.error_messages %>
5
6 <p>
7 <%= f.label :title %><br />
8 <%= f.text_field :title %>
9 </p>
10 <p>
11 <%= f.label :description %><br />
12 <%= f.text_area :description %>
13 </p>
14 <p>
15 <%= f.label :image_url %><br />
16 <%= f.text_field :image_url %>
17 </p>
18 <p>
19 <%= f.label :price %><br />
20 <%= f.text_field :price %>
21 </p>
22 <p>
23 <%= f.label :date_available %><br />
24 <%= f.date_select :date_available, :order => [:day, :month, :year] %>
25 </p>
26 <p>
27 <%= f.submit "Update" %>
28 </p>
29 <% end %>
30
31 <%= link_to 'Show', @product %> |
32 <%= link_to 'Back', products_path %>