Adds error div to toggle fields built using form generator so that errors can be shown underneath the toggle

This commit is contained in:
mabashian 2020-03-17 15:27:16 -04:00
parent b260a88810
commit 6db6fe90fd

View File

@ -728,6 +728,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
html += `
<div>
<at-switch on-toggle="toggleForm('${field.toggleSource}')" switch-on="${field.toggleSource}" switch-disabled="${"ngDisabled" in field} ? ${field.ngDisabled} : false" hide="!(${"ngShow" in field ? field.ngShow : true})"></at-switch>
<div class="error api-error" id="${this.form.name}-${fld}-api-error" ng-bind="${fld}_api_error"></div>
</div>
`;
}