Add Poll Total recount to officing and admin

This commit is contained in:
Bertocq
2017-09-14 14:00:02 +02:00
parent 1f867fb227
commit e8d748a881
9 changed files with 42 additions and 4 deletions

View File

@@ -14,11 +14,13 @@
<thead>
<th><%= t("admin.results.index.table_whites") %></th>
<th><%= t("admin.results.index.table_nulls") %></th>
<th><%= t("admin.results.index.table_total") %></th>
</thead>
<tbody>
<tr>
<td id="white_results"><%= @poll.white_results.sum(:amount) %></td>
<td id="null_results"><%= @poll.null_results.sum(:amount) %></td>
<td id="total_results"><%= @poll.total_results.sum(:amount) %></td>
</tr>
</tbody>
</table>
@@ -47,4 +49,4 @@
<% end %>
<% end %>
</div>
</div>