Better form editor (#187)

This commit is contained in:
formsdev
2023-09-05 19:55:33 +05:30
committed by GitHub
parent a21eb851aa
commit c66c09e17b
7 changed files with 101 additions and 104 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div v-if="form" class="open-complete-form">
<h1 v-if="!isHideTitle" class="mb-4 px-2" :class="{&quot;mt-4&quot;:isEmbedPopup}" v-text="form.title" />
<h1 v-if="!isHideTitle" class="mb-4 px-2" :class="{'mt-4':isEmbedPopup}" v-text="form.title" />
<div v-if="isPublicFormPage && form.is_password_protected">
<p class="form-description mb-4 text-gray-700 dark:text-gray-300 px-2">
@@ -76,7 +76,7 @@
>
<template #submit-btn="{submitForm}">
<open-form-button :loading="loading" :theme="theme" :color="form.color" class="mt-2 px-8 mx-1"
@click.prevent="submitForm"
:class="submitButtonClass" @click.prevent="submitForm"
>
{{ form.submit_button_text }}
</open-form-button>
@@ -123,7 +123,8 @@ export default {
props: {
form: { type: Object, required: true },
creating: { type: Boolean, default: false }, // If true, fake form submit
adminPreview: { type: Boolean, default: false } // If used in FormEditorPreview
adminPreview: { type: Boolean, default: false }, // If used in FormEditorPreview
submitButtonClass: { type: String, default: '' }
},
mixins: [FormPendingSubmissionKey],