addForm() {
        // Creates a new form based on TEMPLATE
        let template = document.importNode(TEMPLATE.content, true);
        FORMSET_BODY.appendChild(template);
        let form = FORMSET_BODY.children[FORMSET_BODY.children.length -1];

        // Updates the id's of the form to unique values
        form.innerHTML = form.innerHTML.replace(MATCH_FORM_IDS, this.updateMatchedId.bind(this, form));

        let index = FORMSET_BODY.children.length;
        FORMSET.querySelector('[name="form-TOTAL_FORMS"]').value = index;
        this.updateButton();
    }
/**
     * Creates a new form based on TEMPLATE
     * Updates the id's of the form to unique values
     * Applies styling to fake elements (checkboxes, radio buttons, datepicker)
     */
Creates a new form based on TEMPLATE
Updates the id's of the form to unique values
Applies styling to fake elements (checkboxes, radio buttons, datepicker)
Creates a new form based on TEMPLATE Updates the id ' s of the form to unique values Applies styling to fake elements ( checkboxes radio buttons datepicker )
addForm() {
        let template = document.importNode(TEMPLATE.content, true);
        FORMSET_BODY.appendChild(template);
        let form = FORMSET_BODY.children[FORMSET_BODY.children.length -1];
        form.innerHTML = form.innerHTML.replace(MATCH_FORM_IDS, this.updateMatchedId.bind(this, form));
        let index = FORMSET_BODY.children.length;
        FORMSET.querySelector('[name="form-TOTAL_FORMS"]').value = index;
        this.updateButton();
    }
addForm ( ) { let template = document . importNode ( TEMPLATE . content , true ) ; FORMSET_BODY . appendChild ( template ) ; let form = FORMSET_BODY . children [ FORMSET_BODY . children . length - 1 ] ; form . innerHTML = form . innerHTML . replace ( MATCH_FORM_IDS , this . updateMatchedId . bind ( this , form ) ) ; let index = FORMSET_BODY . children . length ; FORMSET . querySelector ( '[name="form-TOTAL_FORMS"]' ) . value = index ; this . updateButton ( ) ; }
Creates a new form based on TEMPLATE
 Updates the id's of the form to unique values
 Applies styling to fake elements (checkboxes, radio buttons, datepicker)
Creates a new form based on TEMPLATE Updates the id ' s of the form to unique values Applies styling to fake elements ( checkboxes radio buttons datepicker )
// Creates a new form based on TEMPLATE // Updates the id's of the form to unique values