Back to Frontend

EmailSignUpFooter.Scala

common/app/views/fragments/email/signup/footer/emailSignUpFooter.scala.html

latest985 B
Original Source

@(listName: String)(implicit request: RequestHeader) @import conf.switches.Switches.EmailSignupRecaptcha @import common.LinkTo @formId = @{"footer-email-sub-form"} @inputId = @{"footer-email-sub-input" } @dummyInputId = @{"footer-email-sub-input-name" } @wrapperClass = @{ "email-sub email-sub--footer" } @formClass = @{ "email-sub__form email-sub__form--footer" } @headerClass = @{"email-sub__header email-sub__header--footer" } @formHeading = @{"Sign up for the Guardian Headlines email"} @formDescription = @{"All the day's headlines and highlights from the Guardian, direct to you every morning"} @form = {

@helper.CSRF.formField

@fragments.inlineSvg("envelope", "icon", Seq("label__icon"))Email address @fragments.inlineSvg("envelope", "icon", Seq("submit-input__icon"))Sign up @if(EmailSignupRecaptcha.isSwitchedOn) { @fragments.email.signup.recaptchaContainer() @fragments.email.signup.recaptchaTerms() } }

@Html(formHeading)

@Html(formDescription)

@form