From 371df2fb5f6c5a8dd8b4f3cd82955e0d2e4f5052 Mon Sep 17 00:00:00 2001 From: AurelioAHeckert Date: Sat, 21 Jun 2008 04:38:01 +0000 Subject: [PATCH] ActionItem440: manage_products embelezada --- app/views/manage_products/index.rhtml | 11 ++++++++--- app/views/manage_products/show.rhtml | 15 ++++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) 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' %> + +
 

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

@@ -42,6 +44,9 @@ <% end %> -

<%= 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 @@

<%= @product.name %>

<%= 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 %> -
-<%= link_to _('back'), :action => 'index' %> -- libgit2 0.21.2