2017-04-21 18:17:18 +00:00
|
|
|
<div class="bottom-space center">
|
|
|
|
<a id="btnAddTeam" class="pure-button pure-button-success" href="/admin/teams/new"><i class="fa fa-plus"></i> Add Team</a>
|
|
|
|
</div>
|
2017-06-22 15:34:57 +00:00
|
|
|
{{ if not .TemplateData.Teams }}
|
|
|
|
<div>No teams have been created</div>
|
|
|
|
{{ else }}
|
|
|
|
<table id="teams-table" class="sortable pure-table pure-table-bordered center">
|
2017-04-21 18:17:18 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
2017-07-14 17:27:42 +00:00
|
|
|
<th>Management Link</th>
|
2017-06-08 20:43:11 +00:00
|
|
|
<th>Members</th>
|
2017-06-22 15:34:57 +00:00
|
|
|
<th>Game</th>
|
2017-04-21 18:17:18 +00:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{ range $i, $v := .TemplateData.Teams }}
|
|
|
|
<tr>
|
|
|
|
<td>{{ $v.Name }}</td>
|
2017-07-14 17:27:42 +00:00
|
|
|
<td><a href="/team/{{ $v.UUID }}">{{ $v.UUID }}</a></td>
|
2017-06-08 20:43:11 +00:00
|
|
|
<td>{{ len $v.Members }}</td>
|
2017-06-22 15:34:57 +00:00
|
|
|
<td>{{ $v.Game.Name }}</td>
|
2017-04-21 18:17:18 +00:00
|
|
|
<td>
|
2017-06-08 17:20:43 +00:00
|
|
|
<a href="/admin/teams/{{ $v.UUID }}/edit" class="pure-button pure-button-plain"><i class="fa fa-pencil"></i></a>
|
|
|
|
<a href="/admin/teams/{{ $v.UUID }}/delete" class="pure-button pure-button-plain"><i class="fa fa-trash"></i></a>
|
2017-04-21 18:17:18 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-06-22 15:34:57 +00:00
|
|
|
{{ end }}
|