Browse Source

feat(gui-v2): add success message to form

pull/3030/head
Wing-Kam Wong 2 years ago
parent
commit
df4bbe9bf4
  1. 9
      packages/nc-gui-v2/components/smartsheet/Form.vue

9
packages/nc-gui-v2/components/smartsheet/Form.vue

@ -13,6 +13,7 @@ const formState = reactive({
submitAnotherForm: false, submitAnotherForm: false,
showBlankForm: false, showBlankForm: false,
emailMe: false, emailMe: false,
successMsg: '',
}) })
const isEditable = isUIAllowed('editFormView' as Permission) const isEditable = isUIAllowed('editFormView' as Permission)
@ -98,6 +99,14 @@ function submitForm() {}
</a-button> </a-button>
</div> </div>
<!-- After form is submitted -->
<div class="text-gray-500 mt-10 mb-4">
{{ $t('msg.info.afterFormSubmitted') }}
</div>
<!-- Show this message -->
<label class="text-gray-600 text-bold"> {{ $t('msg.info.showMessage') }}: </label>
<a-textarea v-model="formState.successMsg" rows="3" hide-details @input="updateView" />
<!-- Other options --> <!-- Other options -->
<div class="mt-4"> <div class="mt-4">
<div class="my-4"> <div class="my-4">

Loading…
Cancel
Save