various minor changes to adapt to arrival of PTB*PVDA-GO!
This commit is contained in:
parent
213cea0c0b
commit
86d93b6ef3
|
@ -31,7 +31,8 @@
|
|||
<span id="birthline" tal:content="view/birthline"/><br/>
|
||||
<span tal:condition="context/bio" id="bio" tal:content="context/bio"/>
|
||||
<br tal:condition="not: context/active"/>
|
||||
<span tal:condition="not: context/active">Ce député ne siège plus au parlement.</span>
|
||||
<span id="siege-plus" tal:condition="not: context/active">Ce député ne siège plus au parlement.</span>
|
||||
<tal:block tal:condition="context/active">
|
||||
<br tal:condition="context/seat_number"/>
|
||||
<span tal:condition="context/seat_number" id="deputy-seats">
|
||||
<span tal:content="context/title">Foo bar </span> est
|
||||
|
@ -39,6 +40,7 @@
|
|||
<span tal:omit-tag="" tal:condition="python: context.sex == 'M'">député francophone bruxellois. Il</span>
|
||||
siège au banc numéro <span tal:replace="context/seat_number">23</span>.
|
||||
</span>
|
||||
</tal:block>
|
||||
</p>
|
||||
</div>
|
||||
<div class="greybloc">
|
||||
|
|
|
@ -252,6 +252,9 @@ class FolderView(BrowserView):
|
|||
except (IndexError, TypeError):
|
||||
return None
|
||||
|
||||
def renderPolgroupTitle(self, item):
|
||||
return item.Title().replace('-', ' -')
|
||||
|
||||
class IDeputiesAndOthersFolderView(Interface):
|
||||
pass
|
||||
|
||||
|
|
|
@ -54,8 +54,8 @@
|
|||
<a href="#" class="tous" tal:condition="python: view.getSelectedPolgroup()">Tous</a>
|
||||
<a href="#" class="tous active" tal:condition="python: not view.getSelectedPolgroup()">Tous</a>
|
||||
<tal:block tal:repeat="item view/getPolGroups">
|
||||
<a class="ps" href="#" tal:condition="python: view.getSelectedPolgroup() != item.id" tal:attributes="class item/id" tal:content="item/Title">PS</a>
|
||||
<a class="ps" href="#" tal:condition="python: view.getSelectedPolgroup() == item.id" tal:attributes="class string:${item/id} active" tal:content="item/Title">PS</a>
|
||||
<a class="ps" href="#" tal:condition="python: view.getSelectedPolgroup() != item.id" tal:attributes="class item/id" tal:content="python: view.renderPolgroupTitle(item)">PS</a>
|
||||
<a class="ps" href="#" tal:condition="python: view.getSelectedPolgroup() == item.id" tal:attributes="class string:${item/id} active" tal:content="python: view.renderPolgroupTitle(item)">PS</a>
|
||||
</tal:block>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -68,7 +68,7 @@
|
|||
<table id="deputy-table" class="listing">
|
||||
<thead>
|
||||
<th class="name">Nom / Prénom</th>
|
||||
<th class="polgroup">Groupe</th>
|
||||
<th class="polgroup">Groupe / Liste</th>
|
||||
<th class="arrond">Arrondissement</th>
|
||||
<th class="birth">Naissance</th>
|
||||
</thead>
|
||||
|
|
Reference in New Issue