From b520ed5e5f8aafa5067b5629a3b33a719ee33468 Mon Sep 17 00:00:00 2001 From: JoenioCosta Date: Fri, 6 Jun 2008 19:46:15 +0000 Subject: [PATCH] ActionItem328: oppsvim app/views/manage_products/_form_consumption.rhtml! i forgot to add view of consumption --- app/views/manage_products/_form_consumption.rhtml | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) create mode 100644 app/views/manage_products/_form_consumption.rhtml diff --git a/app/views/manage_products/_form_consumption.rhtml b/app/views/manage_products/_form_consumption.rhtml new file mode 100644 index 0000000..fc8a0b4 --- /dev/null +++ b/app/views/manage_products/_form_consumption.rhtml @@ -0,0 +1,9 @@ +<%= error_messages_for :consumption %>
+ +<% form_for :consumption, @consumption, nil, :url => {:action => action} do |f| %> + <%= display_form_field( _('Raw material:'), f.select("product_category_id", ProductCategory.find(:all).map{|pc| [pc.name, pc.id]}) ) if action == 'new_consumption' %> + <%= display_form_field( _('Aditional specifications:'), f.text_area("aditional_specifications", :rows => 5) ) %> + <% button_bar do %> + <%= submit_button('save', (action == 'new_consumption' ? _('Add raw material') : _('Save changes')), :cancel => {:action => 'index'} ) %> + <% end %> +<% end %> -- libgit2 0.21.2