adds admin summary page for spending proposals
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
</div>
|
||||
|
||||
<%= render 'shared/filter_subnav', i18n_namespace: "admin.spending_proposals.index" %>
|
||||
<%= link_to t("admin.spending_proposals.index.summary_link"),
|
||||
summary_admin_spending_proposals_path %>
|
||||
|
||||
<h3><%= page_entries_info @spending_proposals %></h3>
|
||||
|
||||
|
||||
15
app/views/admin/spending_proposals/summary.html.erb
Normal file
15
app/views/admin/spending_proposals/summary.html.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
<h2><%= t("admin.spending_proposals.summary.title") %></h2>
|
||||
|
||||
<table id="spending_proposals">
|
||||
<th><%= t("admin.spending_proposals.summary.geozone_name") %></th>
|
||||
<th><%= t("admin.spending_proposals.summary.count_for_geozone") %></th>
|
||||
<th><%= t("admin.spending_proposals.summary.cost_for_geozone") %></th>
|
||||
|
||||
<% @spending_proposals.each do |geozone, price| %>
|
||||
<tr id="<%= geozone.present? ? dom_id(geozone) : 'geozone_all_city' %>">
|
||||
<td class="name"><%= geozone.present? ? geozone.name : t("geozones.none") %></td>
|
||||
<td class="proposals-count"><%= spending_proposal_count_for_geozone(geozone) %></td>
|
||||
<td class="total-price"><%= number_to_currency(price) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
Reference in New Issue
Block a user