New class Member, use it in Team ; update DB schema
This commit is contained in:
parent
30a7f65616
commit
b069d8f4ed
5 changed files with 110 additions and 25 deletions
|
|
@ -1,14 +1,14 @@
|
|||
{extends file="layout.tpl"}
|
||||
{block name=content}
|
||||
<h1>
|
||||
{$team->company}
|
||||
{$team->slogan}
|
||||
</h1>
|
||||
<ul>
|
||||
<li><strong>Score :</strong> {$team->get_pts()}</li>
|
||||
<li><strong>Membre{if count($team->get_members()) > 1}s{/if} :</strong>
|
||||
<ul>
|
||||
{foreach from=$team->get_members() item=m}
|
||||
<li><span class="font-variant: small-caps;">{$m.lastname}</span> {$m.firstname}</li>
|
||||
<li><span class="font-variant: small-caps;">{$m->lastname}</span> {$m->firstname}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
|
|
|
|||
Reference in a new issue