Merge pull request #5303 from kensible/5294-ctint-toggle-buttons

Changed toggle buttons to match rest of app
This commit is contained in:
kensible 2017-02-10 14:19:23 -05:00 committed by GitHub
commit b00fbc5e67

View File

@ -744,9 +744,9 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
if(field.type === 'toggleSwitch') {
html += label();
html += `<div class="ScheduleToggle" ng-class="{'is-on': ${field.toggleSource}}" aw-tool-tip=""
data-placement="undefined" data-tip-watch="undefined" data-original-title="" title="">
<div ng-show="${field.toggleSource}" class="ScheduleToggle-switch is-on" ng-click="toggleForm('${field.toggleSource}')">ON</div>
<div ng-show="!${field.toggleSource}" class="ScheduleToggle-switch" ng-click="toggleForm('${field.toggleSource}')">OFF</div>
data-placement="top">
<button ng-show="${field.toggleSource}" class="ScheduleToggle-switch is-on" ng-click="toggleForm('${field.toggleSource}')">ON</button>
<button ng-show="!${field.toggleSource}" class="ScheduleToggle-switch" ng-click="toggleForm('${field.toggleSource}')">OFF</button>
</div>`;
}
@ -1857,7 +1857,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
${actionButtons}
</div>`;
}
// smart-search directive
html += `
<div