Commit b520ed5e5f8aafa5067b5629a3b33a719ee33468

Authored by JoenioCosta
1 parent d17227ec

ActionItem328: oppsvim app/views/manage_products/_form_consumption.rhtml! i forg…

…ot to add view of consumption


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1892 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/manage_products/_form_consumption.rhtml 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +<%= error_messages_for :consumption %> <br/>
  2 +
  3 +<% form_for :consumption, @consumption, nil, :url => {:action => action} do |f| %>
  4 + <%= display_form_field( _('Raw material:'), f.select("product_category_id", ProductCategory.find(:all).map{|pc| [pc.name, pc.id]}) ) if action == 'new_consumption' %>
  5 + <%= display_form_field( _('Aditional specifications:'), f.text_area("aditional_specifications", :rows => 5) ) %>
  6 + <% button_bar do %>
  7 + <%= submit_button('save', (action == 'new_consumption' ? _('Add raw material') : _('Save changes')), :cancel => {:action => 'index'} ) %>
  8 + <% end %>
  9 +<% end %>
... ...