displays links to results by booth

This commit is contained in:
rgarcia
2017-10-18 20:25:54 +02:00
parent 34ee16a1c1
commit 6b98bc0086
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<table class="margin" id="booth_assignment_results">
<thead>
<tr>
<th>Urna</th>
<th class="text-center">Resultados</th>
</tr>
</thead>
<tbody>
<% @poll.booth_assignments.each do |booth_assignment| %>
<tr id="booth_assignment_<%= booth_assignment.id %>_result">
<td><%= booth_assignment.booth.name %></td>
<td class="text-center">
<%= link_to "See results",
admin_poll_booth_assignment_path(@poll, booth_assignment, anchor: "tab-results") %>
</td>
</tr>
<% end %>
</tbody>
</table>

View File

@@ -10,5 +10,6 @@
</div>
<% else %>
<%= render "result" %>
<%= render "results_by_booth" %>
<% end %>
</div>