diff --git a/templates/BootstrapForm.ss b/templates/BootstrapForm.ss
index c7d21eb..0b6f209 100755
--- a/templates/BootstrapForm.ss
+++ b/templates/BootstrapForm.ss
@@ -4,15 +4,15 @@
<% if $Message %>
<% if $MessageType == "good" %>
$Message
- <% else_if MessageType == "info" %>
+ <% else_if $MessageType == "info" %>
$Message
- <% else_if MessageType == "bad" %>
+ <% else_if $MessageType == "bad" %>
$Message
<% end_if %>
<% end_if %>
-
+
<% if $Actions %>
-
- <% loop $Actions %>
- $Field
- <% end_loop %>
-
+ <% if $formLayout=='horizontal' %>
+