server/onyx/tpl/bootstrap/teams/exercice.tpl
Li Chen a0657ff619 Merge branch 'master' of ssh://git.nemunai.re:6224/fic2014-server
Conflicts:
	onyx/include/team/exercice.php
	onyx/tpl/bootstrap/teams/exercice.tpl
2013-11-05 04:52:17 +01:00

56 lines
1.4 KiB
Smarty

{extends file="layout-nav.tpl"}
{block name=head}
<link href="/css/common.css" rel="stylesheet">
{/block}
{block name=content}
<div>
{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>
<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}
<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>
<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>
<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}