Exercice page done with submission and confirmation
This commit is contained in:
parent
42c31a9315
commit
0f18ed8dcf
7 changed files with 60 additions and 5 deletions
12
onyx/tpl/bootstrap/teams/confirmation.tpl
Normal file
12
onyx/tpl/bootstrap/teams/confirmation.tpl
Normal 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}
|
||||
|
|
@ -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}
|
||||
|
|
|
|||
Reference in a new issue