From d7f2eb64f921c06dc668052a16e8ce469294230a Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Mon, 3 Apr 2023 23:44:23 +0200 Subject: [PATCH] Add Form Submit Functionality --- client/src/components/NiceForm.vue | 28 +++++++++++++++++-- client/src/definitions.ts | 6 ++-- .../pages/[subsystem]/[entity]/edit/[id].vue | 4 +-- .../pages/[subsystem]/[entity]/edit/index.vue | 21 ++++++++++---- 4 files changed, 47 insertions(+), 12 deletions(-) diff --git a/client/src/components/NiceForm.vue b/client/src/components/NiceForm.vue index f91aeb9..34d2008 100644 --- a/client/src/components/NiceForm.vue +++ b/client/src/components/NiceForm.vue @@ -15,14 +15,16 @@ const props = defineModel<{ }[], }[], modelValue: any, + submit: (value: any) => boolean, + discard: () => void, }>(); -let { sections } = $(props); +let { sections, submit, discard } = $(props); +
+
+ +
+ +
+

{{ values }}