Add on exercice page the last try time
This commit is contained in:
parent
aeb4b5dd52
commit
6b5e51f4e3
4 changed files with 38 additions and 2 deletions
|
|
@ -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ésolu à {$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ère solution testée à</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">
|
||||
|
|
|
|||
Reference in a new issue