Modify public theme

This commit is contained in:
nemunaire 2013-12-12 19:33:18 +01:00
parent 60f950dd6c
commit 4b101ef4b2
5 changed files with 9 additions and 11 deletions

View file

@ -1,9 +1,9 @@
{extends file="public/layout.tpl"}
{block name=main}
<div class="jumbotron">
<div class="well">
<table class="table">
<table class="table" style="font-size: 12px;">
<thead>
<tr>
<th></th>
@ -34,6 +34,5 @@
</tbody>
</table>
</div>
{/block}

View file

@ -36,7 +36,6 @@
{foreach from=$teams item=my_team key=k}
<div class="item{if $k == 0} active{/if}">
<div class="well">
<h1>{$my_team->get_name()}</h1>
{include file="summary.tpl"}
</div>
</div>

View file

@ -1,7 +1,7 @@
<table class="table">
<table class="table" style="font-size: 12px; padding: 10px; margin-bottom: 10px;">
<thead>
<tr>
<th></th>
<th style="font-size: 15px">{$my_team->get_name()}</th>
{for $i=1 to $nbExoMax}
<th class="text-center">Exercice {$i}</th>
{/for}

View file

@ -33,7 +33,7 @@
{if file_exists($file['path'])}
<tr>
<td>
<a href="/{$file['path']}">
<a href="/files/{$file['path_orig']}">
<span class="glyphicon glyphicon-download"></span>
</a>
</td>
@ -56,7 +56,7 @@
{if $cur_exercice->has_solved($my_team)}
Déjà résolu à {$cur_exercice->has_solved($my_team)|date_format:"%H:%M:%S"} :)
{else}
<form role="form" method="post" action="/{$SALT_USER}/{$my_team->get_id()}/{$cur_theme->get_id()}-{$cur_theme->get_name()}/{$cur_exercice->id}/submission">
<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">

View file

@ -6,9 +6,9 @@
<p>
{foreach from=$cur_theme->get_exercices_ordered() item=exercice}
{if $exercice->has_solved($my_team)}
{link class="btn btn-success" role="button" href_prefix="/{$SALT_USER}/{$my_team->get_id()}/" href="{$cur_theme->get_id()}-{$cur_theme->get_name()}/{$exercice->get_id()}" label="{$exercice->get_name()}"}
{link class="btn btn-success" role="button" href_prefix="/{$SALT_USER}/{$my_team->get_id()}/" href="{$cur_theme->get_id()}-{$cur_theme->get_name_url()}/{$exercice->get_id()}" label="{$exercice->get_name()}"}
{elseif $exercice->is_unlocked($my_team)}
{link class="btn btn-primary" role="button" href_prefix="/{$SALT_USER}/{$my_team->get_id()}/" href="{$cur_theme->get_id()}-{$cur_theme->get_name()}/{$exercice->get_id()}" label="{$exercice->get_name()}"}
{link class="btn btn-primary" role="button" href_prefix="/{$SALT_USER}/{$my_team->get_id()}/" href="{$cur_theme->get_id()}-{$cur_theme->get_name_url()}/{$exercice->get_id()}" label="{$exercice->get_name()}"}
{else}
<a class="btn btn-danger" disabled="disabled">{$exercice->get_name()}</a>
{/if}