work in progress, listview still broken
[catagits/Reaction.git] / share / skin / default / layout / list_view.tt
index 7cd3cc4..f4f6501 100644 (file)
+=extends collection/grid
+
 =for layout widget
 
 [% pager %]
 
-<table>
-  [% header %]
-  [% body   %]
-  [% footer %]
-</table>
+[% call_next %]
 
 [% pager %]
 
 [% actions %]
 
-=for layout header
-
-<thead>
-  [% content %]
-</thead>
-
-=for layout header_row
-
-<tr>
-  [% content %]
-  [% IF object_action_count %]
-  <th colspan="[% object_action_count %]"> Actions </th>
-  [% END %]
-</tr>
-
-=for layout header_cell
-
-<th> <a href="[% uri %]"> [% content | html %] </a> </th>
+=for layout header_action_cell
 
-=for layout footer
+<th colspan="[% col_count %]"> Actions </th>
 
-<tfoot>
-  [% content %]
-</tfoot>
+=for layout header_cell_contents
 
-=for layout footer_row
+<a href="[% order_uri %]">[% call_next %]</a>
 
-<tr> 
-  [% content %] 
-  [% IF object_action_count %]
-  <th colspan="[% object_action_count %]"> Actions </th>
-  [% END %]
-</tr>
-
-=for layout footer_cell
-
-<th> <a href="[% uri %]"> [% content | html %] </a> </th>
-
-=for layout body
+=for layout actions
+<div class="collection_actions">
+<ul>
+  [% call_next %]
+</ul>
+</div>
 
-<tbody>
-  [% content %]
-</tbody>
+=for layout action
+<li>[% call_next %]</li>
 
 =for layout pager
 
 <ul class="pager">
-  <li>[% first_page %]</li>
-  <li>[% previous_page %]</li>
-  <li>[% page_list %]</li>
-  <li>[% next_page %]</li>
-  <li>[% last_page %]</li>
+  [% first_page %]
+  [% previous_page %]
+  [% page_list %]
+  [% next_page %]
+  [% last_page %]
 </ul>
 
-=for layout page_list
-[% content %]
+=for layout numbered_page_this_page
 
-=for layout page
-<li> <a href="[% uri | html %]">[% content | html %]</a> </li>
+<li> [% page_number %] </li>
 
-=for layout first_page
-<a href="[% uri | html %]">[% content | html %]</a>
+=for layout numbered_page
 
-=for layout previous_page
-<a href="[% uri | html %]">[% content | html %]</a>
+<li> <a href="[% page_uri %]">[% page_number %]</a> </li>
 
-=for layout current_page
-<a href="[% uri | html %]">[% content | html %]</a>
+=for layout named_page
 
-=for layout next_page
-<a href="[% uri | html %]">[% content | html %]</a>
+<li> <a href="[% page_uri %]">[% page_name %]</a> </li>
 
-=for layout last_page
-<a href="[% uri | html %]">[% content | html %]</a>
+=for layout named_page_no_page
 
-=for layout actions
-<div class="collection_actions">
-<ul>
-  [% content %]
-</ul>
-</div>
-
-=for layout action
-<li>[% content %]</li>
+<li> [% page_name %] </li>
 
 =cut