From 9f2e93220776c40b05852d2c94fdb2cfb897a044 Mon Sep 17 00:00:00 2001 From: Lucien Date: Wed, 18 Mar 2020 11:54:41 +0100 Subject: [PATCH] add form for newsletter COVID-19 --- app/views/landings/_landing.haml | 2 +- app/views/landings/show.haml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/landings/_landing.haml b/app/views/landings/_landing.haml index ad83e6daa..b88f03b6c 100644 --- a/app/views/landings/_landing.haml +++ b/app/views/landings/_landing.haml @@ -1,5 +1,5 @@ .card{ class: (landing.emphasis.to_bool ? 'emphasis' : '') } - - path = landing_path({ slug: landing.slug, anchor: 'section-exemples' }.merge(tracking_params)) + - path = landing_path({ slug: landing.slug, anchor: 'section-newsletter-covid' }.merge(tracking_params)) = link_to path do .card__content %h3.landing-title= simple_format(landing.home_title, {}, wrapper_tag: 'span') diff --git a/app/views/landings/show.haml b/app/views/landings/show.haml index 4e68914e8..0ec852cd2 100644 --- a/app/views/landings/show.haml +++ b/app/views/landings/show.haml @@ -10,6 +10,10 @@ .container.text-center = render 'landing_details', landing: @landing + %section.section-white#section-newsletter-covid + .container.container-medium + %iframe.mj-w-res-iframe{ :frameborder => "0", :marginheight => "0", :marginwidth => "0", :scrolling => "no", :src => "https://app.mailjet.com/widget/iframe/2ogL/pTA", :width => "100%" } + %section.section.section-grey#section-exemples .container.container-medium = render 'landing_topics/landing_topics', landing: @landing, landing_topics: @landing_topics, tracking_params: @tracking_params @@ -22,3 +26,5 @@ .container.container-medium - cache('ministats', expires_in: 1.hour) do = render 'stats/ministats' + +%script{ :src => "https://app.mailjet.com/statics/js/iframeResizer.min.js", :type => "text/javascript" }