adds styles to officing voters views
This commit is contained in:
committed by
kikito
parent
70752e217d
commit
1a56d5bbe6
@@ -42,6 +42,10 @@ body.admin {
|
|||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
|
&.text-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tr {
|
tr {
|
||||||
|
|||||||
@@ -14,5 +14,5 @@
|
|||||||
<%= t("officing.menu.results") %>
|
<%= t("officing.menu.results") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1 +1,54 @@
|
|||||||
results index
|
<h2><%= t("officing.results.index.title") %></h2>
|
||||||
|
|
||||||
|
<div class="row margin">
|
||||||
|
<div class="small-12 medium-4 column">
|
||||||
|
<select>
|
||||||
|
<option><%= t("officing.shared.filter_booth") %></option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="small-12 medium-4 column">
|
||||||
|
<select>
|
||||||
|
<option><%= t("officing.shared.filter_date") %></option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="small-12 medium-4 column">
|
||||||
|
<select>
|
||||||
|
<option><%= t("officing.shared.filter_officer") %></option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><%= t("officing.shared.booth") %></th>
|
||||||
|
<th><%= t("officing.shared.date") %></th>
|
||||||
|
<th><%= t("officing.shared.officer") %></th>
|
||||||
|
<th class="text-center"><%= t("officing.shared.votes_number") %></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<!-- Each results do -->
|
||||||
|
<tr>
|
||||||
|
<td><%= link_to "Urna Moncloa (1)", officing_poll_result_path(Poll.last, 1) %></td>
|
||||||
|
<td>14/10/2016</td>
|
||||||
|
<td>Officer Name (officer@email.com)</td>
|
||||||
|
<td class="text-center">124</td>
|
||||||
|
</tr>
|
||||||
|
<!-- /. Each results do -->
|
||||||
|
<tr>
|
||||||
|
<td><%= link_to "Urna Cahamartín (6)", officing_poll_result_path(Poll.last, 1) %></td>
|
||||||
|
<td>17/10/2016</td>
|
||||||
|
<td>Other Officer (otherofficer@email.com)</td>
|
||||||
|
<td class="text-center">350</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td colspan="3"><%= t("officing.results.index.total_votes") %></td>
|
||||||
|
<td class="text-center">474</td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
|||||||
@@ -1 +1,38 @@
|
|||||||
results new
|
<h2><%= t("officing.results.new.title") %></h2>
|
||||||
|
|
||||||
|
<form>
|
||||||
|
<!-- Maybe this fields pre filled and disabled? -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-12 medium-6 column">
|
||||||
|
<label><%= t("officing.shared.booth") %></label>
|
||||||
|
<input type="text" value="Booth Name (N)">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="small-12 medium-6 column">
|
||||||
|
<label><%= t("officing.shared.date") %></label>
|
||||||
|
<input type="datetime" value="<%= Date.today %>">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-12 column">
|
||||||
|
<label><%= t("officing.shared.officer") %></label>
|
||||||
|
<input type="text" value="Officer Name (officer@email.com)" disabled>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /. Maybe this fields pre fill and disabled? -->
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-12 medium-6 large-4 column">
|
||||||
|
<label><%= t("officing.shared.votes_number") %></label>
|
||||||
|
<input type="text" placeholder="<%= t("officing.shared.votes_number") %>">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-12 medium-6 large-4 column">
|
||||||
|
<input type="submit" value="<%= t("officing.results.new.submit") %>" class="button expanded">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|||||||
@@ -1 +1,50 @@
|
|||||||
results show
|
<%= render 'shared/back_link' %>
|
||||||
|
|
||||||
|
<h2><%= t("officing.results.show.title", booth: "Booth Name (1)") %></h2>
|
||||||
|
|
||||||
|
<div class="row margin">
|
||||||
|
<div class="small-12 medium-4 column">
|
||||||
|
<select>
|
||||||
|
<option><%= t("officing.shared.filter_date") %></option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="small-12 medium-4 column end">
|
||||||
|
<select>
|
||||||
|
<option><%= t("officing.shared.filter_officer") %></option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><%= t("officing.shared.date") %></th>
|
||||||
|
<th><%= t("officing.shared.officer") %></th>
|
||||||
|
<th class="text-center"><%= t("officing.shared.votes_number") %></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>14/10/2016</td>
|
||||||
|
<td>Officer Name (officer@email.com)</td>
|
||||||
|
<td class="text-center">124</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>17/10/2016</td>
|
||||||
|
<td>Other Officer (otherofficer@email.com)</td>
|
||||||
|
<td class="text-center">350</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>18/10/2016</td>
|
||||||
|
<td>Officer number 3 (officer3@email.com)</td>
|
||||||
|
<td class="text-center">100</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"><%= t("officing.results.index.total_votes") %></td>
|
||||||
|
<td class="text-center">574</td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<h2><%= t("officing.voters.new.title") %></h2>
|
<h2><%= t("officing.voters.new.title") %></h2>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 medium-9 column">
|
<div class="small-12 medium-6 column">
|
||||||
<form>
|
<form>
|
||||||
|
|
||||||
<label><%= t("officing.voters.new.document_type_label") %></label>
|
<label><%= t("officing.voters.new.document_type_label") %></label>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<!-- IF CAN VOTE -->
|
<!-- IF CAN VOTE -->
|
||||||
|
|
||||||
<div class="callout success">
|
<div class="callout success">
|
||||||
<%= t("officing.voters.show.success") %>
|
<%= t("officing.voters.show.can_participate") %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="small-12 medium-6 large-4">
|
<div class="small-12 medium-6 large-4">
|
||||||
@@ -23,3 +23,8 @@
|
|||||||
<input type="submit" value="<%= t("officing.voters.show.submit") %>" class="button success expanded">
|
<input type="submit" value="<%= t("officing.voters.show.submit") %>" class="button success expanded">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="callout success">
|
||||||
|
<%= t("officing.voters.show.success") %>
|
||||||
|
</div>
|
||||||
@@ -20,5 +20,25 @@ en:
|
|||||||
submit: Validate document
|
submit: Validate document
|
||||||
show:
|
show:
|
||||||
title: Validate document
|
title: Validate document
|
||||||
error_verifying_census: "The Census was unable to verify your information."
|
error_verifying_census: "The Census was unable to verify the information of this document."
|
||||||
error_already_voted: "La persona asociada al documento ya ha participado en la votación."
|
error_already_voted: "The person associated with the document has already participated in the vote."
|
||||||
|
can_participate: "The person associated with the document can participate in the vote."
|
||||||
|
submit: Validate vote
|
||||||
|
success: "Vote validated correctly."
|
||||||
|
results:
|
||||||
|
index:
|
||||||
|
title: "Vote results"
|
||||||
|
total_votes: "Total number of votes"
|
||||||
|
new:
|
||||||
|
title: Save results
|
||||||
|
submit: Save
|
||||||
|
show:
|
||||||
|
title: "%{booth} results"
|
||||||
|
shared:
|
||||||
|
filter_booth: All booths
|
||||||
|
filter_date: All dates
|
||||||
|
filter_officer: All officers
|
||||||
|
booth: Booth
|
||||||
|
date: Date
|
||||||
|
officer: Officer
|
||||||
|
votes_number: Number of votes
|
||||||
|
|||||||
@@ -20,14 +20,25 @@ es:
|
|||||||
submit: Validar documento
|
submit: Validar documento
|
||||||
show:
|
show:
|
||||||
title: Validar documento
|
title: Validar documento
|
||||||
error_verifying_census: "El Padrón no pudo verificar tu información."
|
error_verifying_census: "El Padrón no pudo verificar la información de este documento."
|
||||||
error_already_voted: "La persona asociada al documento ya ha participado en la votación."
|
error_already_voted: "La persona asociada al documento ya ha participado en la votación."
|
||||||
success: "La persona asociada al documento puede participar en la votación."
|
can_participate: "La persona asociada al documento puede participar en la votación."
|
||||||
submit: Validar voto
|
submit: Validar voto
|
||||||
|
success: "Voto validado correctamente."
|
||||||
results:
|
results:
|
||||||
index:
|
index:
|
||||||
title: "Resultados de la votación"
|
title: "Resultados de la votación"
|
||||||
|
total_votes: "Número total de votos"
|
||||||
new:
|
new:
|
||||||
title: "Añadir resultados"
|
title: Guardar resultados
|
||||||
|
submit: Guardar
|
||||||
show:
|
show:
|
||||||
title: "Resultados"
|
title: "Resultados de %{booth}"
|
||||||
|
shared:
|
||||||
|
filter_booth: Todas las urnas
|
||||||
|
filter_date: Todas las fechas
|
||||||
|
filter_officer: Todos los presidentes de mesa
|
||||||
|
booth: Urna
|
||||||
|
date: Fecha
|
||||||
|
officer: Presidente de mesa
|
||||||
|
votes_number: Número de votos
|
||||||
|
|||||||
Reference in New Issue
Block a user