]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/list
And now we have paging support. (And some better docs)
[maypole.git] / templates / factory / list
index 69bb8680a8aa18820b83e3d1867d84b536cab702..2a159648187e4d099715f8a39a57855febfd3e9a 100644 (file)
@@ -1,11 +1,17 @@
-[% PROCESS list_macros %]
+[% PROCESS macros %]
 
 [% 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;
@@ -25,5 +31,6 @@ FOR item = objects;
 END %]
 </TABLE>
 
-
+[% INCLUDE pager; %]
 [% INCLUDE addnew; %]
+</DIV>