summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2012-04-11 08:08:02 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2012-04-11 08:13:21 (GMT)
commit823f2992ac07b3db83f49561a4ecd8fd3b332439 (patch)
treeea31e5be29820d4746c0b53d9fdea2b78e655ad8
parentf2bfa7f0711afccdaca4e0d2a09bcaf64dfdba50 (diff)
downloadtabellio.webviews-823f2992ac07b3db83f49561a4ecd8fd3b332439.zip
tabellio.webviews-823f2992ac07b3db83f49561a4ecd8fd3b332439.tar.gz
tabellio.webviews-823f2992ac07b3db83f49561a4ecd8fd3b332439.tar.bz2
add rich text value comparison
-rw-r--r--tabellio/webviews/deputy.pt18
1 files changed, 12 insertions, 6 deletions
diff --git a/tabellio/webviews/deputy.pt b/tabellio/webviews/deputy.pt
index 19639a5..3ecb5a3 100644
--- a/tabellio/webviews/deputy.pt
+++ b/tabellio/webviews/deputy.pt
@@ -59,12 +59,18 @@
<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"/>
+ <tal:block tal:condition="python: context.current_functions and context.current_functions.raw">
+ <h3>Fonctions au sein du Parlement</h3>
+ <div tal:content="structure context/current_functions/output"/>
+ </tal:block>
+ <tal:block tal:condition="python: context.past_functions and context.past_functions.raw">
+ <h3>Fonctions passées au sein du Parlement</h3>
+ <div tal:content="structure context/past_functions/output"/>
+ </tal:block>
+ <tal:block tal:condition="context/mandates">
+ <h3>Mandats politiques exercés antérieurement ou actuellement</h3>
+ <div tal:content="structure view/mandates"/>
+ </tal:block>
</div>
</dd>