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