server/onyx/tpl/bootstrap/teams/exercice.tpl

56 lines
1.4 KiB
Smarty
Raw Normal View History

{extends file="layout-nav.tpl"}
{block name=head}
<link href="/css/common.css" rel="stylesheet">
{/block}
{block name=content}
<div>
2013-11-04 23:35:35 +00:00
{if $solved < 1}
<h1>Exercice {$Exercice->number} - {$solved} équipe a résolu cet exercice</h1>
{else}
<h1>Exercice {$Exercice->number} - {$solved} équipes ont résolu cet exercice</h1>
{/if}
<ul>
2013-11-04 23:35:35 +00:00
<li>Difficulté : {$Exercice->level}</li>
<li>Gain : {$Exercice->points}</li>
{if isset($files)}
<li>Telechargement : </li>
{foreach from=$files item=file}
<div>
<a href="/{$file['path']}">{$file['name']}</a>
{$file['sha1']}
</div>
{/foreach}
{/if}
2013-11-04 23:35:35 +00:00
<li>Description : {$Exercice->statement}</li>
<!-- action a revoir -->
<form method="post" action="{$Exercice->id}/submission">
<p>
Soumettre la solution
<input type="text" name="solution" />
<input type="submit" value="Valider" />
</p>
</form>
</ul>
2013-11-04 22:20:16 +00:00
<ol>
{foreach from=$top10 item=team key=pos}
<li>{$team->get_name()} <small>({$team->get_pts()})</small></li>
{/foreach}
</ol>
<div id="my_team">
{$my_team->get_rank(10)}/{Team::get_nbTeams()}
</div>
2013-11-04 22:20:16 +00:00
<div id="theme_list">
{foreach from=$themes item=theme key=k}
<strong>{$theme->get_name()}</strong><br>
{$my_team->get_nbResExercisesByTheme($theme->get_id())}/{$theme->get_nbExercices()}<br>
{/foreach}
</div>
{/block}