Skip to content

Commit dab90c0

Browse files
author
Richard Jones
committed
fixes to search checkboxes, thanks Jean Jordaan
1 parent 044f0df commit dab90c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/classic/html/page.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,10 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
177177
<ul class="search-checkboxes"
178178
tal:define="value python:request.form.getvalue(name)">
179179
<li tal:repeat="s python:db[db_klass].list()">
180-
<input type="checkbox" tal:attributes="name name; id string:name-${s/id};
180+
<input type="checkbox" tal:attributes="name name; id string:$name-${s/id};
181181
value s/id; checked python:value == s.id" />
182-
<label tal:attributes="for string:$name-${s/id}" tal:content="s/name" />
182+
<label tal:attributes="for string:$name-${s/id}"
183+
tal:content="python:s[db_content]" />
183184
</li>
184185
<li metal:define-slot="no_value_item">
185186
<input type="checkbox" value="-1" tal:attributes="name name;

0 commit comments

Comments
 (0)