summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-11-24 14:27:44 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-11-24 14:27:44 (GMT)
commit69ba3d31cdf4dc462e5826af512b7038e2e3badd (patch)
tree1f3245df0f7150417601ed3f7a00e6b691ea5ef8
parent66f772ed80416208fbd26744e24560d5d59f759a (diff)
downloadtabellio.webviews-69ba3d31cdf4dc462e5826af512b7038e2e3badd.zip
tabellio.webviews-69ba3d31cdf4dc462e5826af512b7038e2e3badd.tar.gz
tabellio.webviews-69ba3d31cdf4dc462e5826af512b7038e2e3badd.tar.bz2
display deputy functions
-rw-r--r--tabellio/webviews/deputy.pt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tabellio/webviews/deputy.pt b/tabellio/webviews/deputy.pt
index f115920..fbdee2c 100644
--- a/tabellio/webviews/deputy.pt
+++ b/tabellio/webviews/deputy.pt
@@ -58,6 +58,10 @@
<div tal:condition="context/degrees" tal:content="structure view/degrees"/>
<h3 tal:condition="context/profession">Profession</h3>
<div tal:condition="context/profession" tal:content="structure view/profession"/>
+ <h3 tal:condition="context/current_functions">Fonctions au sein du Parlement</h3>
+ <div tal:condition="context/current_functions" tal:content="structure context/current_functions/output"/>
+ <h3 tal:condition="context/past_functions">Fonctions passées au sein du Parlement</h3>
+ <div tal:condition="context/past_functions" tal:content="structure context/past_functions/output"/>
<h3 tal:condition="context/mandates">Mandats politiques exercés antérieurement ou actuellement</h3>
<div tal:condition="context/mandates" tal:content="structure view/mandates"/>
</div>
@@ -67,7 +71,7 @@
<dd>
<div>
<div tal:define="com_roles view/get_commissions_and_roles"
- tal:condition="com_roles">
+ tal:condition="python: com_roles and not context.current_functions">
<h2>Commissions</h2>
<ul>
<li tal:repeat="role com_roles"><span tal:replace="python: role[0]"/>