various minor changes to adapt to arrival of PTB*PVDA-GO!

This commit is contained in:
Frédéric Péters 2014-06-26 13:23:33 +02:00 committed by Frédéric Péters
parent 213cea0c0b
commit 86d93b6ef3
3 changed files with 9 additions and 4 deletions

View File

@ -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">

View File

@ -252,6 +252,9 @@ class FolderView(BrowserView):
except (IndexError, TypeError):
return None
def renderPolgroupTitle(self, item):
return item.Title().replace('-', ' -')
class IDeputiesAndOthersFolderView(Interface):
pass

View File

@ -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>