Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Applications
Free The Tree
Commits
fa61762a
Commit
fa61762a
authored
Sep 23, 2020
by
Maxime
Browse files
bugfix: display successful email sent
parent
6def81aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
united4earth/templates/united4earth/blocs/email-eo.html
View file @
fa61762a
...
...
@@ -201,7 +201,7 @@ setTimeout(function(){
setTimeout
(
function
(){
//If we want to have field for newsletter in contact EO email
//then uncomment below
//
newsletterAutoFormFill();
newsletterAutoFormFill
();
},
1500
)
},
500
)
});
...
...
@@ -265,6 +265,7 @@ function GetSearchValue(){
SCRIPT TO DISPLAY CONTENT AFTER SUBMITTING EMAIL
====================================================*/
function
ContentAfterRepresentativeEmail
(){
console
.
log
(
"
about to show content
"
);
document
.
querySelectorAll
(
'
#contactEmailContent
'
)[
0
].
style
.
display
=
'
none
'
;
document
.
querySelectorAll
(
'
.twitterBlock
'
)[
0
].
style
.
display
=
'
none
'
;
document
.
querySelectorAll
(
'
#contactTwitterContent
'
)[
0
].
style
.
display
=
'
block
'
;
...
...
@@ -336,6 +337,7 @@ Makes form below bug & not show
fields=
"step-2-content(step-2,row-info(firstname, lastname),step-2-info,
userEmail,email-notice),
newsletter(newsLetterSignUp),
row-email(
step-3,
notice,
...
...
@@ -401,6 +403,13 @@ Makes form below bug & not show
value-email-notice=
"Cette adresse sera utilisée pour envoyer l'email et permettre à l'élu.e de vous répondre."
widget-newsLetterSignUp =
"sib-form-placeholder-dropdown"
label-newsLetterSignUp=
"Voulez vous recevoir des nouvelles de cette campagne ?"
class-newsLetterSignUp=
"newsLetterSignUp"
child-newsLetterSignUp=
"newsLetterOptions"
range-newsLetterSignUp=
"{{request.scheme}}://{{ request.META.HTTP_HOST }}/api/informnewsletteroptions/"
submit-button=
"Envoyer"
>
...
...
united4earth/templates/united4earth/home.html
View file @
fa61762a
...
...
@@ -661,7 +661,7 @@ Le : <span id="currentDate"></span>
CheckMandatoryField
(
"
input[name=lastname]
"
,
"
Nom
"
);
CheckMandatoryField
(
"
input[name=userEmail]
"
,
"
Email
"
);
//uncomment bellow to make newsletter mandatory
//
CheckMandatoryField("select[name=newsLetterSignUp]","Newsletter");
CheckMandatoryField
(
"
select[name=newsLetterSignUp]
"
,
"
Newsletter
"
);
CheckMandatoryField
(
"
input[name=electedEmails]
"
,
"
Adresse de vos élu.e.s
"
);
CheckEmailContentChange
();
CheckEmailFormat
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment