replace spaces in class attributes used for sorting

This commit is contained in:
Frédéric Péters 2012-06-08 14:03:30 +02:00
parent f6d9f2b201
commit 1d6e6b680a
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@
</thead>
<tbody>
<tr tal:repeat="entry view/sortedDeputies">
<td tal:attributes="class string:name sortabledata-${entry/sortname}"><a tal:attributes="href entry/id">
<td tal:attributes="class python: 'name sortabledata-%s' % entry.sortname().replace(' ', '-')"><a tal:attributes="href entry/id">
<span class="lastname" tal:content="entry/lastname"/>
<span class="firstname" tal:content="entry/firstname"/></a></td>
<td tal:attributes="class string:polgroup sortabledata-${entry/polgroup/to_object/id}"