Skip to content

Commit

Permalink
Merge pull request #84 from legalthings/form-group-label
Browse files Browse the repository at this point in the history
Manually add form-group and label for conditional fields
  • Loading branch information
svenstm authored Jan 5, 2018
2 parents a9ff69a + 0a26934 commit 19fbe76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/ractive-legalform.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@
if ($(this.el).hasClass('material')) {
$('.wizard').toMaterial();
$('.wizard').bootstrapMaterialDesign();

// add group to conditional field and float their labels
$(this.el).find('.form-group').addClass('bmd-form-group');
$(this.el).find('.form-group > label').addClass('form-control-label bmd-label-static');
$(this.el).find('.selectize-input > input').addClass('form-control');
}

this.updateExpressions(newValue, oldValue, keypath);
Expand Down

0 comments on commit 19fbe76

Please sign in to comment.