diff --git a/assets/js/webinar.js b/assets/js/webinar.js index 8e8e8352e..ee1ec6b20 100644 --- a/assets/js/webinar.js +++ b/assets/js/webinar.js @@ -5,6 +5,7 @@ class Webinar { constructor(webinarId, lang, languageNames, data) { $.getJSON(`${API_BASE_URL}/connect/contact/webinar/${webinarId}`).done(d => { data.name = d.name; + data.status = d.status; data.language = languageNames[d.language]; data.dateStart = d.dateStart.replace(' ', 'T') + 'Z'; data.lead = d.metadata.lead[lang]; diff --git a/i18n/de.yaml b/i18n/de.yaml index 8993756bf..11ade0766 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -1367,6 +1367,12 @@ translation: "Deutsch" - id: webinar_accept_privacy translation: "Ich akzeptiere die Datenschutzerklärung." +- id: webinar_none_title + translation: "Aktuell ist kein Webinar geplant" +- id: webinar_none_lead + translation: "Derzeit ist kein Webinar geplant, aber wir kündigen regelmäßig neue Termine an." +- id: webinar_none_newsletter_instruction + translation: "Abonniere unseren Hub-Newsletter und wir informieren dich, sobald das nächste Webinar feststeht." # Sale - id: sale_off diff --git a/i18n/en.yaml b/i18n/en.yaml index 9a4ac4b63..7dd8b483d 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1406,6 +1406,12 @@ translation: "German" - id: webinar_accept_privacy translation: "I accept the Privacy Policy." +- id: webinar_none_title + translation: "No Webinar Scheduled Right Now" +- id: webinar_none_lead + translation: "There's no webinar planned at the moment, but we announce new sessions regularly." +- id: webinar_none_newsletter_instruction + translation: "Subscribe to our Hub mailing list and we'll let you know as soon as the next webinar is scheduled." # Sale - id: sale_off diff --git a/layouts/webinar/single.html b/layouts/webinar/single.html index d1cfdfe57..75f519b28 100644 --- a/layouts/webinar/single.html +++ b/layouts/webinar/single.html @@ -3,162 +3,194 @@ {{ end }} {{ define "main" }} {{- $lang := .Site.Language.Lang }} -
-
-

-

-
- -
-
- -
-
-
-

{{ i18n "webinar_form_title" }}

-

{{ i18n "webinar_form_subtitle" }}

-
-
- -
- - -
+
+ +
+
+

+

+
- -
- - + +
+ +
+
+
+

{{ i18n "webinar_form_title" }}

+

{{ i18n "webinar_form_subtitle" }}

+
+ +
+ + +
- -
- - -
+ +
+ + +
- -
- - -
+ +
+ + +
-
- -

- {{ partial "checkbox.html" (dict "context" . "alpineVariable" "acceptTerms" "label" (i18n "webinar_accept_privacy" | safeHTML)) }} -

+ +
+ + +
- -

- {{ partial "checkbox.html" (dict "context" . "alpineVariable" "submitData.acceptNewsletter" "label" (i18n "accept_hub_newsletter_optional")) }} -

-
+
+ +

+ {{ partial "checkbox.html" (dict "context" . "alpineVariable" "acceptTerms" "label" (i18n "webinar_accept_privacy" | safeHTML)) }} +

+ + +

+ {{ partial "checkbox.html" (dict "context" . "alpineVariable" "submitData.acceptNewsletter" "label" (i18n "accept_hub_newsletter_optional")) }} +

+
-
-

- - {{ $challengeUrl := printf "%s/connect/contact/challenge" .Site.Params.apiBaseUrl }} - {{ partial "captcha.html" (dict "challengeUrl" $challengeUrl "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }} +
+

+ + {{ $challengeUrl := printf "%s/connect/contact/challenge" .Site.Params.apiBaseUrl }} + {{ partial "captcha.html" (dict "challengeUrl" $challengeUrl "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }} +
-
-
+
- - -
+
+ +
+ + +
+
+

{{ i18n "webinar_none_title" }}

+

{{ i18n "webinar_none_lead" }}

+
+ +
+

{{ i18n "webinar_none_newsletter_instruction" }}

+
+ + -
-
- -

- {{ i18n "webinar_success_title" }} -

-

- {{ i18n "webinar_success_message" }} -

-

- - {{ i18n "webinar_success_inbox_hint" }} -

+ {{ $challengeUrl := printf "%s/connect/newsletter/challenge" .Site.Params.apiBaseUrl }} + {{ partial "captcha.html" (dict "challengeUrl" $challengeUrl "captchaPayload" "data.captcha" "captchaState" "captchaState") }}
-
- -
+

{{ partial "checkbox.html" (dict "context" . "alpineVariable" "data.acceptTerms" "label" (i18n "accept_hub_newsletter_privacy" | safeHTML)) }}

+

+ + +
+

{{ ":love_letter:" | emojify }} {{ i18n "hub_newsletter_success" . }}

+
+ + {{ end }} {{ define "script" }} {{ if hugo.IsDevelopment }} {{ $apiFormJs := resources.Get "js/apiform.js" }} + {{ $newsletterJs := resources.Get "js/newsletter.js" }} + {{ $webinarJs := resources.Get "js/webinar.js" }} {{ $altchaJs := resources.Get "js/altcha/altcha.js" }} @@ -168,6 +200,8 @@

{{ else }} {{ $apiFormJs := resources.Get "js/apiform.js" | minify | fingerprint }} + {{ $newsletterJs := resources.Get "js/newsletter.js" | minify | fingerprint }} + {{ $webinarJs := resources.Get "js/webinar.js" | minify | fingerprint }} {{ $altchaJs := resources.Get "js/altcha/altcha.js" }}