aboutsummaryrefslogtreecommitdiffstats
path: root/share/skin/base/layout/action.tt
diff options
context:
space:
mode:
authorwreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-05-02 21:27:45 +0000
committerwreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-05-02 21:27:45 +0000
commita2b16e659c9c2647df8959a8c308fb2bbf6a4e9e (patch)
tree7252c91b1f7b41ccd31e16af6b4f3e197b24feff /share/skin/base/layout/action.tt
parent4f5c76dc82abdaef7efe5b0c6fcaf3fcdb0205af (diff)
downloadreaction-a2b16e659c9c2647df8959a8c308fb2bbf6a4e9e.tar.gz
reaction-a2b16e659c9c2647df8959a8c308fb2bbf6a4e9e.zip
r5943@tabor: wallacer | 2008-05-02 17:30:59 -0300
renamed default to base
Diffstat (limited to 'share/skin/base/layout/action.tt')
-rw-r--r--share/skin/base/layout/action.tt63
1 files changed, 63 insertions, 0 deletions
diff --git a/share/skin/base/layout/action.tt b/share/skin/base/layout/action.tt
new file mode 100644
index 0000000..67d6c37
--- /dev/null
+++ b/share/skin/base/layout/action.tt
@@ -0,0 +1,63 @@
+=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 %] <br />
+
+=for layout message_layout
+
+ <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