diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-06 16:46:03 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-06 16:46:03 +0000 |
commit | 71dbeae85dbef28b9af1954086bc5026de0fb3dd (patch) | |
tree | 7cb1eb15142e3787607495f090608d954ce38651 /templates | |
parent | 8b835c38168228641666c1cf920fe94ce07be329 (diff) |
Start of Zurich admin table sort ordering (DM).
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/zurich/admin/index-dm.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/web/zurich/admin/index-dm.html b/templates/web/zurich/admin/index-dm.html index 76ed30aed..71458dab9 100644 --- a/templates/web/zurich/admin/index-dm.html +++ b/templates/web/zurich/admin/index-dm.html @@ -15,15 +15,17 @@ [% INCLUDE 'admin/footer.html' %] +[% BLOCK sort_link %][% IF order == choice %][% c.uri_with( d => 1 - c.req.params.d ) %][% ELSE %][% c.uri_with( { o => choice } ) %][% END %][% END %] + [% BLOCK list %] <table cellspacing="0" cellpadding="2" border="1"> <tr> <th>[% loc('ID') %]</th> <th>[% loc('Description') %]</th> - <th>[% loc('Category') %]</th> - <th>[% loc('Submitted') %]</th> - <th>[% loc('Updated') %]</th> - <th>[% loc('Status') %]</th> + <th><a href="[% INCLUDE sort_link choice = 'category' %]">[% loc('Category') %]</a></th> + <th><a href="[% INCLUDE sort_link choice = 'created' %]">[% loc('Submitted') %]</a></th> + <th><a href="[% INCLUDE sort_link choice = 'lastupdate' %]">[% loc('Updated') %]</a></th> + <th><a href="[% INCLUDE sort_link choice = 'state' %]">[% loc('Status') %]</a></th> [% IF include_subdiv %] <th>[% loc('Subdivision/Body') %]</th> [% END %] |