|
|
@ -151,25 +151,30 @@ onMounted(() => { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div ref="el" class="w-full grid"> |
|
|
|
<div ref="el" class="pt-8 md:p-0 w-full h-full flex flex-col"> |
|
|
|
<template v-if="sharedFormView"> |
|
|
|
<div |
|
|
|
<div class="max-h-33vh max-w-[max(33%,600px)] mx-auto"> |
|
|
|
v-if="sharedFormView" |
|
|
|
<div class="h-33vh flex flex-col justify-end"> |
|
|
|
style="height: max(40vh, 250px); min-height: 250px" |
|
|
|
|
|
|
|
class="max-w-[max(33%,600px)] mx-auto flex flex-col justify-end" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div class="px-4 md:px-0 flex flex-col justify-end"> |
|
|
|
<h1 class="prose-2xl font-bold self-center my-4">{{ sharedFormView.heading }}</h1> |
|
|
|
<h1 class="prose-2xl font-bold self-center my-4">{{ sharedFormView.heading }}</h1> |
|
|
|
|
|
|
|
|
|
|
|
<h2 class="prose-lg text-slate-500 dark:text-slate-300 self-center mb-4"> |
|
|
|
<h2 |
|
|
|
{{ sharedFormView.subheading }} |
|
|
|
v-if="sharedFormView.subheading && sharedFormView.subheading !== ''" |
|
|
|
|
|
|
|
class="prose-lg text-slate-500 dark:text-slate-300 self-center mb-4 leading-6" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{{ sharedFormView?.subheading }} |
|
|
|
</h2> |
|
|
|
</h2> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="h-full w-full flex items-center px-4 md:px-0"> |
|
|
|
<div class="h-full w-full flex items-center px-4 md:px-0"> |
|
|
|
<Transition :name="`slide-${transitionName}`" :duration="1000" mode="out-in"> |
|
|
|
<Transition :name="`slide-${transitionName}`" :duration="1000" mode="out-in"> |
|
|
|
<div |
|
|
|
<div |
|
|
|
ref="el" |
|
|
|
ref="el" |
|
|
|
:key="field.title" |
|
|
|
:key="field.title" |
|
|
|
class="color-transition h-full flex flex-col justify-center gap-4 w-full max-w-[max(33%,600px)] m-auto" |
|
|
|
class="color-transition h-full flex flex-col mt-6 gap-4 w-full max-w-[max(33%,600px)] m-auto" |
|
|
|
> |
|
|
|
> |
|
|
|
<div v-if="field && !submitted" class="flex flex-col gap-2"> |
|
|
|
<div v-if="field && !submitted" class="flex flex-col gap-2"> |
|
|
|
<div class="flex nc-form-column-label"> |
|
|
|
<div class="flex nc-form-column-label"> |
|
|
@ -210,7 +215,7 @@ onMounted(() => { |
|
|
|
{{ error.$message }} |
|
|
|
{{ error.$message }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="block"> |
|
|
|
<div class="block text-[14px]"> |
|
|
|
{{ field.description }} |
|
|
|
{{ field.description }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -255,14 +260,6 @@ onMounted(() => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="!submitted"> |
|
|
|
|
|
|
|
<div class="flex-1" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="select-none text-center text-gray-500 dark:text-slate-200"> |
|
|
|
|
|
|
|
{{ index + 1 }} / {{ formColumns?.length }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Transition name="slide-left"> |
|
|
|
<Transition name="slide-left"> |
|
|
|
<div v-if="submitted" class="flex flex-col justify-center items-center text-center"> |
|
|
|
<div v-if="submitted" class="flex flex-col justify-center items-center text-center"> |
|
|
|
<div class="text-lg px-6 py-3 bg-green-300 text-gray-700 rounded"> |
|
|
|
<div class="text-lg px-6 py-3 bg-green-300 text-gray-700 rounded"> |
|
|
@ -294,6 +291,13 @@ onMounted(() => { |
|
|
|
</Transition> |
|
|
|
</Transition> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-if="!submitted"> |
|
|
|
|
|
|
|
<div class="mb-24 md:my-4 select-none text-center text-gray-500 dark:text-slate-200"> |
|
|
|
|
|
|
|
{{ index + 1 }} / {{ formColumns?.length }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="relative flex w-full items-end"> |
|
|
|
<Transition name="fade"> |
|
|
|
<Transition name="fade"> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-if="!submitted" |
|
|
|
v-if="!submitted" |
|
|
@ -319,6 +323,9 @@ onMounted(() => { |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</Transition> |
|
|
|
</Transition> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<GeneralPoweredBy /> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|