<%=_('Listing products and services') %>

<% if @products.empty? %> <% end %> <% @products.each do |product| %> <% end %>
<%= _('Product') %> <%= _('Price') %> <%= _('Actions') %>
<%= _('(no product registered yet)') %>
<%= link_to product.name, :action => 'show', :id => product %> <%= product.price %> <%= button :edit, _('Edit'), :action => 'edit', :id => product %> <%= button :delete, _('Destroy'), :action => 'destroy', :id => product %>
<% button_bar do %> <%= button :add, _('New product or service'), :action => 'new' %> <%= button :back, _('Back'), { :controller => 'profile_editor', :profile => @profile.identifier, :action => 'index' } %> <% end %>
 

<%=_('Listing raw materials') %>

<% if @consumptions.empty? %> <% end %> <% @consumptions.each do |consumption| %> <% end %>
<%= _('Raw material') %> <%= _('Actions') %>
<%= _('(no raw material registered yet)') %>
<%= link_to_product_category(consumption.product_category) %>
<%= consumption.aditional_specifications %>
<%= button :edit, _('Edit'), :action => 'edit_consumption', :id => consumption %> <%= button :delete, _('Remove'), { :action => 'destroy_consumption', :id => consumption }, :confirm => _('Are you sure, you want to remove this raw material from your list') %>
<% button_bar do %> <%= button :add, _('Add raw material'), :action => 'new_consumption' %> <%= button :back, _('Back'), { :controller => 'profile_editor', :profile => @profile.identifier, :action => 'index' } %> <% end %>