]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/list
This adds basic searching. Want to change it to AbstractSearch, though.
[maypole.git] / templates / factory / list
index 5bd6a10f628edb0d2a39d57a7ebf28829f1786ff..d52d3e887075252ce886923e1de6cf05e47f15a3 100644 (file)
@@ -2,10 +2,16 @@
 
 [% INCLUDE header %]
 
+[% IF search %]
+<h2> Search results </h2>
+[% ELSE %]
 <h2> Listing of all [% classmetadata.plural %]</h2>
+[% END %]
 
 [% INCLUDE navbar %]
+<DIV class="search"> [% INCLUDE search_form %] </DIV>
 
+<DIV class="list">
 <TABLE id="matrix" WIDTH="100%">
 <TR>
 [% FOR col = classmetadata.columns.list;
@@ -24,6 +30,5 @@ FOR item = objects;
     "</tr>";
 END %]
 </TABLE>
-
-
 [% INCLUDE addnew; %]
+</DIV>