Exercice page done with submission and confirmation

This commit is contained in:
Li Chen 2013-11-05 02:53:48 +01:00
commit 0f18ed8dcf
7 changed files with 60 additions and 5 deletions

View file

@ -0,0 +1,12 @@
{extends file="layout-nav.tpl"}
{block name=head}
<link href="/css/common.css" rel="stylesheet">
{/block}
{block name=content}
<h1>
<!-- Add java script refresh ?-->
COMFIMATION PLEASE WAIT...
</h1>
{/block}

View file

@ -15,9 +15,25 @@
<ul>
<li>Difficulté : {$Exercice->level}</li>
<li>Gain : {$Exercice->points}</li>
<!-- Dowloads files -->
{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>
<!-- Input solution -->
<ul>
<!-- 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>
{/block}