From 54ea1cd8e5f3510165148b55ea563e044b4560e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Viricel?= Date: Wed, 28 Oct 2020 11:51:57 +0100 Subject: [PATCH] WL-11 [Test] - Netlify form implementation + Install Axios --- components/Contact.vue | 43 +++++++++++++++++++++++++++++++++++++++++- package-lock.json | 13 +++++++++++++ package.json | 1 + static/Contact.html | 3 +++ 4 files changed, 59 insertions(+), 1 deletion(-) diff --git a/components/Contact.vue b/components/Contact.vue index a708045..d062093 100644 --- a/components/Contact.vue +++ b/components/Contact.vue @@ -7,6 +7,7 @@ method="POST" data-netlify="true" data-netlify-honeypot="bot-field" + @submit.prevent="handleSubmit" >
@@ -21,6 +22,8 @@ class="appearance-none block w-full bg-gray-100 placeholder-gray-700 text-gray-700 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white" id="grid-first-name" type="text" + name="fullname" + v-model="form.fullname" placeholder="Jane Doe" />
@@ -35,6 +38,8 @@ class="appearance-none block w-full bg-gray-100 placeholder-gray-700 text-gray-700 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white" id="grid-email" type="text" + name="email" + v-model="form.email" placeholder="janedoe@example.com" /> @@ -43,6 +48,8 @@