Added date_available_from to products, updated conditions in product.find_products_fo...
[depot.git] / app / views / products / new.html.erb
index f93593799e4963301c96ddaf4aa8f6e73d1956fa..339feb84c9ac3f589fa0dde0229f2d1bae05367c 100644 (file)
     <%= f.label :image_url %><br />
     <%= f.text_field :image_url %>
   </p>
+  <p>
+    <%= f.label :price %><br />
+    <%= f.text_field :price %>
+  </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>