ictgj-voting/templates/admin-votes.html

38 lines
881 B
HTML
Raw Permalink Normal View History

2017-07-28 19:36:14 +00:00
<div class="results-container">
<h2>Current Results</h2>
{{ range $i, $v := .TemplateData.Results }}
2017-07-28 19:36:14 +00:00
{{ range $ti, $tv := $v.Teams }}
{{ $v.Rank }}: {{ $tv.Name }}<br />
{{ end }}
{{ end }}
2017-07-28 19:36:14 +00:00
</div>
<table id="votes-table" class="sortable pure-table pure-table-bordered center">
<thead>
<tr>
2018-06-18 13:49:15 +00:00
<th>Time</th>
2017-07-06 17:09:49 +00:00
<th>Rankings</th>
2018-06-18 13:49:15 +00:00
<th class="only-large">Client ID</th>
</tr>
</thead>
<tbody>
2017-07-06 17:09:49 +00:00
{{ range $i, $v := .TemplateData.AllVotes }}
<tr>
<td>{{ $v.Timestamp }}</td>
2017-07-06 17:09:49 +00:00
<td>
<ol>
{{ range $ci, $cv := $v.Choices }}
<li>{{ $cv.Name }}</li>
{{ end }}
</ol>
</td>
2018-06-18 13:49:15 +00:00
<td class="only-large">{{ $v.ClientId }}</td>
</tr>
{{ end }}
</tbody>
2017-07-06 17:09:49 +00:00
<tfoot>
<tr>
2017-10-21 22:47:01 +00:00
<td class="left" colspan="3">{{ len .TemplateData.AllVotes }} Total Votes</td>
2017-07-06 17:09:49 +00:00
</tr>
</tfoot>
</table>