As now multiple budget can coexist at the same time it has sense to be able to browse all the published budgets in the valuation budgets index page.
22 lines
677 B
Plaintext
22 lines
677 B
Plaintext
<h2 class="inline-block"><%= t("valuation.budgets.index.title") %></h2>
|
|
|
|
<% if budgets.any? %>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th><%= t("valuation.budgets.index.table_name") %></th>
|
|
<th><%= t("valuation.budgets.index.table_phase") %></th>
|
|
<th><%= t("valuation.budgets.index.table_assigned_investments_valuation_open") %></th>
|
|
<th><%= t("valuation.budgets.index.table_actions") %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<%= render Valuation::Budgets::RowComponent.with_collection(budgets) %>
|
|
</tbody>
|
|
</table>
|
|
<% else %>
|
|
<div class="callout primary clear">
|
|
<%= t("valuation.budgets.index.no_budgets") %>
|
|
</div>
|
|
<% end %>
|