@submit="submitForm()">
                    <h3>{{ 'add ' + structureType + ' form' }}</h3>
                    <component v-for="input in form" :is="input.component" :key="input.name" v-bind="input"
                               v-show="showInput(input)" @change="changeForm(input)"
                    ></component>
                    <FormulateInput type="submit" label="Submit"/>
                    <FormulateInput type="button" label="Cancel" data-ghost @click="cancel"/>
                </FormulateForm>