Manage the render of the price field on admin investments section

This commit is contained in:
decabeza
2022-02-02 13:36:08 +01:00
committed by taitus
parent 2c16bac5f8
commit 40bdd1f03a
3 changed files with 21 additions and 4 deletions

View File

@@ -30,7 +30,9 @@
</th>
<th data-field="geozone"><%= t("admin.budget_investments.index.list.geozone") %></th>
<th data-field="feasibility"><%= t("admin.budget_investments.index.list.feasibility") %></th>
<th data-field="price"><%= t("admin.budget_investments.index.list.price") %></th>
<% if @budget.show_money? %>
<th data-field="price"><%= t("admin.budget_investments.index.list.price") %></th>
<% end %>
<th data-field="valuation_finished">
<%= t("admin.budget_investments.index.list.valuation_finished") %>
</th>

View File

@@ -42,9 +42,11 @@
<%= t("admin.budget_investments.index.feasibility.#{investment.feasibility}") %>
</td>
<td class="small" data-field="price">
<%= investment.formatted_price %>
</td>
<% if @budget.show_money? %>
<td class="small" data-field="price">
<%= investment.formatted_price %>
</td>
<% end %>
<td class="small text-center" data-field="valuation_finished">
<%= investment.valuation_finished? ? t("shared.yes") : t("shared.no") %>