Added date_available_from to products, updated conditions in product.find_products_fo...
[depot.git] / app / views / products / new.html.erb
index 90ef7f2e0edd275a50db49820fc78281d92aebe5..339feb84c9ac3f589fa0dde0229f2d1bae05367c 100644 (file)
     <%= f.label :image_url %><br />
     <%= f.text_field :image_url %>
   </p>
-   <p>
+  <p>
     <%= f.label :price %><br />
     <%= f.text_field :price %>
   </p>
- <p>
+  <p>
+    <%= f.label :date_available %><br />
+    <%= f.date_select :date_available, :order => [:day, :month, :year] %>
+  </p>
+  <p>
+    <%= f.label :date_available_until %><br />
+    <%= f.date_select :date_available_until, :order => [:day, :month, :year], :include_blank => true %>
+  </p>
+  <p>
     <%= f.submit "Create" %>
   </p>
 <% end %>