Adds styles to admin spending proposals summary
This commit is contained in:
@@ -354,6 +354,18 @@ body.admin {
|
||||
.investment-projects-list.medium-9 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.investment-projects-summary {
|
||||
|
||||
th {
|
||||
text-align: center;
|
||||
width: 33%;
|
||||
|
||||
&:first-child {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.admin-content .select-geozone {
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<h2><%= t("admin.spending_proposals.index.title") %></h2>
|
||||
<%= link_to t("admin.spending_proposals.index.summary_link"),
|
||||
summary_admin_spending_proposals_path,
|
||||
class: "button float-right" %>
|
||||
|
||||
<h2 class="inline-block"><%= t("admin.spending_proposals.index.title") %></h2>
|
||||
|
||||
<div class="row margin">
|
||||
<%= form_tag admin_spending_proposals_path, method: :get, enforce_utf8: false do %>
|
||||
@@ -36,8 +40,6 @@
|
||||
</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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -361,6 +361,7 @@ en:
|
||||
to: 'To'
|
||||
author_info:
|
||||
author_deleted: User deleted
|
||||
back: Back
|
||||
check: Select
|
||||
check_all: All
|
||||
check_none: None
|
||||
|
||||
@@ -361,6 +361,7 @@ es:
|
||||
to: 'Hasta'
|
||||
author_info:
|
||||
author_deleted: Usuario eliminado
|
||||
back: Volver
|
||||
check: Seleccionar
|
||||
check_all: Todos
|
||||
check_none: Ninguno
|
||||
|
||||
Reference in New Issue
Block a user