aboutsummaryrefslogtreecommitdiffstats
path: root/share/skin/default/layout/action.tt
diff options
context:
space:
mode:
authorwreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-05-27 18:19:52 +0000
committerwreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-05-27 18:19:52 +0000
commitf38511c5ebf5947ce2a22fe72ec27c16631def86 (patch)
tree9595e03c133ca6cc70cc0f5d5e5a0bf55b8ba881 /share/skin/default/layout/action.tt
parent201baa3103a916699cab1ade9d67a34c32ae19d1 (diff)
downloadreaction-f38511c5ebf5947ce2a22fe72ec27c16631def86.tar.gz
reaction-f38511c5ebf5947ce2a22fe72ec27c16631def86.zip
changed approach as requested by mdk
Diffstat (limited to 'share/skin/default/layout/action.tt')
-rw-r--r--share/skin/default/layout/action.tt58
1 files changed, 55 insertions, 3 deletions
diff --git a/share/skin/default/layout/action.tt b/share/skin/default/layout/action.tt
index d2d7617..67d6c37 100644
--- a/share/skin/default/layout/action.tt
+++ b/share/skin/default/layout/action.tt
@@ -1,11 +1,63 @@
-=extends NEXT
+=for layout widget
+
+ <form action="" method="post" enctype="multipart/form-data">
+ [% header %]
+ [% field_list %]
+ [% buttons %]
+ [% footer %]
+ </form>
+
+=for layout header
+
+<!-- header -->
+
+=for layout field_list
+
+<p> [% call_next %] </p>
=for layout field
-[% call_next %]
+[% call_next %] <br />
=for layout message_layout
- <span>[% message %]</span>
+ <span>[% message %]</span> <br />
+
+=for layout buttons
+ [% message %]
+ [% ok_button_fragment %]
+ [% apply_button_fragment %]
+ [% cancel_button_fragment %]
+
+=for layout standard_button
+
+ <input type="submit" class="button" name="[% event_id %]" value="[% label %]" />
+
+=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; %]
+ <input type="submit" name="[% viewport.event_id_for('apply') | html%]" value="[% apply_label %]" />
+ [% END; %]
+
+ [% IF allowed_events.grep('^close$').size; %]
+ <input type="submit" name="[% viewport.event_id_for('close') | html%]" value="[% close_label %]" />
+ [% END; %]
+ <br />
+
+=for layout footer
+
+ <!-- footer -->
=cut