Adds content to booths index and show views
This commit is contained in:
committed by
kikito
parent
5b424d1793
commit
5e3fff6825
@@ -22,6 +22,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<th><%= t("admin.booths.index.name") %></th>
|
<th><%= t("admin.booths.index.name") %></th>
|
||||||
<th><%= t("admin.booths.index.location") %></th>
|
<th><%= t("admin.booths.index.location") %></th>
|
||||||
|
<th><%= t("admin.booths.index.officers") %></th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -29,15 +30,17 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<strong>
|
<strong>
|
||||||
<%= link_to "Urna Moncloa (REFNUM)", "#" %>
|
<%= link_to "Urna Moncloa (REFNUM)", "booths/1" %>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
C/ Isaac Peral, 25. 28003, Madrid
|
C/ Isaac Peral, 25. 28003, Madrid
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
N <%= t("admin.booths.index.officers") %>
|
||||||
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<%= link_to t("admin.actions.edit"), "#", class: "button hollow" %>
|
<%= link_to t("admin.actions.edit"), "booths/1/edit", class: "button hollow" %>
|
||||||
<%= link_to t("admin.booths.index.add_officer"), "#", class: "button success" %>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
||||||
<h2 class="inline-block">Urna Moncloa (REFNUM)</h2>
|
<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>
|
<p><strong><%= t("admin.booths.show.location") %></strong>: C/ Isaac Peral, 25. 28003, Madrid</p>
|
||||||
|
|
||||||
@@ -14,7 +14,17 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- end -->
|
<!-- 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>
|
<table>
|
||||||
<%# @officers.each do |officer| %>
|
<%# @officers.each do |officer| %>
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ en:
|
|||||||
add_booth: "Add booth"
|
add_booth: "Add booth"
|
||||||
name: "Name"
|
name: "Name"
|
||||||
location: "Location"
|
location: "Location"
|
||||||
add_officer: "Add officer"
|
officers: "Officers"
|
||||||
new:
|
new:
|
||||||
title: "Poll %{poll}"
|
title: "Poll %{poll}"
|
||||||
subtitle: "New booth"
|
subtitle: "New booth"
|
||||||
@@ -205,7 +205,7 @@ en:
|
|||||||
submit_button: "Update booth"
|
submit_button: "Update booth"
|
||||||
show:
|
show:
|
||||||
location: "Location"
|
location: "Location"
|
||||||
add_officer: "Add officer"
|
assign_officer: "Assign officer"
|
||||||
officers_list: "List of officers"
|
officers_list: "List of officers"
|
||||||
no_officers: "There is no officers in this booth."
|
no_officers: "There is no officers in this booth."
|
||||||
officials:
|
officials:
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ es:
|
|||||||
add_booth: "Añadir urna"
|
add_booth: "Añadir urna"
|
||||||
name: "Nombre"
|
name: "Nombre"
|
||||||
location: "Ubicación"
|
location: "Ubicación"
|
||||||
add_officer: "Añadir presidente"
|
officers: "Presidentes de mesa"
|
||||||
new:
|
new:
|
||||||
title: "Votación %{poll}"
|
title: "Votación %{poll}"
|
||||||
subtitle: "Nueva urna"
|
subtitle: "Nueva urna"
|
||||||
@@ -196,9 +196,16 @@ es:
|
|||||||
reference: "Número de referencia"
|
reference: "Número de referencia"
|
||||||
location: "Ubicación"
|
location: "Ubicación"
|
||||||
submit_button: "Crear urna"
|
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:
|
show:
|
||||||
location: "Ubicación"
|
location: "Ubicación"
|
||||||
add_officer: "Añadir presidente de mesa"
|
assign_officer: "Asignar presidente de mesa"
|
||||||
officers_list: "Lista de presidentes de mesa"
|
officers_list: "Lista de presidentes de mesa"
|
||||||
no_officers: "No hay presidentes de mesa en esta urna."
|
no_officers: "No hay presidentes de mesa en esta urna."
|
||||||
officials:
|
officials:
|
||||||
|
|||||||
Reference in New Issue
Block a user