include profession in deputy page
This commit is contained in:
parent
8d975142aa
commit
66f772ed80
|
@ -54,8 +54,10 @@
|
|||
<dt tal:condition="context/active">CV</dt>
|
||||
<dd tal:condition="context/active">
|
||||
<div id="cvDetail" class="copytext">
|
||||
<h3 tal:condition="context/degrees">Diplômes</h3>
|
||||
<h3 tal:condition="context/degrees">Formation</h3>
|
||||
<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/mandates">Mandats politiques exercés antérieurement ou actuellement</h3>
|
||||
<div tal:condition="context/mandates" tal:content="structure view/mandates"/>
|
||||
</div>
|
||||
|
|
|
@ -39,6 +39,10 @@ class View(BrowserView):
|
|||
mandates = self.context.mandates
|
||||
return '<ul>' + '\n'.join(u'<li>%s</li>' % x for x in mandates.splitlines() if x.strip()) + '</ul>'
|
||||
|
||||
def profession(self):
|
||||
profession = self.context.profession
|
||||
return '<ul>' + '\n'.join(u'<li>%s</li>' % x for x in profession.splitlines() if x.strip()) + '</ul>'
|
||||
|
||||
def get_commissions_and_roles(self):
|
||||
intids = component.getUtility(IIntIds)
|
||||
catalog = component.getUtility(ICatalog)
|
||||
|
|
Reference in New Issue