Add team informations in the me page
This commit is contained in:
parent
67b5422c28
commit
b406ae93e3
2 changed files with 31 additions and 3 deletions
|
@ -2,4 +2,6 @@
|
||||||
|
|
||||||
if(!defined('ONYX')) exit;
|
if(!defined('ONYX')) exit;
|
||||||
|
|
||||||
|
$template->assign("members", $TEAM->get_members());
|
||||||
|
|
||||||
return "teams/me";
|
return "teams/me";
|
||||||
|
|
|
@ -1,7 +1,33 @@
|
||||||
{extends file="teams/layout.tpl"}
|
{extends file="teams/layout.tpl"}
|
||||||
|
|
||||||
{block name=content}
|
{block name=content}
|
||||||
<h1>
|
<div class="panel panel-default">
|
||||||
THIS IS ME
|
<div class="panel-heading">
|
||||||
</h1>
|
<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}
|
{/block}
|
||||||
|
|
Reference in a new issue