Skip to content

Commit

Permalink
Merge pull request #30 from phillprice/master
Browse files Browse the repository at this point in the history
...
  • Loading branch information
unclecheese committed Nov 21, 2014
2 parents 4dbd674 + 6a155fd commit e56f602
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "unclecheese/display-logic",
"replace": {
"silverstripe/display-logic": "*"
},
"name": "phillprice/silverstripe-display-logic",
"description": "Allows assignment of conditions for display and hide of specific form fields based on client side behavior.",
"type": "silverstripe-module",
"keywords": ["silverstripe", "display", "logic", "forms", "cms"],
Expand Down
10 changes: 5 additions & 5 deletions templates/BootstrapFieldHolder.ss
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<div id="$Name" class="field $extraClass $HolderClasses" $HolderAttributes <% if DisplayLogic %>data-display-logic-masters="$DisplayLogicMasters"<% end_if %>>
<label class="control-label" for="$ID">$Title</label>
<div class="controls">
<label class="control-label $labelClasses" for="$ID">$Title</label>
<div class="controls $inputClasses">
$Field

<% if HelpText %>
<p class="help-block">$HelpText</p>
<% end_if %>
<% if InlineHelpText %>
<span class="help-inline">$InlineHelpText</span>
<% end_if %>
<% end_if %>
</div>
<% if DisplayLogic %>
<div class="display-logic-eval">$DisplayLogic</div>
<% end_if %>
<% end_if %>
</div>

6 changes: 3 additions & 3 deletions templates/BootstrapTextField_holder.ss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="$Name" class="field $extraClass $HolderClasses" $HolderAttributes <% if DisplayLogic %>data-display-logic-masters="$DisplayLogicMasters"<% end_if %>>
<label class="control-label" for="$ID">$Title</label>
<div class="controls">
<label class="control-label $labelClasses" for="$ID">$Title</label>
<div class="controls $inputClasses">
<% if AppendedText || PrependedText %>
<div class="<% if AppendedText %>$input-append<% end_if %><% if PrependedText %> input-prepend<% end_if %>">
<% if PrependedText %><span class="add-on">$PrependedText</span><% end_if %>$Field<% if AppendedText %><span class="add-on">$AppendedText</span><% end_if %>
Expand All @@ -19,5 +19,5 @@
</div>
<% if DisplayLogic %>
<div class="display-logic-eval">$DisplayLogic</div>
<% end_if %>
<% end_if %>
</div>

0 comments on commit e56f602

Please sign in to comment.