fixes for base collection widget+template
[catagits/Reaction.git] / share / skin / base / layout / action.tt
index 6be075f..b5cb708 100644 (file)
@@ -1,9 +1,9 @@
 =for layout widget
 
-<div id="action_form">
-  <form action="" method="post" enctype="multipart/form-data">
+<div class="action_form">
+  <form action="[% action %]" id="[% form_id %]" method="[% method %]" enctype="multipart/form-data">
     [% header  %]
-    [% field_list  %]
+    [% container_list %]
     [% buttons %]
     [% footer  %]
   </form>
 
 =for layout header
 
-<!-- header -->
+[% error_message %]
 
-=for layout field_list
-
-<div id="action_field_list">
-  [% call_next %]
-</div>
-
-=for layout field
+=for layout container_list
 
 [% call_next %]
 
-=for layout message_layout
+=for layout container
 
-  <span class="action_message">[% message %]</span>
+[% call_next %]
 
 =for layout buttons
   [% message %]
   [% apply_button_fragment %]
   [% cancel_button_fragment %]
 
+=for layout message_layout
+
+<span class="action_message">[% message_string %]</span>
+
+=for layout error_message_layout
+
+<span class="action_error_message">[% message_string %]</span>
+
 =for layout standard_button
 
+<span class="action_button">
   <input type="submit" class="button" name="[% event_id %]" value="[% label %]" />
+</span>
 
 =for layout ok_button
 
@@ -51,6 +55,4 @@
 
 =for layout footer
 
-  <!-- footer -->
-
 =cut