Adds styles to admin spending proposals summary

This commit is contained in:
Alberto Garcia Cabeza
2016-04-25 11:12:52 +02:00
parent 13f65b6b71
commit a45e112e65
5 changed files with 27 additions and 6 deletions

View File

@@ -1,6 +1,11 @@
<%= link_to admin_spending_proposals_path, class: "back" do %>
<span class="icon-angle-left"></span>
<%= t("shared.back") %>
<% end %>
<h2><%= t("admin.spending_proposals.summary.title") %></h2>
<table id="spending_proposals">
<table id="spending_proposals" class="investment-projects-summary">
<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>
@@ -8,8 +13,8 @@
<% @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>
<td class="proposals-count text-center"><%= spending_proposal_count_for_geozone(geozone) %></td>
<td class="total-price text-center"><%= number_to_currency(price) %></td>
</tr>
<% end %>
</table>