improves styles for budgets investments ballot and votes

This commit is contained in:
Alberto Garcia Cabeza
2017-01-05 17:43:57 +01:00
parent 0171538a2d
commit f503c492f3
6 changed files with 19 additions and 13 deletions

View File

@@ -712,6 +712,7 @@
} }
.remove .icon-check-circle { .remove .icon-check-circle {
color: $budget;
display: block; display: block;
font-size: rem-calc(70); font-size: rem-calc(70);
line-height: rem-calc(70); line-height: rem-calc(70);

View File

@@ -9,7 +9,8 @@
class: "remove-investment-project", class: "remove-investment-project",
method: :delete, method: :delete,
remote: true do %> remote: true do %>
<span class="icon-x delete"></span> <span class="sr-only"><%= t('budgets.ballots.show.remove') %></span>
<span class="icon-x delete"></span>
<% end %> <% end %>
<% end %> <% end %>
</li> </li>

View File

@@ -3,7 +3,7 @@
<% if ballot.has_investment?(investment) %> <% if ballot.has_investment?(investment) %>
<div class="remove supported inline-block"> <div class="remove supported inline-block">
<span class="icon-check-circle bounceIn animated" <span class="icon-check-circle"
title="<%= t("budget.investments.investment.already_added") %>"> title="<%= t("budget.investments.investment.already_added") %>">
</span> </span>
<p class="investment-project-amount"> <p class="investment-project-amount">
@@ -42,7 +42,7 @@
<% if reason.present? && !ballot.has_investment?(investment) %> <% if reason.present? && !ballot.has_investment?(investment) %>
<div class="js-participation-not-allowed" style='display:none'> <div class="js-participation-not-allowed participation-not-allowed" style='display:none'>
<p> <p>
<%= t("budgets.ballots.reasons_for_not_balloting.#{reason}", <%= t("budgets.ballots.reasons_for_not_balloting.#{reason}",
verify_account: link_to(t("votes.verify_account"), verification_path), verify_account: link_to(t("votes.verify_account"), verification_path),

View File

@@ -27,7 +27,7 @@
</div> </div>
<% if reason.present? && !user_voted_for %> <% if reason.present? && !user_voted_for %>
<div class="js-participation-not-allowed" style='display:none' aria-hidden="false"> <div class="js-participation-not-allowed participation-not-allowed" style='display:none' aria-hidden="false">
<p> <p>
<%= t("votes.budget_investments.#{reason}", <%= t("votes.budget_investments.#{reason}",
verify_account: link_to(t("votes.verify_account"), verification_path), verify_account: link_to(t("votes.verify_account"), verification_path),

View File

@@ -16,7 +16,7 @@ en:
not_verified: Only verified users can vote on proposals; %{verify_account}. not_verified: Only verified users can vote on proposals; %{verify_account}.
organization: Organizations are not permitted to vote organization: Organizations are not permitted to vote
not_selected: Unselected investment projects can not be supported not_selected: Unselected investment projects can not be supported
not_enough_money: "Price is higher than the available amount left" not_enough_money: "Price is higher than the available amount left."
no_ballots_allowed: Selecting phase is closed no_ballots_allowed: Selecting phase is closed
different_heading_assigned: You have already voted a different heading different_heading_assigned: You have already voted a different heading
groups: groups:
@@ -122,6 +122,8 @@ en:
header: header:
check_ballot: Check my ballot check_ballot: Check my ballot
different_heading_assigned_html: "You have active votes in another heading: %{heading_link}" different_heading_assigned_html: "You have active votes in another heading: %{heading_link}"
progress_bar:
available: "Available: "
show: show:
group: Group group: Group
heading: Heading heading: Heading

View File

@@ -11,14 +11,14 @@ es:
other: "Has votado <span>%{count}</span> propuestas." other: "Has votado <span>%{count}</span> propuestas."
voted_info_html: "Puedes cambiar tus votos en cualquier momento hasta el cierre de esta fase.<br> No hace falta que inviertas todo el dinero disponible." voted_info_html: "Puedes cambiar tus votos en cualquier momento hasta el cierre de esta fase.<br> No hace falta que inviertas todo el dinero disponible."
zero: "Todavía no has votado ninguna propuesta de inversión." zero: "Todavía no has votado ninguna propuesta de inversión."
reasons_for_not_balloting: reasons_for_not_balloting:
not_logged_in: Necesitas %{signin} o %{signup} para continuar. not_logged_in: Necesitas %{signin} o %{signup} para continuar.
not_verified: Las propuestas de inversión sólo pueden ser apoyadas por usuarios verificados, %{verify_account}. not_verified: Las propuestas de inversión sólo pueden ser apoyadas por usuarios verificados, %{verify_account}.
organization: Las organizaciones no pueden votar. organization: Las organizaciones no pueden votar.
not_selected: No se pueden votar propuestas inviables. not_selected: No se pueden votar propuestas inviables.
not_enough_money: No hay fondos suficientes not_enough_money: No hay fondos suficientes.
no_ballots_allowed: El periodo de votación está cerrado. no_ballots_allowed: El periodo de votación está cerrado.
different_heading_assigned: Ya votaste en una sección distinta del presupuesto. different_heading_assigned: Ya votaste en una sección distinta del presupuesto.
groups: groups:
show: show:
title: Selecciona una partida title: Selecciona una partida
@@ -121,6 +121,8 @@ es:
header: header:
check_ballot: Revisar mis votos check_ballot: Revisar mis votos
different_heading_assigned_html: "Ya apoyaste propuestas de otra sección del presupuesto: %{heading_link}" different_heading_assigned_html: "Ya apoyaste propuestas de otra sección del presupuesto: %{heading_link}"
progress_bar:
available: "Disponible: "
show: show:
group: Grupo group: Grupo
heading: Partida heading: Partida