[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/index/text - control.pt:1.3
Guido van Rossum
guido@python.org
Wed, 4 Dec 2002 16:39:19 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/index/text
In directory cvs.zope.org:/tmp/cvs-serv14702
Modified Files:
control.pt
Log Message:
Add a querey button.
For now, this displays the number of results only.
=== Zope3/lib/python/Zope/App/index/text/control.pt 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/index/text/control.pt:1.2 Wed Dec 4 15:00:52 2002
+++ Zope3/lib/python/Zope/App/index/text/control.pt Wed Dec 4 16:39:17 2002
@@ -30,6 +30,17 @@
</span>
</form>
+ <form method="GET">
+ <input type="text" name="queryText" value=""
+ tal:attributes="value request/queryText|nothing" />
+ <input type="submit" value="Query" name="callQuery" />
+ </form>
+
+ <div tal:condition="request/queryText|nothing" tal:omit-tag="">
+ Search results:
+ <span tal:replace="python:context.query(request['queryText'])[1]" />
+ </div>
+
</body>
</html>