fixes for base collection widget+template
[catagits/Reaction.git] / share / skin / base / layout / action.tt
index 1db6e35..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
 
-=for layout field_list
+[% error_message %]
 
-<div id="action_field_list">
-  [% call_next %]
-</div>
+=for layout container_list
 
-=for layout field
+[% call_next %]
 
-<span class="action_field">
-  [% call_next %]
-</span>
+=for layout container
 
-=for layout message_layout
-
-<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">