59 lines
2.0 KiB
Plaintext
59 lines
2.0 KiB
Plaintext
<%= link_to admin_budget_budget_investments_path(Budget::Investment.filter_params(params)), data: {no_turbolink: true} do %>
|
|
<span class="icon-angle-left"></span> <%= t("shared.back") %>
|
|
<% end %>
|
|
|
|
<%= render 'written_by_author' %>
|
|
|
|
<%= link_to t("admin.budget_investments.show.edit"),
|
|
edit_admin_budget_budget_investment_path(@budget, @investment,
|
|
Budget::Investment.filter_params(params)) %>
|
|
|
|
<hr>
|
|
|
|
<h2 id="classification"><%= t("admin.budget_investments.show.classification") %></h2>
|
|
|
|
<p><strong><%= t("admin.budget_investments.show.assigned_admin") %>:</strong>
|
|
<%= @investment.administrator.try(:name_and_email) || t("admin.budget_investments.show.undefined") %>
|
|
</p>
|
|
|
|
<p id="tags">
|
|
<strong><%= t("admin.budget_investments.show.tags") %>:</strong>
|
|
|
|
<%= @investment.tags_on(:valuation).pluck(:name).join(', ') %>
|
|
</p>
|
|
|
|
<p id="assigned_valuators">
|
|
<strong><%= t("admin.budget_investments.show.assigned_valuators") %>:</strong>
|
|
<% if @investment.valuators.any? %>
|
|
<%= @investment.valuators.collect(&:name_and_email).join(', ') %>
|
|
<% else %>
|
|
<%= t("admin.budget_investments.show.undefined") %>
|
|
<% end %>
|
|
</p>
|
|
|
|
<p>
|
|
<%= link_to t("admin.budget_investments.show.edit_classification"),
|
|
edit_admin_budget_budget_investment_path(@budget, @investment,
|
|
{anchor: 'classification'}.merge(Budget::Investment.filter_params(params))) %>
|
|
</p>
|
|
|
|
<hr>
|
|
|
|
<h2><%= t("admin.budget_investments.show.dossier") %></h2>
|
|
|
|
<%= render 'valuation/budget_investments/written_by_valuators' %>
|
|
|
|
<p>
|
|
<%= link_to t("admin.budget_investments.show.edit_dossier"), edit_valuation_budget_budget_investment_path(@budget, @investment) %>
|
|
</p>
|
|
|
|
<hr>
|
|
|
|
<h2><%= t("admin.budget_investments.show.milestone") %></h2>
|
|
|
|
<%= render 'admin/budget_investments/milestones' %>
|
|
|
|
<p>
|
|
<%= link_to t("admin.budget_investments.show.new_milestone"), new_admin_budget_budget_investment_budget_investment_milestone_path(@budget, @investment) %>
|
|
</p>
|