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 8bb3428 commit c6c946d
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions templates/BootstrapTextField_holder.ss
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
<div id="$Name" class="<% if $AppendedText || $PrependedText %>input-group<% end_if %> $HolderClasses" $HolderAttributes>
<label for="$ID" class="$LabelClasses">$Title</label>
<div id="$Name" class="$HolderClasses" $HolderAttributes>
<label for="$ID" class="$LabelClasses<% if $BootstrapLayout=='horizontal' %> control-label $GridLabelClass<% end_if %>">$Title</label>

<% if $BootstrapLayout=='horizontal' %><div class="$GridInputClass "><% end_if %>

<% if $AppendedText || $PrependedText %><div class="input-group"><% end_if %>

<% if $PrependedText %>
<span class="input-group-addon">$PrependedText</span>
<% end_if %>
$Field

$Field

<% if $AppendedText %>
<span class="input-group-addon">$AppendedText</span>
<span class="input-group-addon">$AppendedText</span>
<% end_if %>

<% if HelpText %>
<p class="help-block">$HelpText</p>
<% end_if %>
<% if InlineHelpText %>
<span class="help-inline">$InlineHelpText</span>
<% end_if %>
<% if $HelpText %><p class="help-block">$HelpText</p><% end_if %>

<% if $InlineHelpText %><span class="help-inline">$InlineHelpText</span><% end_if %>

<% if $AppendedText || $PrependedText %></div><% end_if %>

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

0 comments on commit c6c946d

Please sign in to comment.