Admin part: home and teams part done
This commit is contained in:
parent
568a6beef0
commit
166be860c8
11 changed files with 249 additions and 54 deletions
48
onyx/tpl/bootstrap/admin/users.tpl
Normal file
48
onyx/tpl/bootstrap/admin/users.tpl
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{extends file="admin/layout.tpl"}
|
||||
|
||||
{block name=content}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Nom</th>
|
||||
<th>Slogan</th>
|
||||
<th>Membres</th>
|
||||
<th>Points</th>
|
||||
<th>Place</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{if $teams}
|
||||
<tbody>
|
||||
{foreach from=$teams item=t}
|
||||
<tr>
|
||||
<td>
|
||||
{$t->id}<br>
|
||||
<a href="?delete={$t->id}"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
</td>
|
||||
<td>{$t->team_name}</td>
|
||||
<td>{$t->slogan}</td>
|
||||
<td><ul>
|
||||
{foreach from=$t->get_members() item=m}
|
||||
<li><span style="font-variant: small-caps">{$m->lastname}</span> <em>{$m->nickname}</em> {$m->firstname}</li>
|
||||
{/foreach}
|
||||
</ul></td>
|
||||
<td>{$t->get_pts()}</td>
|
||||
<td>{$t->get_rank()}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/if}
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<a class="btn btn-success" href="/{$SALT_ADMIN}/teams/import" role="button"><span class="glyphicon glyphicon-cloud-upload"></span> Importer</a>
|
||||
{if $teams}
|
||||
<a class="btn btn-primary" href="/{$SALT_ADMIN}/teams/export" role="button"><span class="glyphicon glyphicon-floppy-save"></span> Exporter</a>
|
||||
<a class="btn btn-danger" href="/{$SALT_ADMIN}/teams/?drop" onclick="return confirm('Êtes-vous sûr de vouloir vider la table des équipes ?')" role="button"><span class="glyphicon glyphicon-floppy-trash"></span> Vider</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
{/block}
|
||||
Reference in a new issue