From 70737b6e2f378efe76978c214e71463fbcbd2bdc Mon Sep 17 00:00:00 2001 From: wreis Date: Tue, 27 May 2008 19:16:03 +0000 Subject: action template --- share/skin/base/layout/action.tt | 21 +++++---------- share/skin/default/layout/action.tt | 52 ++----------------------------------- 2 files changed, 9 insertions(+), 64 deletions(-) (limited to 'share/skin') diff --git a/share/skin/base/layout/action.tt b/share/skin/base/layout/action.tt index 67d6c37..6be075f 100644 --- a/share/skin/base/layout/action.tt +++ b/share/skin/base/layout/action.tt @@ -1,11 +1,13 @@ =for layout widget +
[% header %] [% field_list %] [% buttons %] [% footer %]
+
=for layout header @@ -13,15 +15,17 @@ =for layout field_list -

[% call_next %]

+
+ [% call_next %] +
=for layout field -[% call_next %]
+[% call_next %] =for layout message_layout - [% message %]
+ [% message %] =for layout buttons [% message %] @@ -45,17 +49,6 @@ [% standard_button %] -=for layout whut - - [% IF (viewport.ordered_fields.size != 0) && allowed_events.grep('^apply$').size; %] - - [% END; %] - - [% IF allowed_events.grep('^close$').size; %] - - [% END; %] -
- =for layout footer diff --git a/share/skin/default/layout/action.tt b/share/skin/default/layout/action.tt index 67d6c37..ba76fb5 100644 --- a/share/skin/default/layout/action.tt +++ b/share/skin/default/layout/action.tt @@ -1,63 +1,15 @@ -=for layout widget - -
- [% header %] - [% field_list %] - [% buttons %] - [% footer %] -
+=extends NEXT =for layout header - - -=for layout field_list - -

[% call_next %]

- =for layout field [% call_next %]
=for layout message_layout - [% message %]
- -=for layout buttons - [% message %] - [% ok_button_fragment %] - [% apply_button_fragment %] - [% cancel_button_fragment %] - -=for layout standard_button - - - -=for layout ok_button - -[% standard_button %] - -=for layout apply_button - -[% standard_button %] - -=for layout cancel_button - -[% standard_button %] - -=for layout whut - - [% IF (viewport.ordered_fields.size != 0) && allowed_events.grep('^apply$').size; %] - - [% END; %] - - [% IF allowed_events.grep('^close$').size; %] - - [% END; %] -
+[% call_next %]
=for layout footer - - =cut -- cgit v1.2.3-54-g00ecf