displays links to results by booth
This commit is contained in:
19
app/views/admin/poll/results/_results_by_booth.html.erb
Normal file
19
app/views/admin/poll/results/_results_by_booth.html.erb
Normal 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>
|
||||
@@ -10,5 +10,6 @@
|
||||
</div>
|
||||
<% else %>
|
||||
<%= render "result" %>
|
||||
<%= render "results_by_booth" %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user