Adds content to booths index and show views

This commit is contained in:
Alberto Garcia Cabeza
2016-09-20 12:32:23 +02:00
committed by kikito
parent 5b424d1793
commit 5e3fff6825
4 changed files with 29 additions and 9 deletions

View File

@@ -22,6 +22,7 @@
<thead>
<th><%= t("admin.booths.index.name") %></th>
<th><%= t("admin.booths.index.location") %></th>
<th><%= t("admin.booths.index.officers") %></th>
<th>&nbsp;</th>
</thead>
<tbody>
@@ -29,15 +30,17 @@
<tr>
<td>
<strong>
<%= link_to "Urna Moncloa (REFNUM)", "#" %>
<%= link_to "Urna Moncloa (REFNUM)", "booths/1" %>
</strong>
</td>
<td>
C/ Isaac Peral, 25. 28003, Madrid
</td>
<td>
N <%= t("admin.booths.index.officers") %>
</td>
<td class="text-right">
<%= link_to t("admin.actions.edit"), "#", class: "button hollow" %>
<%= link_to t("admin.booths.index.add_officer"), "#", class: "button success" %>
<%= link_to t("admin.actions.edit"), "booths/1/edit", class: "button hollow" %>
</td>
</tr>
<!-- end -->

View File

@@ -2,7 +2,7 @@
<div class="clear"></div>
<h2 class="inline-block">Urna Moncloa (REFNUM)</h2>
<%= link_to t("admin.actions.edit"), "#", class: "button hollow float-right" %>
<%= link_to t("admin.actions.edit"), "1/edit", class: "button hollow float-right" %>
<p><strong><%= t("admin.booths.show.location") %></strong>: C/ Isaac Peral, 25. 28003, Madrid</p>
@@ -14,7 +14,17 @@
</div>
<!-- end -->
<%= link_to t("admin.booths.show.add_officer"), "#", class: "button success" %>
<%= link_to t("admin.booths.show.assign_officer"), "#", class: "button success" %>
<div class="small-12 column">
<!-- List of officers, something like:
"/admin/spending_proposals/_assigned_valuators.html.erb" -->
<%# f.label :valuator_ids, t("admin.spending_proposals.edit.assigned_valuators") %>
<%# f.collection_check_boxes :valuator_ids, @valuators, :id, :email do |b| %>
<%# b.label(title: valuator_label(b.object)) { b.check_box + truncate(b.object.description_or_email, length: 60) } %>
<%# end %>
</div>
<table>
<%# @officers.each do |officer| %>

View File

@@ -188,7 +188,7 @@ en:
add_booth: "Add booth"
name: "Name"
location: "Location"
add_officer: "Add officer"
officers: "Officers"
new:
title: "Poll %{poll}"
subtitle: "New booth"
@@ -205,7 +205,7 @@ en:
submit_button: "Update booth"
show:
location: "Location"
add_officer: "Add officer"
assign_officer: "Assign officer"
officers_list: "List of officers"
no_officers: "There is no officers in this booth."
officials:

View File

@@ -188,7 +188,7 @@ es:
add_booth: "Añadir urna"
name: "Nombre"
location: "Ubicación"
add_officer: "Añadir presidente"
officers: "Presidentes de mesa"
new:
title: "Votación %{poll}"
subtitle: "Nueva urna"
@@ -196,9 +196,16 @@ es:
reference: "Número de referencia"
location: "Ubicación"
submit_button: "Crear urna"
edit:
title: "Votación %{poll}"
subtitle: "Editar urna"
name: "Nombre"
reference: "Número de referencia"
location: "Ubicación"
submit_button: "Actualizar urna"
show:
location: "Ubicación"
add_officer: "Añadir presidente de mesa"
assign_officer: "Asignar presidente de mesa"
officers_list: "Lista de presidentes de mesa"
no_officers: "No hay presidentes de mesa en esta urna."
officials: