Mercurial > p > roundup > code
comparison templates/classic/html/page.html @ 3134:dc9ff2401362
fix search_checkboxes macro (patch [SF#1113828])
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sat, 12 Feb 2005 01:04:55 +0000 |
| parents | 7308c3c5a943 |
| children | f0713aa3ee3d |
comparison
equal
deleted
inserted
replaced
| 3132:3475ae520f19 | 3134:dc9ff2401362 |
|---|---|
| 186 property=name, width='600')" /> | 186 property=name, width='600')" /> |
| 187 </td> | 187 </td> |
| 188 | 188 |
| 189 <td metal:define-macro="search_checkboxes"> | 189 <td metal:define-macro="search_checkboxes"> |
| 190 <ul class="search-checkboxes" | 190 <ul class="search-checkboxes" |
| 191 tal:define="value python:request.form.getvalue(name)"> | 191 tal:define="value python:request.form.getvalue(name); |
| 192 values python:value and value.split(',') or []"> | |
| 192 <li tal:repeat="s python:db[db_klass].list()"> | 193 <li tal:repeat="s python:db[db_klass].list()"> |
| 193 <input type="checkbox" tal:attributes="name name; id string:$name-${s/id}; | 194 <input type="checkbox" tal:attributes="name name; id string:$name-${s/id}; |
| 194 value s/id; checked python:value == s.id" /> | 195 value s/id; checked python:s.id in values" /> |
| 195 <label tal:attributes="for string:$name-${s/id}" | 196 <label tal:attributes="for string:$name-${s/id}" |
| 196 tal:content="python:s[db_content]" /> | 197 tal:content="python:s[db_content]" /> |
| 197 </li> | 198 </li> |
| 198 <li metal:define-slot="no_value_item"> | 199 <li metal:define-slot="no_value_item"> |
| 199 <input type="checkbox" value="-1" tal:attributes="name name; | 200 <input type="checkbox" value="-1" tal:attributes="name name; |
