diff --git a/dynamic-forms.js b/dynamic-forms.js index 374604b..722fc36 100644 --- a/dynamic-forms.js +++ b/dynamic-forms.js @@ -301,13 +301,40 @@ angular.module('dynform', []) } // Button elements get their labels from their contents. else if (["button", "legend", "reset", "submit"].indexOf(field.type) > -1) { - newElement.html(field.label); + newElement.html(field.label).addClass("btn"); } - // Everything else should be wrapped in a label tag. + // check box + else if (["checkbox"].indexOf(field.type) > -1) { + + formGroupWrapper = angular.element('
').addClass("checkbox"); + + newElement = formGroupWrapper.append( + angular.element('