]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/list
warn only with debug on.
[maypole.git] / templates / factory / list
index 8cd0209fc9531fe457ca1f2e6b959c0d290202e5..843f9a4d50b603bfced8da3c999ab0cc763eb22b 100644 (file)
@@ -6,22 +6,23 @@
     <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%>
+[% INCLUDE search_form %]
+<div class="list">
+    <table id="matrix" width="100%" >
         <tr>
             [% FOR col = classmetadata.columns.list;
                 NEXT IF col == "id";
                 "<th>"; 
                 SET additional = "?order=" _ col;
-                SET additional = additional _ "&page=" _ pager.current_page
+                SET additional = additional _ "&amp;page=" _ pager.current_page
                     IF pager;
-                SET additional = additional _ "&o2=desc" 
+                SET additional = additional _ "&amp;o2=desc" 
                 IF col == request.query.order and request.query.o2 != "desc";
                 link(classmetadata.table, "list", additional,
                     classmetadata.colnames.$col);
                 "</th>";
             END %]
+           <th>Actions</th>
         </tr>
         [%  SET count = 0;
         FOR item = objects;