Modify public theme
This commit is contained in:
parent
60f950dd6c
commit
4b101ef4b2
5 changed files with 9 additions and 11 deletions
|
@ -1,9 +1,9 @@
|
||||||
{extends file="public/layout.tpl"}
|
{extends file="public/layout.tpl"}
|
||||||
|
|
||||||
{block name=main}
|
{block name=main}
|
||||||
<div class="jumbotron">
|
<div class="well">
|
||||||
|
|
||||||
<table class="table">
|
<table class="table" style="font-size: 12px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
@ -34,6 +34,5 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
{/block}
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
{foreach from=$teams item=my_team key=k}
|
{foreach from=$teams item=my_team key=k}
|
||||||
<div class="item{if $k == 0} active{/if}">
|
<div class="item{if $k == 0} active{/if}">
|
||||||
<div class="well">
|
<div class="well">
|
||||||
<h1>{$my_team->get_name()}</h1>
|
|
||||||
{include file="summary.tpl"}
|
{include file="summary.tpl"}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<table class="table">
|
<table class="table" style="font-size: 12px; padding: 10px; margin-bottom: 10px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th style="font-size: 15px">{$my_team->get_name()}</th>
|
||||||
{for $i=1 to $nbExoMax}
|
{for $i=1 to $nbExoMax}
|
||||||
<th class="text-center">Exercice {$i}</th>
|
<th class="text-center">Exercice {$i}</th>
|
||||||
{/for}
|
{/for}
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
{if file_exists($file['path'])}
|
{if file_exists($file['path'])}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="/{$file['path']}">
|
<a href="/files/{$file['path_orig']}">
|
||||||
<span class="glyphicon glyphicon-download"></span>
|
<span class="glyphicon glyphicon-download"></span>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
{if $cur_exercice->has_solved($my_team)}
|
{if $cur_exercice->has_solved($my_team)}
|
||||||
Déjà résolu à {$cur_exercice->has_solved($my_team)|date_format:"%H:%M:%S"} :)
|
Déjà résolu à {$cur_exercice->has_solved($my_team)|date_format:"%H:%M:%S"} :)
|
||||||
{else}
|
{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">
|
<div class="form-group">
|
||||||
<label for="solution">Soumettre la solution :</label>
|
<label for="solution">Soumettre la solution :</label>
|
||||||
<input type="text" class="form-control" id="solution" name="solution">
|
<input type="text" class="form-control" id="solution" name="solution">
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
<p>
|
<p>
|
||||||
{foreach from=$cur_theme->get_exercices_ordered() item=exercice}
|
{foreach from=$cur_theme->get_exercices_ordered() item=exercice}
|
||||||
{if $exercice->has_solved($my_team)}
|
{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)}
|
{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}
|
{else}
|
||||||
<a class="btn btn-danger" disabled="disabled">{$exercice->get_name()}</a>
|
<a class="btn btn-danger" disabled="disabled">{$exercice->get_name()}</a>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Reference in a new issue