Mercurial > p > roundup > code
changeset 2866:609809a24d1c
fixes to search checkboxes, thanks Jean Jordaan
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 04 Nov 2004 00:31:53 +0000 |
| parents | fb25f2567a91 |
| children | 908c27314abf |
| files | templates/classic/html/page.html |
| diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/templates/classic/html/page.html Wed Nov 03 21:12:35 2004 +0000 +++ b/templates/classic/html/page.html Thu Nov 04 00:31:53 2004 +0000 @@ -177,9 +177,10 @@ <ul class="search-checkboxes" tal:define="value python:request.form.getvalue(name)"> <li tal:repeat="s python:db[db_klass].list()"> - <input type="checkbox" tal:attributes="name name; id string:name-${s/id}; + <input type="checkbox" tal:attributes="name name; id string:$name-${s/id}; value s/id; checked python:value == s.id" /> - <label tal:attributes="for string:$name-${s/id}" tal:content="s/name" /> + <label tal:attributes="for string:$name-${s/id}" + tal:content="python:s[db_content]" /> </li> <li metal:define-slot="no_value_item"> <input type="checkbox" value="-1" tal:attributes="name name;
