fixes back links on valuation budgets

This commit is contained in:
Alberto Garcia Cabeza
2017-01-04 17:33:59 +01:00
parent 74a361690d
commit fa7d6c18fd
2 changed files with 9 additions and 2 deletions

View File

@@ -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 %>
<span class="icon-angle-left"></span>
<%= "#{t('valuation.budget_investments.show.title')} #{@investment.id}"%>
<% end %>
<h2><%= t("valuation.budget_investments.edit.dossier") %></h2>
<%= form_for(@investment, url: valuate_valuation_budget_budget_investment_path(@budget, @investment), html: {id: "valuation_budget_investment_edit_form"}) do |f| %>

View File

@@ -1,4 +1,7 @@
<%= render "shared/back_link" %>
<%= link_to valuation_budget_budget_investments_path do %>
<span class="icon-angle-left"></span>
<%= t('shared.back') %>
<% end %>
<h2><%= t("valuation.budget_investments.show.title") %> <%= @investment.id %> </h2>
<h1><%= @investment.title %></h1>