comparison templates/classic/html/page.html @ 2269:bb152a04bee7 maint-0.7

make search page useful for popup listings
author Richard Jones <richard@users.sourceforge.net>
date Fri, 07 May 2004 00:48:08 +0000
parents 638600b0d682
children 35b4435d2ef2 5cc6e1d295e1
comparison
equal deleted inserted replaced
2268:f9200f897369 2269:bb152a04bee7
113 113
114 </body> 114 </body>
115 </html> 115 </html>
116 </tal:block> 116 </tal:block>
117 117
118 <!--
119 The following macros are intended to be used in search pages.
120
121 The invoking context must define a "name" variable which names the
122 property being searched.
123
124 See issue.search.html in the classic template for examples.
125 -->
118 <td metal:define-macro="search_input"> 126 <td metal:define-macro="search_input">
119 <input tal:attributes="value python:request.form.getvalue(name) or nothing; 127 <input tal:attributes="value python:request.form.getvalue(name) or nothing;
120 name name"> 128 name name">
129 </td>
130
131 <td metal:define-macro="search_popup">
132 <!--
133 context needs to specify the popup "columns" as a comma-separated
134 string (eg. "id,title" or "id,name,description") as well as name
135 -->
136 <input tal:attributes="value python:request.form.getvalue(name) or nothing;
137 name name">
138 <span tal:replace="structure python:db.issue.classhelp(columns,
139 property=name)" />
121 </td> 140 </td>
122 141
123 <td metal:define-macro="search_select"> 142 <td metal:define-macro="search_select">
124 <select tal:attributes="name name" 143 <select tal:attributes="name name"
125 tal:define="value python:request.form.getvalue(name)"> 144 tal:define="value python:request.form.getvalue(name)">

Roundup Issue Tracker: http://roundup-tracker.org/