mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Merge pull request #5303 from kensible/5294-ctint-toggle-buttons
Changed toggle buttons to match rest of app
This commit is contained in:
commit
b00fbc5e67
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user