Created
November 21, 2017 03:43
-
-
Save domzgarcia/1f5b6aa2448ff0cca6c6cb270e9eaf6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let visibility = (comp['subform-allow-multiple-values']) ? '' : 'hidden'; | |
return `<div class="subform" data-type="subform" data-form-id="${comp['form_id']}"> | |
<label for="">${comp['field-label']}</label> | |
<div class="container-fluid subform-content"> | |
${subforms.length===0?frm.render(true).wrapSubform(false):subformsHtml}</div> | |
<div class="form-group"> <span data-form-id=${comp['form_id']} class="form-btn subform-add ${visibility}"><i class="fa fa-plus"></i> Add ${comp['field-label']}</span></div> | |
<div class="clearfix"></div> | |
</div>`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment