UNPKG

@paperbits/forms

Version:
16 lines (15 loc) 679 B
<form class="needs-validation" novalidate data-bind="css: { 'form-inline': isInline() }, attr: { action: formAction, method: formMethod, target: formTarget, id: identifier, 'accept-charset': acceptCharset, enctype: encType }"> <!-- ko foreach: { data: widgets, as: 'widget' } --> <!-- ko if: widget.wrapped --> <div data-bind="widget: widget"></div> <!-- /ko --> <!-- ko ifnot: widget.wrapped --> <!-- ko widget: widget --><!-- /ko --> <!-- /ko --> <!-- /ko --> <!-- ko if: widgets().length === 0 --> <div class="empty-item" placeholder="Form"></div> <!-- /ko --> </form>