Automated the generation of form templates

This commit is contained in:
Julien Nahum
2023-03-14 12:01:36 +01:00
parent 5df4488c25
commit 472b1a8061
12 changed files with 893 additions and 7 deletions

View File

@@ -22,7 +22,7 @@
class="nf-code w-full px-2 mb-3"
v-html="field.content"
/>
<div v-if="field.type === 'nf-divider'" :id="field.id" :key="field.id"
<div v-if="field.type === 'nf-divider'" :id="field.id" :key="field.id"
class="border-b my-4 w-full mx-2"
/>
<div v-if="field.type === 'nf-image' && (field.image_block || !isPublicFormPage)" :id="field.id"
@@ -162,7 +162,7 @@ export default {
},
/**
* Returns true if we're on the last page
* @returns {boolean}
* @returns {boolean}xs
*/
isLastPage() {
return this.currentFieldGroupIndex === (this.fieldGroups.length - 1)