From 1c8c8a5c3f2284fa6f616d8d3b78ab3f6dd02e5b Mon Sep 17 00:00:00 2001 From: philipp lang Date: Tue, 5 Mar 2024 11:41:34 +0100 Subject: [PATCH] Add birthday validation --- package-lock.json | 39 ++++++++++++++++++++++++++++++++++- package.json | 5 ++++- partials/anfrage/default.htm | 12 ++++++++--- resources/js/app.js | 40 ++++++++++++++++++++++++++++++++++-- 4 files changed, 89 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9d0b1a5..52ba8cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,8 +11,11 @@ "dependencies": { "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.0", + "alpinejs": "^3.13.5", + "dayjs": "^1.11.10", "dotenv": "^10.0.0", - "flowbite": "^2.2.1" + "flowbite": "^2.2.1", + "flowbite-datepicker": "^1.2.6" }, "devDependencies": { "autoprefixer": "^10.4.0", @@ -157,6 +160,27 @@ "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1 || insiders" } }, + "node_modules/@vue/reactivity": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.1.5.tgz", + "integrity": "sha512-1tdfLmNjWG6t/CsPldh+foumYFo3cpyCHgBYQ34ylaMsJ+SNHQ1kApMIa8jN+i593zQuaw3AdWH0nJTARzCFhg==", + "dependencies": { + "@vue/shared": "3.1.5" + } + }, + "node_modules/@vue/shared": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.1.5.tgz", + "integrity": "sha512-oJ4F3TnvpXaQwZJNF3ZK+kLPHKarDmJjJ6jyzVNDKH9md1dptjC7lWR//jrGuLdek/U6iltWxqAnYOu8gCiOvA==" + }, + "node_modules/alpinejs": { + "version": "3.13.5", + "resolved": "https://registry.npmjs.org/alpinejs/-/alpinejs-3.13.5.tgz", + "integrity": "sha512-1d2XeNGN+Zn7j4mUAKXtAgdc4/rLeadyTMWeJGXF5DzwawPBxwTiBhFFm6w/Ei8eJxUZeyNWWSD9zknfdz1kEw==", + "dependencies": { + "@vue/reactivity": "~3.1.1" + } + }, "node_modules/ansi-regex": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", @@ -405,6 +429,11 @@ "node": ">=4" } }, + "node_modules/dayjs": { + "version": "1.11.10", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz", + "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==" + }, "node_modules/didyoumean": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", @@ -752,6 +781,14 @@ "mini-svg-data-uri": "^1.4.3" } }, + "node_modules/flowbite-datepicker": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/flowbite-datepicker/-/flowbite-datepicker-1.2.6.tgz", + "integrity": "sha512-UbU/xXs9HFiwWfL4M1vpwIo8EpS0NUQSOvYnp0Z9u3N118nU7lPFGoUOq7su9d0aOJy9FssXzx1SZwN8MXhE1g==", + "dependencies": { + "flowbite": "^2.0.0" + } + }, "node_modules/foreground-child": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", diff --git a/package.json b/package.json index 0aa0c5c..a66030d 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,10 @@ "dependencies": { "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.0", + "alpinejs": "^3.13.5", + "dayjs": "^1.11.10", "dotenv": "^10.0.0", - "flowbite": "^2.2.1" + "flowbite": "^2.2.1", + "flowbite-datepicker": "^1.2.6" } } diff --git a/partials/anfrage/default.htm b/partials/anfrage/default.htm index 4cc135e..b7bc1f9 100644 --- a/partials/anfrage/default.htm +++ b/partials/anfrage/default.htm @@ -1,4 +1,6 @@ -
+
+ +
@@ -8,7 +10,7 @@
- +
@@ -18,7 +20,7 @@
- +
@@ -61,6 +63,10 @@
+
+ Bitte beachte: Bei Veranstaltungen mit nicht volljährigen Veranstaltern (z.B. 18. Geburtstag) muss eine Person über 35 Jahre (z.B. Erziehungsberechtigte*r) durchgehend anwesend sein. +
+