aboutsummaryrefslogtreecommitdiffstats
path: root/share/skin/default/layout
diff options
context:
space:
mode:
authorwreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-08-21 22:06:08 +0000
committerwreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-08-21 22:06:08 +0000
commitf1abbd0a45d3f79a5fa8336de166c5f82c6be065 (patch)
tree8af056eca6ca91552b136ff7fce5a534784746e2 /share/skin/default/layout
parentf9a5cffaa1f618289fbcf24a9f1f591d0d7d2723 (diff)
downloadreaction-f1abbd0a45d3f79a5fa8336de166c5f82c6be065.tar.gz
reaction-f1abbd0a45d3f79a5fa8336de166c5f82c6be065.zip
cleanup for list_view in base skin
Diffstat (limited to 'share/skin/default/layout')
-rw-r--r--share/skin/default/layout/collection/grid.tt33
-rw-r--r--share/skin/default/layout/collection/grid/member.tt13
-rw-r--r--share/skin/default/layout/collection/grid/member/with_actions.tt12
-rw-r--r--share/skin/default/layout/list_view.tt50
4 files changed, 104 insertions, 4 deletions
diff --git a/share/skin/default/layout/collection/grid.tt b/share/skin/default/layout/collection/grid.tt
new file mode 100644
index 0000000..ecfc7d6
--- /dev/null
+++ b/share/skin/default/layout/collection/grid.tt
@@ -0,0 +1,33 @@
+=extends NEXT
+
+=for layout widget
+
+<table>
+ [% call_next %]
+</table>
+
+=for layout header
+
+<thead>
+ [% call_next %]
+</thead>
+
+=for layout header_row
+
+<tr>
+ [% call_next %]
+</tr>
+
+=for layout header_cell
+
+<th> [% call_next %] </th>
+
+=for layout body
+
+<tbody>
+
+ [% call_next %]
+
+</tbody>
+
+=cut
diff --git a/share/skin/default/layout/collection/grid/member.tt b/share/skin/default/layout/collection/grid/member.tt
new file mode 100644
index 0000000..f0583d7
--- /dev/null
+++ b/share/skin/default/layout/collection/grid/member.tt
@@ -0,0 +1,13 @@
+=extends NEXT
+
+=for layout widget
+
+<tr>
+ [% call_next %]
+</tr>
+
+=for layout field
+
+<td>[% call_next %]</td>
+
+=cut
diff --git a/share/skin/default/layout/collection/grid/member/with_actions.tt b/share/skin/default/layout/collection/grid/member/with_actions.tt
new file mode 100644
index 0000000..a0bca88
--- /dev/null
+++ b/share/skin/default/layout/collection/grid/member/with_actions.tt
@@ -0,0 +1,12 @@
+=extends collection/grid/member
+
+=for layout field_list
+
+[% call_next %]
+[% actions %]
+
+=for layout action
+
+<td>[% call_next %]</td>
+
+=cut
diff --git a/share/skin/default/layout/list_view.tt b/share/skin/default/layout/list_view.tt
index 78ab34f..f1a72b1 100644
--- a/share/skin/default/layout/list_view.tt
+++ b/share/skin/default/layout/list_view.tt
@@ -1,15 +1,57 @@
-=extends NEXT
+=extends collection/grid
+
+=for layout widget
+
+[% pager_fragment %]
+
+[% call_next %]
+
+[% pager_fragment %]
+
+[% actions %]
+
+=for layout header_action_cell
+
+<th colspan="[% col_count %]"> Actions </th>
+
+=for layout header_cell_contents
+
+<a href="[% order_uri %]">[% call_next %]</a>
+
+=for layout actions
+
+<ul class="collection_actions">
+ [% call_next %]
+</ul>
+
+=for layout action
+
+<li>[% call_next %]</li>
=for layout pager
-<div class="pager">
-<ul>
+<ul class="pager">
[% first_page %]
[% previous_page %]
[% page_list %]
[% next_page %]
[% last_page %]
</ul>
-</div>
+
+=for layout numbered_page_this_page
+
+<li> [% page_number %] </li>
+
+=for layout numbered_page
+
+<li> <a href="[% page_uri %]">[% page_number %]</a> </li>
+
+=for layout named_page
+
+<li> <a href="[% page_uri %]">[% page_name %]</a> </li>
+
+=for layout named_page_no_page
+
+<li> [% page_name %] </li>
=cut