Mercurial > p > roundup > code
comparison templates/classic/html/page.html @ 2195:638600b0d682
added search_checkboxes as an option for the search form
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 07 Apr 2004 23:32:59 +0000 |
| parents | e5cc5ea839bb |
| children | bb152a04bee7 |
comparison
equal
deleted
inserted
replaced
| 2194:43151ac10819 | 2195:638600b0d682 |
|---|---|
| 130 tal:attributes="value s/id; selected python:value == s.id" | 130 tal:attributes="value s/id; selected python:value == s.id" |
| 131 tal:content="python:s[db_content]"></option> | 131 tal:content="python:s[db_content]"></option> |
| 132 </select> | 132 </select> |
| 133 </td> | 133 </td> |
| 134 | 134 |
| 135 <td metal:define-macro="search_checkboxes"> | |
| 136 <ul class="search-checkboxes" | |
| 137 tal:define="value python:request.form.getvalue(name)"> | |
| 138 <li tal:repeat="s python:db[db_klass].list()"> | |
| 139 <input type="checkbox" tal:attributes="name name; id string:name-${s/id}; | |
| 140 value s/id; checked python:value == s.id" /> | |
| 141 <label tal:attributes="for string:$name-${s/id}" tal:content="s/name" /> | |
| 142 </li> | |
| 143 <li metal:define-slot="no_value_item"> | |
| 144 <input type="checkbox" value="-1" tal:attributes="name name; | |
| 145 id string:$name--1; checked python:value == '-1'" /> | |
| 146 <label tal:attributes="for string:$name--1">no value</label> | |
| 147 </li> | |
| 148 </ul> | |
| 149 </td> | |
| 150 | |
| 135 <td metal:define-macro="column_input"> | 151 <td metal:define-macro="column_input"> |
| 136 <input type="checkbox" name="@columns" | 152 <input type="checkbox" name="@columns" |
| 137 tal:attributes="value name; | 153 tal:attributes="value name; |
| 138 checked python:name in cols"> | 154 checked python:name in cols"> |
| 139 </td> | 155 </td> |
