Merge pull request #3356 from LextrendIT/feature/module_15_extract_costs_from_admin_investments_feasability_column

Add price column in the admin budget investments table
This commit is contained in:
Javier Martín
2019-04-03 21:29:31 +02:00
committed by GitHub
5 changed files with 14 additions and 5 deletions

View File

@@ -36,6 +36,7 @@
</th>
<th><%= t("admin.budget_investments.index.list.geozone") %></th>
<th><%= t("admin.budget_investments.index.list.feasibility") %></th>
<th><%= t("admin.budget_investments.index.list.price") %></th>
<th class="text-center"><%= t("admin.budget_investments.index.list.valuation_finished") %></th>
<th class="text-center"><%= t("admin.budget_investments.index.list.visible_to_valuators") %></th>
<th class="text-center"><%= t("admin.budget_investments.index.list.selected") %></th>

View File

@@ -31,8 +31,10 @@
<%= investment.heading.name %>
</td>
<td class="small">
<%= t("admin.budget_investments.index.feasibility.#{investment.feasibility}",
price: investment.formatted_price) %>
<%= t("admin.budget_investments.index.feasibility.#{investment.feasibility}") %>
</td>
<td class="small">
<%= investment.formatted_price %>
</td>
<td class="small text-center">
<%= investment.valuation_finished? ? t("shared.yes"): t("shared.no") %>