Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form Builder v3 #3247

Draft
wants to merge 3 commits into
base: v2-bridge
Choose a base branch
from
Draft

Form Builder v3 #3247

wants to merge 3 commits into from

Conversation

DavidFyon
Copy link
Contributor

@DavidFyon DavidFyon commented Nov 10, 2023

Add Form Builder

<template>
	<FormBuilder v-model="form" />
</template>

<script lang="ts">
import { defineComponent } from "vue";

import FormBuilder from "@/form-builder/FormBuilder";
import { Form } from "@/form-builder/FormBuilder/types";

export default defineComponent({
	components: {
		FormBuilder,
	},
	data() {
		return {
			form: {
				informations: {
					title: "Vos informations",
					questions: {
						nir: {
							type: "text",
							value: null,
							fieldOptions: {
								label: "Numéro de Sécurité Sociale",
								outlined: true,
							},
						},
						lastName: {
							type: "text",
							value: null,
							fieldOptions: {
								label: "Nom",
								outlined: true,
							},
						},
						firstName: {
							type: "text",
							value: null,
							fieldOptions: {
								label: "Prénom",
								outlined: true,
							},
						},
					},
				},
				health: {
					title: "Votre état de santé",
					questions: {
						symptoms: {
							type: "textarea",
							title: "Vos symptômes",
							description:
								"Décrivez les symptômes qui vous affectent et leur ordre d’apparition.",
							value: null,
							fieldOptions: {
								label: "Décrivez vos symptômes",
								outlined: true,
							},
						},
						symptomsDate: {
							type: "date",
							value: null,
							description: "Date d’apparition des symptômes",
							fieldOptions: {
								label: "Date d’apparition",
								outlined: true,
							},
						},
					},
				},
			} as Form,
		};
	},
});
</script>

@DavidFyon DavidFyon self-assigned this Nov 10, 2023
@DavidFyon DavidFyon marked this pull request as draft November 10, 2023 10:00
@DavidFyon DavidFyon changed the title Form Builder Form Builder v3 Nov 10, 2023
@DavidFyon DavidFyon linked an issue Nov 10, 2023 that may be closed by this pull request
@DavidFyon
Copy link
Contributor Author

Besoin des composants PasswordField, DatePicker, PeriodField, RangeField, SelectBtnField

@deraw deraw removed the blocked label Dec 4, 2023
@DavidFyon DavidFyon closed this Jun 3, 2024
@DavidFyon DavidFyon reopened this Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Composants FormBuilder
2 participants