summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2012-06-08 12:03:30 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2012-06-08 12:03:30 (GMT)
commit1d6e6b680ac1719efdbba7db0ad752c9961093a7 (patch)
tree44bbda5e668f3d44c46fa75ceedbab91da544f85
parentf6d9f2b201fdfa58feeed646c1b0e1db50685e6a (diff)
downloadtabellio.webviews-1d6e6b680ac1719efdbba7db0ad752c9961093a7.zip
tabellio.webviews-1d6e6b680ac1719efdbba7db0ad752c9961093a7.tar.gz
tabellio.webviews-1d6e6b680ac1719efdbba7db0ad752c9961093a7.tar.bz2
replace spaces in class attributes used for sorting
-rw-r--r--tabellio/webviews/deputy_listform.pt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tabellio/webviews/deputy_listform.pt b/tabellio/webviews/deputy_listform.pt
index f45913d..7a35e16 100644
--- a/tabellio/webviews/deputy_listform.pt
+++ b/tabellio/webviews/deputy_listform.pt
@@ -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}"