[% PROCESS macros %]
[% INCLUDE header %]
+[% INCLUDE title %]
[% IF search %]
- <h2>Search results</h2>
+ <div id="title">Search results</div>
[% ELSE %]
- <h2>Listing of all [% classmetadata.plural %]</h2>
+ <div id="title">Listing of all [% classmetadata.plural %]</div>
[% END %]
[% INCLUDE navbar %]
-[% INCLUDE search_form %]
<div class="list">
<table id="matrix" width="100%" >
<tr>
- [% FOR col = classmetadata.columns.list;
+ [% FOR col = classmetadata.list_columns.list;
NEXT IF col == "id";
"<th>";
SET additional = "?order=" _ col;
IF col == request.query.order and request.query.o2 != "desc";
link(classmetadata.table, "list", additional,
classmetadata.colnames.$col);
+ IF col == request.query.order;
+ IF request.query.o2 != "desc";
+ "↓";
+ ELSE;
+ "↑";
+ END;
+ END;
"</th>";
END %]
- <th>Actions</th>
+ <th id="actionth">Actions</th>
</tr>
[% SET count = 0;
FOR item = objects;
"</tr>";
END %]
</table>
+
[% INCLUDE pager %]
[% INCLUDE addnew %]
+[% INCLUDE search_form %]
</div>
[% INCLUDE footer %]