Projet

Général

Profil

Anomalie #2095 » diff.stats.tpl

Benjamin Drieu, 04/05/2017 14:44

 
Index: stats.tpl
===================================================================
--- stats.tpl (révision 1307)
+++ stats.tpl (copie de travail)
@@ -9,7 +9,7 @@
<thead>
<tr>
<th></th>
- <th colspan='3'>Personnes</th>
+ <th colspan='4'>Personnes</th>
<th colspan='{$entity_col_count+1}'>Entités</th>
<th>Total</th>
</tr>
@@ -18,6 +18,7 @@
<th>Fem.</th>
<th>Hom.</th>
<th>Cumul</th>
+ <th>Sexe-ratio</th>
{foreach from=$entity_col_title key=id item=et}
{strip}
<th>{$et.locale_shortname}</th>
@@ -33,6 +34,7 @@
<td class='value_cat'>{$actor_person_woman}</td>
<td class='value_cat'>{$actor_person_man}</td>
<td class='value_typ'>{$actor_person}</td>
+ <td class='value_typ'>{if $actor_person > 0}{$actor_person_woman*100.0/$actor_person|string_format:'%.1f'}{/if}</td>
{foreach from=$entity_col_values key=id item=e}
{strip}
<td class='value_cat'>{$e.total}</td>
@@ -46,6 +48,7 @@
<td class='value_cat'>{$actor_person_uptodate_woman}</td>
<td class='value_cat'>{$actor_person_uptodate_man}</td>
<td class='value_typ'>{$actor_person_uptodate}</td>
+ <td class='value_typ'>{if $actor_person_uptodate > 0}{$actor_person_uptodate_woman*100.0/$actor_person_uptodate|string_format:'%.1f'}{/if}</td>
{foreach from=$entity_col_values key=id item=e}
{strip}
<td class='value_cat'>{$e.uptodate}</td>
@@ -61,6 +64,7 @@
<td class='value_cat'>{$actor_person_uptodate_woman_perc|string_format:'%.1f'} %</td>
<td class='value_cat'>{$actor_person_uptodate_man_perc|string_format:'%.1f'} %</td>
<td class='value_typ'>{$actor_person_uptodate_perc|string_format:'%.1f'} %</td>
+ <td class='value_typ'>&nbsp;</td>
{foreach from=$entity_col_values key=id item=e}
{strip}
<td class='value_cat'>{$e.percent|string_format:'%.1f'} %</td>
    (1-1/1)