Add team informations in the me page

This commit is contained in:
Li Chen 2013-11-28 16:28:43 +01:00
parent 67b5422c28
commit b406ae93e3
2 changed files with 31 additions and 3 deletions

View File

@ -2,4 +2,6 @@
if(!defined('ONYX')) exit;
$template->assign("members", $TEAM->get_members());
return "teams/me";

View File

@ -1,7 +1,33 @@
{extends file="teams/layout.tpl"}
{block name=content}
<h1>
THIS IS ME
</h1>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Information sur l'équipe</h3>
</div>
<div class="panle-body">
{if not empty($members)}
<table class="table">
<thead><tr>
<th>#</th>
<th>Prénom</th>
<th>Nom</th>
<th>Pseudonyme</th>
<th>Entreprise</th>
</tr></thead>
<tbody>
{foreach from=$members item=member}
</tr>
<td>{$member->firstname}</td>
<td>{$member->lastname}</td>
<td>{$member->nickname}</td>
<td>{$member->company}</td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
</div>
</div>
{/block}