Skip to content

Commit 736610d

Browse files
committed
Add optional phone number to Hub contact forms
1 parent fc2267c commit 736610d

5 files changed

Lines changed: 51 additions & 3 deletions

File tree

i18n/de.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,10 @@
11171117
translation: "Nachname"
11181118
- id: book_demo_email
11191119
translation: "E-Mail-Adresse"
1120+
- id: book_demo_phone
1121+
translation: "Telefonnummer (optional)"
1122+
- id: book_demo_phone_placeholder
1123+
translation: "z.B. +49 123 4567890"
11201124
- id: book_demo_company
11211125
translation: "Unternehmen (optional)"
11221126
- id: book_demo_learn_about
@@ -1181,6 +1185,10 @@
11811185
translation: "Nachname"
11821186
- id: contact_sales_email
11831187
translation: "E-Mail-Adresse"
1188+
- id: contact_sales_phone
1189+
translation: "Telefonnummer (optional)"
1190+
- id: contact_sales_phone_placeholder
1191+
translation: "z.B. +49 123 4567890"
11841192
- id: contact_sales_website
11851193
translation: "Unternehmens-Website (optional)"
11861194
- id: contact_sales_topic
@@ -1227,6 +1235,10 @@
12271235
translation: "Nachname"
12281236
- id: partner_email
12291237
translation: "E-Mail-Adresse"
1238+
- id: partner_phone
1239+
translation: "Telefonnummer (optional)"
1240+
- id: partner_phone_placeholder
1241+
translation: "z.B. +49 123 4567890"
12301242
- id: partner_company
12311243
translation: "Unternehmen"
12321244
- id: partner_website

i18n/en.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,10 @@
11561156
translation: "Last Name"
11571157
- id: book_demo_email
11581158
translation: "Email Address"
1159+
- id: book_demo_phone
1160+
translation: "Phone Number (optional)"
1161+
- id: book_demo_phone_placeholder
1162+
translation: "e.g., +49 123 4567890"
11591163
- id: book_demo_company
11601164
translation: "Company (optional)"
11611165
- id: book_demo_learn_about
@@ -1220,6 +1224,10 @@
12201224
translation: "Last Name"
12211225
- id: contact_sales_email
12221226
translation: "Email Address"
1227+
- id: contact_sales_phone
1228+
translation: "Phone Number (optional)"
1229+
- id: contact_sales_phone_placeholder
1230+
translation: "e.g., +49 123 4567890"
12231231
- id: contact_sales_website
12241232
translation: "Company Website (optional)"
12251233
- id: contact_sales_topic
@@ -1266,6 +1274,10 @@
12661274
translation: "Last Name"
12671275
- id: partner_email
12681276
translation: "Email Address"
1277+
- id: partner_phone
1278+
translation: "Phone Number (optional)"
1279+
- id: partner_phone_placeholder
1280+
translation: "e.g., +49 123 4567890"
12691281
- id: partner_company
12701282
translation: "Company"
12711283
- id: partner_website

layouts/become-a-partner/single.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{ partial "altcha-css.html" . }}
33
{{ end }}
44
{{ define "main" }}
5-
<section x-data="{feedbackData: {success: false, inProgress: false, errorMessage: ''}, submitData: {firstName: '', lastName: '', email: '', company: '', website: '', partnershipType: '', message: '', captcha: null, acceptNewsletter: false, formType: 'become-partner'}, acceptTerms: false, hubContact: null, captchaState: null}" x-init="hubContact = new HubContact($refs.form, feedbackData, submitData)" class="container py-12">
5+
<section x-data="{feedbackData: {success: false, inProgress: false, errorMessage: ''}, submitData: {firstName: '', lastName: '', email: '', phone: '', company: '', website: '', partnershipType: '', message: '', captcha: null, acceptNewsletter: false, formType: 'become-partner'}, acceptTerms: false, hubContact: null, captchaState: null}" x-init="hubContact = new HubContact($refs.form, feedbackData, submitData)" class="container py-12">
66
<header class="mb-6">
77
<h1 class="font-h1 mb-8">{{ .Title }}</h1>
88
<p class="lead">{{ .Description }}</p>
@@ -38,6 +38,14 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
3838
<input type="email" id="email" name="email" x-model="submitData.email" class="block input-box w-full" required aria-required="true" @blur="$el.classList.add('show-invalid')">
3939
</div>
4040

41+
<!-- Phone (Optional) -->
42+
<div class="col-span-2">
43+
<label for="phone" class="block text-sm font-medium text-gray-700 mb-2">
44+
{{ i18n "partner_phone" }}
45+
</label>
46+
<input type="tel" id="phone" name="phone" x-model="submitData.phone" class="block input-box w-full" maxlength="30" pattern="\+?[\d\s]{6,}" placeholder="{{ i18n "partner_phone_placeholder" }}">
47+
</div>
48+
4149
<!-- Company -->
4250
<div class="col-span-2">
4351
<label for="company" class="block text-sm font-medium text-gray-700 mb-2">

layouts/book-a-demo/single.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{ partial "altcha-css.html" . }}
33
{{ end }}
44
{{ define "main" }}
5-
<section x-data="{feedbackData: {success: false, inProgress: false, errorMessage: ''}, submitData: {firstName: '', lastName: '', email: '', company: '', interests: [], attendees: [], message: '', captcha: null, acceptNewsletter: false, formType: 'book-demo'}, acceptTerms: false, hubContact: null, captchaState: null}" x-init="hubContact = new HubContact($refs.form, feedbackData, submitData)" class="container py-12">
5+
<section x-data="{feedbackData: {success: false, inProgress: false, errorMessage: ''}, submitData: {firstName: '', lastName: '', email: '', phone: '', company: '', interests: [], attendees: [], message: '', captcha: null, acceptNewsletter: false, formType: 'book-demo'}, acceptTerms: false, hubContact: null, captchaState: null}" x-init="hubContact = new HubContact($refs.form, feedbackData, submitData)" class="container py-12">
66
<header class="mb-6">
77
<h1 class="font-h1 mb-8">{{ .Title }}</h1>
88
<p class="lead">{{ .Description }}</p>
@@ -38,6 +38,14 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
3838
<input type="email" id="email" name="email" x-model="submitData.email" class="block input-box w-full" required aria-required="true" @blur="$el.classList.add('show-invalid')">
3939
</div>
4040

41+
<!-- Phone (Optional) -->
42+
<div class="col-span-2">
43+
<label for="phone" class="block text-sm font-medium text-gray-700 mb-2">
44+
{{ i18n "book_demo_phone" }}
45+
</label>
46+
<input type="tel" id="phone" name="phone" x-model="submitData.phone" class="block input-box w-full" maxlength="30" pattern="\+?[\d\s]{6,}" placeholder="{{ i18n "book_demo_phone_placeholder" }}">
47+
</div>
48+
4149
<!-- Company (Optional) -->
4250
<div class="col-span-2">
4351
<label for="company" class="block text-sm font-medium text-gray-700 mb-2">

layouts/contact-sales/single.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{ partial "altcha-css.html" . }}
33
{{ end }}
44
{{ define "main" }}
5-
<section x-data="{feedbackData: {success: false, inProgress: false, errorMessage: ''}, submitData: {firstName: '', lastName: '', email: '', website: '', topic: '', message: '', captcha: null, acceptNewsletter: false, formType: 'contact-sales'}, acceptTerms: false, hubContact: null, captchaState: null}" x-init="hubContact = new HubContact($refs.form, feedbackData, submitData)" class="container py-12">
5+
<section x-data="{feedbackData: {success: false, inProgress: false, errorMessage: ''}, submitData: {firstName: '', lastName: '', email: '', phone: '', website: '', topic: '', message: '', captcha: null, acceptNewsletter: false, formType: 'contact-sales'}, acceptTerms: false, hubContact: null, captchaState: null}" x-init="hubContact = new HubContact($refs.form, feedbackData, submitData)" class="container py-12">
66
<header class="mb-6">
77
<h1 class="font-h1 mb-8">{{ .Title }}</h1>
88
<p class="lead">{{ .Description }}</p>
@@ -38,6 +38,14 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
3838
<input type="email" id="email" name="email" x-model="submitData.email" class="block input-box w-full" required aria-required="true" @blur="$el.classList.add('show-invalid')">
3939
</div>
4040

41+
<!-- Phone (Optional) -->
42+
<div class="col-span-2">
43+
<label for="phone" class="block text-sm font-medium text-gray-700 mb-2">
44+
{{ i18n "contact_sales_phone" }}
45+
</label>
46+
<input type="tel" id="phone" name="phone" x-model="submitData.phone" class="block input-box w-full" maxlength="30" pattern="\+?[\d\s]{6,}" placeholder="{{ i18n "contact_sales_phone_placeholder" }}">
47+
</div>
48+
4149
<!-- Company Website (Optional) -->
4250
<div class="col-span-2">
4351
<label for="website" class="block text-sm font-medium text-gray-700 mb-2">

0 commit comments

Comments
 (0)