Skip to content

Commit

Permalink
Bootstrap 3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mi32dogs authored Nov 12, 2016
1 parent 6025957 commit 8bb3428
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions templates/BootstrapForm.ss
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,38 @@
<% if $Message %>
<% if $MessageType == "good" %>
<div id="{$FormName}_error" class="alert alert-success" role="alert">$Message</div>
<% else_if MessageType == "info" %>
<% else_if $MessageType == "info" %>
<div id="{$FormName}_error" class="alert alert-info" role="alert">$Message</div>
<% else_if MessageType == "bad" %>
<% else_if $MessageType == "bad" %>
<div id="{$FormName}_error" class="alert alert-danger" role="alert">$Message</div>
<% end_if %>
<% end_if %>

<fieldset>
<% if $Legend %><legend>$Legend</legend><% end_if %>
<% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop $Fields %>
$FieldHolder
<% end_loop %>
<div class="clear"><!-- --></div>
</fieldset>

<% if $Actions %>
<div class="form-actions">
<% loop $Actions %>
$Field
<% end_loop %>
</div>
<% if $formLayout=='horizontal' %>
<div class="form-group">
<div class="$gridActionClass">
<% else %>
<div class="form-actions">
<% end_if %>

<% loop $Actions %>
$Field
<% end_loop %>

<% if $formLayout=='horizontal' %>
</div>
<% end_if %>

</div>
<% end_if %>
<% if $IncludeFormTag %>
</form>
Expand Down

0 comments on commit 8bb3428

Please sign in to comment.