Added disabled tooltips in CTinT

This commit is contained in:
Ken Hoes
2017-02-08 15:14:16 -05:00
parent 29869f7093
commit 8aea053d4c
2 changed files with 48 additions and 0 deletions

View File

@@ -740,6 +740,10 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
html += (field.awFeature) ? "aw-feature=\"" + field.awFeature + "\" " : "";
html += ">\n";
var definedInFileMessage = i18n._('This setting has been set manually in a settings file and is now disabled.');
html += (field.definedInFile) ?
`<span class="Form-tooltip--disabled">${definedInFileMessage}</span>` : ``;
// toggle switches
if(field.type === 'toggleSwitch') {
html += label();