adds provisional content on booths show and officers assign

This commit is contained in:
Alberto Garcia Cabeza
2016-12-16 18:59:15 +01:00
parent 10c44a077b
commit 9c78b60ddc
3 changed files with 155 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
// 03. List elements // 03. List elements
// 04. Stats // 04. Stats
// 05. Management // 05. Management
// 06. Polls
// //
// 01. Global styles // 01. Global styles
@@ -474,3 +475,12 @@ table.investment-projects-summary {
background: #e0e0e0; background: #e0e0e0;
} }
} }
// 06. Polls
// -----------------
.count-error {
background: $alert-bg !important;
color: $color-alert;
font-weight: bold;
}

View File

@@ -3,13 +3,92 @@
<div class="clear"></div> <div class="clear"></div>
<h2 class="inline-block"> <h2 class="inline-block">
<%= @booth.name %> Poll 3: <%= @booth.name %>
</h2> </h2>
<%= link_to t("admin.actions.edit"),
edit_admin_booth_path(@booth),
class: "button hollow float-right" %>
<p> <p>
<strong><%= t("admin.booths.show.location") %></strong>: <strong><%= t("admin.booths.show.location") %></strong>:
<%= @booth.location %> <%= @booth.location %>
</p> </p>
<div class="tabs-content" data-tabs-content="booths-tabs">
<ul class="tabs" data-tabs id="booths-tabs">
<li class="tabs-title is-active">
<%= link_to "#tab-officers" do %>
Presidentes de mesa
<% end %>
</li>
<li class="tabs-title">
<%= link_to "#tab-count" do %>
Recuentos
<% end %>
</li>
</ul>
<div class="tabs-panel is-active" id="tab-officers">
<h3>Lista de presidentes de mesa</h3>
<div class="small-12 medium-6 large-4">
<select>
<option>Seleccionar fecha</option>
</select>
</div>
<table>
<thead>
<tr>
<th>Fecha</th>
<th>Presidente de mesa</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>13/02/2016</td>
<td>Clemente Padilla Otero</td>
<td>user5@consul.dev</td>
</tr>
<tr>
<td>13/02/2016</td>
<td>Ana Luisa Ceja Benítez</td>
<td>user7@consul.dev</td>
</tr>
<tr>
<td>14/02/2016</td>
<td>Clemente Padilla Otero</td>
<td>user5@consul.dev</td>
</tr>
</tbody>
</table>
</div>
<div class="tabs-panel" id="tab-count">
<h3>Lista de recuentos</h3>
<table>
<thead>
<tr>
<th>Fecha</th>
<th class="text-center">Votos (Presidente de mesa)</th>
<th class="text-center">Votos (Admin)</th>
</tr>
</thead>
<tbody>
<tr>
<td>13/02/2016</td>
<td class="text-center">320</td>
<td class="text-center">320</td>
</tr>
<tr class="count-error">
<td>14/02/2016</td>
<td class="text-center">160</td>
<td class="text-center">140</td>
</tr>
<tr>
<td>15/02/2016</td>
<td class="text-center">226</td>
<td class="text-center">226</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@@ -26,3 +26,65 @@
</tbody> </tbody>
</table> </table>
<% end %> <% end %>
<!-- Assign booths to officer -->
<h2>Clemente padilla Otero</h2>
<p>user2@consul.dev</p>
<fieldset class="fieldset">
<legend>Nuevo turno</legend>
<div class="small-12 medium-4 column">
<label>Fecha</label>
<select>
<option>Seleccionar día</option>
</select>
</div>
<div class="small-12 medium-4 column">
<label>Urna</label>
<select>
<option>Seleccionar urna</option>
</select>
</div>
<div class="small-12 medium-4 column">
<input type="submit" value="Añadir turno" class="button expanded hollow margin-top">
</div>
</fieldset>
<a class="float-right">Añadir nuevo turno</a>
<h3>Turnos asignados</h3>
<table>
<thead>
<tr>
<th>Fecha</th>
<th colspan="2">Urna</th>
</tr>
</thead>
<tbody>
<tr>
<td>13/02/2016</td>
<td>Urna Moncloa</td>
<td class="text-right">
<%= link_to "Eliminar turno", "#", class: "button hollow alert" %>
</td>
</tr>
<tr>
<td>14/02/2016</td>
<td>Urna Moncloa</td>
<td class="text-right">
<%= link_to "Eliminar turno", "#", class: "button hollow alert" %>
</td>
</tr>
<tr>
<td>15/02/2016</td>
<td>Urna Chamartín</td>
<td class="text-right">
<%= link_to "Eliminar turno", "#", class: "button hollow alert" %>
</td>
</tr>
</tbody>
</table>
<!-- /. Assign booths to officer -->