adds styles to officing voters views

This commit is contained in:
Alberto Garcia Cabeza
2016-10-17 16:42:50 +02:00
committed by kikito
parent 70752e217d
commit 1a56d5bbe6
9 changed files with 191 additions and 12 deletions

View File

@@ -42,6 +42,10 @@ body.admin {
th {
text-align: left;
&.text-center {
text-align: center;
}
}
tr {

View File

@@ -14,5 +14,5 @@
<%= t("officing.menu.results") %>
<% end %>
</li>
</ul>
</div>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -1,7 +1,7 @@
<h2><%= t("officing.voters.new.title") %></h2>
<div class="row">
<div class="small-12 medium-9 column">
<div class="small-12 medium-6 column">
<form>
<label><%= t("officing.voters.new.document_type_label") %></label>

View File

@@ -15,7 +15,7 @@
<!-- IF CAN VOTE -->
<div class="callout success">
<%= t("officing.voters.show.success") %>
<%= t("officing.voters.show.can_participate") %>
</div>
<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">
</form>
</div>
<div class="callout success">
<%= t("officing.voters.show.success") %>
</div>