Add colors in summary table
This commit is contained in:
parent
59092b36ee
commit
6b487c0a83
@ -3,9 +3,9 @@
|
||||
<tr>
|
||||
<th></th>
|
||||
{for $i=1 to $nbExoMax}
|
||||
<th>Exercice {$i}</th>
|
||||
<th class="text-center">Exercice {$i}</th>
|
||||
{/for}
|
||||
<th>Points</th>
|
||||
<th class="text-center">Points</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -15,7 +15,7 @@
|
||||
<th>{$theme->get_name()}</th>
|
||||
{$sum=0}
|
||||
{$themeID=$theme->get_id()}
|
||||
{$solvedExercices=$my_team->get_solvedExercices($themeID)} {*TODO: This line give a Warning*}
|
||||
{$solvedExercices=$my_team->get_solvedExercices($themeID)}
|
||||
{foreach from=$theme->get_exercicesOrdered() item=exo}
|
||||
{$pts=0}
|
||||
{for $i=0 to $nbExoMax}
|
||||
@ -25,9 +25,13 @@
|
||||
{/if}
|
||||
{/if}
|
||||
{/for}
|
||||
<td>{$pts}</td>
|
||||
{if $pts > 0}
|
||||
<td class="success text-center">{$pts}</td>
|
||||
{else}
|
||||
<td class="danger text-center">{$pts}</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<th>{$sum}</th>
|
||||
<th class="active text-center">{$sum}</th>
|
||||
</tr>
|
||||
{$total=$total+$sum}
|
||||
{/foreach}
|
||||
@ -35,7 +39,7 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{$nbExoMax+1}" style="text-align: right">Total :</th>
|
||||
<th>{$total}</th>
|
||||
<th class="active text-center">{$total}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user