Add on exercice page the last try time

This commit is contained in:
nemunaire 2014-01-14 17:09:29 +01:00
commit 6b5e51f4e3
4 changed files with 38 additions and 2 deletions

View file

@ -53,9 +53,12 @@
</div>
<div class="panel-body">
{if $cur_exercice->has_solved($my_team)}
Déjà résolu à {$cur_exercice->has_solved($my_team)|date_format:"%H:%M:%S"} :)
<strong>R&eacute;solu &agrave; {$cur_exercice->has_solved($my_team)|date_format:"%H:%M:%S"} :)</strong>
{else}
<form role="form" method="post" action="/{$SALT_USER}/{$my_team->get_id()}/{$cur_theme->get_id()}-{$cur_theme->get_name_url()}/{$cur_exercice->id}/submission">
{if $cur_exercice->last_try($my_team)}
<label>Derni&egrave;re solution test&eacute;e &agrave;</label> {$cur_exercice->last_try($my_team)|date_format:"%H:%M:%S"}
{/if}
<form role="form" method="post" action="/{$SALT_USER}/{$my_team->get_id()}/{$cur_theme->get_id()}-{$cur_theme->get_name_url()}/{$cur_exercice->id}/submission" >
<div class="form-group">
<label for="solution">Soumettre la solution :</label>
<input type="text" class="form-control" id="solution" name="solution">