New class Member, use it in Team ; update DB schema

This commit is contained in:
Némunaire 2013-10-26 18:17:25 +02:00
commit b069d8f4ed
5 changed files with 110 additions and 25 deletions

View file

@ -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>