diff --git a/app/views/manage_products/index.rhtml b/app/views/manage_products/index.rhtml index bd4610f..96dcda6 100644 --- a/app/views/manage_products/index.rhtml +++ b/app/views/manage_products/index.rhtml @@ -18,7 +18,9 @@ <% end %> -
<%= link_to _('New product or service'), :action => 'new' %>
+<%= button :add, _('New product or service'), :action => 'new' %> + +<%= link_to _('Add raw material'), :action => 'new_consumption' %>
+<%= button :add, _('Add raw material'), :action => 'new_consumption' %> + ++<%= link_to_myprofile( ''+ _('Back') +'', {}, @profile.identifier, :class => 'button with-text icon-back' ) %> +
-<%= link_to_myprofile(_('Back'), {}, @profile.identifier) %> diff --git a/app/views/manage_products/show.rhtml b/app/views/manage_products/show.rhtml index be1fd61..12e8be2 100644 --- a/app/views/manage_products/show.rhtml +++ b/app/views/manage_products/show.rhtml @@ -1,11 +1,12 @@<%= image_tag @product.image.public_filename if @product.image %>
-<%= _('Price:') %> <%= @product.price %>
-<%= _('Description:') %> <%= @product.description %>
-<%= _('Category:') %> <%= link_to_category(@product.product_category) %>
+<%= _('Price:') %> <%= @product.price %>
+<%= _('Description:') %> <%= txt2html @product.description if @product.description %>
+<%= _('Category:') %> <%= link_to_category(@product.product_category) %>
+ +<%= button :back, _('back'), :action => 'index' %> + +<%= button :delete, _('destroy'), :action => 'destroy', :id => @product %> +<%= button :edit, _('edit'), :action => 'edit', :id => @product %> -<%= link_to _('edit'), :action => 'edit', :id => @product %> -<%= link_to _('destroy'), :action => 'destroy', :id => @product %> -