From cda364b1903742bd2c8ed65bffbb36394c9ea0b0 Mon Sep 17 00:00:00 2001 From: rodrigoalcarazdelaosa Date: Sat, 24 Jul 2021 18:32:02 +0200 Subject: [PATCH] feat: add attachments and success_url options to contact form (#2394) Scope: Netlify forms --- wowchemy/i18n/ca.yaml | 8 +++++--- wowchemy/i18n/en.yaml | 3 +++ wowchemy/i18n/es.yaml | 2 ++ wowchemy/layouts/partials/widgets/contact.html | 8 +++++++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/wowchemy/i18n/ca.yaml b/wowchemy/i18n/ca.yaml index 832d4f66..5b3e5362 100644 --- a/wowchemy/i18n/ca.yaml +++ b/wowchemy/i18n/ca.yaml @@ -75,13 +75,15 @@ - id: more_publications translation: Més publicacions - id: contact_name - translation: Name + translation: Nom - id: contact_email translation: Email - id: contact_message - translation: Message + translation: Missatge +- id: contact_attachment + translation: Adjunt - id: contact_send - translation: Send + translation: Enviar - id: book_appointment translation: Book an appointment - id: abstract diff --git a/wowchemy/i18n/en.yaml b/wowchemy/i18n/en.yaml index 601916dc..cab3cb70 100644 --- a/wowchemy/i18n/en.yaml +++ b/wowchemy/i18n/en.yaml @@ -138,6 +138,9 @@ - id: contact_message translation: Message + +- id: contact_attachment + translation: Attach file - id: contact_send translation: Send diff --git a/wowchemy/i18n/es.yaml b/wowchemy/i18n/es.yaml index c86735f4..c878b800 100644 --- a/wowchemy/i18n/es.yaml +++ b/wowchemy/i18n/es.yaml @@ -80,6 +80,8 @@ translation: Email - id: contact_message translation: Mensaje +- id: contact_attachment + translation: Adjunto - id: contact_send translation: Enviar - id: book_appointment diff --git a/wowchemy/layouts/partials/widgets/contact.html b/wowchemy/layouts/partials/widgets/contact.html index 49144e7f..0e5d0883 100644 --- a/wowchemy/layouts/partials/widgets/contact.html +++ b/wowchemy/layouts/partials/widgets/contact.html @@ -38,7 +38,7 @@ {{ end }}
-
+
@@ -51,6 +51,12 @@
+ {{ if $st.Params.content.form.netlify.attachments }} +
+ + +
+ {{ end }}