From 72ed48cda9cc0a820c3c500e59d53299dd2e5dd9 Mon Sep 17 00:00:00 2001 From: kalwalt Date: Mon, 30 Nov 2020 18:57:25 +0100 Subject: [PATCH 1/2] reverting to v1.1.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b432e566..cd7d7706 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-starter-i18n-bulma", "description": "Gatsby example site using i18n and bulma for CSS", - "version": "v1.1.3", + "version": "v1.1.5", "author": "Walter Perdan (www.kalwaltart.com)", "dependencies": { "@babel/parser": "^7.9.4", From 610cd30d7ccba1e06886fed7f4065cf33e5aa5e1 Mon Sep 17 00:00:00 2001 From: walter perdan Date: Mon, 30 Nov 2020 20:55:10 +0100 Subject: [PATCH 2/2] reverting to the old contacts template --- src/data/messages/en.js | 4 +- src/data/messages/it.js | 4 +- src/templates/contacts.js | 135 ++++++++++++++++++++++++++++++++++++-- 3 files changed, 134 insertions(+), 9 deletions(-) diff --git a/src/data/messages/en.js b/src/data/messages/en.js index 1aa2eea8..42bdad82 100644 --- a/src/data/messages/en.js +++ b/src/data/messages/en.js @@ -44,8 +44,8 @@ module.exports = { 'contact': 'Contacts', 'contact.infos': 'Contact informations', 'contact.fill-the-form': 'Fill the form to send a message', - 'contact.firstName': 'Name', - 'contact.lastName': 'Surname', + 'contact.name': 'Name', + 'contact.surname': 'Surname', 'contact.email': 'Email', 'contact.subject': 'Subject', 'contact.gender.male': 'Male', diff --git a/src/data/messages/it.js b/src/data/messages/it.js index a9696246..7e0a8a6a 100644 --- a/src/data/messages/it.js +++ b/src/data/messages/it.js @@ -44,8 +44,8 @@ module.exports = { 'contact': 'Contatti', 'contact.infos': 'Informazioni di contatto', 'contact.fill-the-form': 'Riempi la scheda per inviare un messaggio', - 'contact.firstName': 'Nome', - 'contact.lastName': 'Cognome', + 'contact.name': 'Nome', + 'contact.surname': 'Cognome', 'contact.email': 'Email', 'contact.subject': 'Soggetto', 'contact.gender.male': 'Maschio', diff --git a/src/templates/contacts.js b/src/templates/contacts.js index 05c21569..847b0f0d 100644 --- a/src/templates/contacts.js +++ b/src/templates/contacts.js @@ -1,15 +1,15 @@ import React from "react" import * as PropTypes from "prop-types" import { graphql } from 'gatsby' +import { navigate } from "gatsby-link"; import Layout from "../components/Layout" import SEO from '../components/SEO/SEO' import Content, { HTMLContent } from "../components/Content" import ContactDetails from "../components/ContactDetails" import OsmMap from '../components/OsmMap' import FollowUs from '../components/FollowUs' -import ContactForm from '../components/ContactForm/ContactForm' -import { getCurrentLangKey } from 'ptz-i18n' -import { FormattedMessage } from 'react-intl' +import { getCurrentLangKey } from 'ptz-i18n'; +import { FormattedMessage } from 'react-intl'; function encode(data) { @@ -48,7 +48,108 @@ const ContactPageTemplate = ({ />

- +
+ {/* The `form-name` hidden field is required to support form submissions without JavaScript */} + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + +
+
+
+ +
+
+ +
+