From fa7d6c18fd99906be7c50e9baa710207d493c127 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Wed, 4 Jan 2017 17:33:59 +0100 Subject: [PATCH] fixes back links on valuation budgets --- app/views/valuation/budget_investments/edit.html.erb | 6 +++++- app/views/valuation/budget_investments/show.html.erb | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/views/valuation/budget_investments/edit.html.erb b/app/views/valuation/budget_investments/edit.html.erb index e03d850a4..16dc3b59d 100644 --- a/app/views/valuation/budget_investments/edit.html.erb +++ b/app/views/valuation/budget_investments/edit.html.erb @@ -1,4 +1,8 @@ -<%= link_to "#{t('valuation.budget_investments.show.title')} #{@investment.id}", valuation_budget_budget_investment_path(@budget, @investment), class: 'back' %> +<%= link_to valuation_budget_budget_investment_path(@budget, @investment), class: 'back' do %> + + <%= "#{t('valuation.budget_investments.show.title')} #{@investment.id}"%> +<% end %> +

<%= t("valuation.budget_investments.edit.dossier") %>

<%= form_for(@investment, url: valuate_valuation_budget_budget_investment_path(@budget, @investment), html: {id: "valuation_budget_investment_edit_form"}) do |f| %> diff --git a/app/views/valuation/budget_investments/show.html.erb b/app/views/valuation/budget_investments/show.html.erb index 602c53dda..f0eaed2c8 100644 --- a/app/views/valuation/budget_investments/show.html.erb +++ b/app/views/valuation/budget_investments/show.html.erb @@ -1,4 +1,7 @@ -<%= render "shared/back_link" %> +<%= link_to valuation_budget_budget_investments_path do %> + + <%= t('shared.back') %> +<% end %>

<%= t("valuation.budget_investments.show.title") %> <%= @investment.id %>

<%= @investment.title %>