implemented newsletter subscribe feedback

This commit is contained in:
Ulf Gebhardt 2019-09-23 12:02:07 +02:00
parent 2786c7ea7f
commit 70d115567c
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
3 changed files with 8 additions and 2 deletions

View File

@ -362,6 +362,9 @@ strong {
margin-top: $distance_small;
background-color: $color_orange;
}
#footer-nl-success{
margin-top: $distance_medium;
}
a {
color: $color_white;
display: block;

View File

@ -72,8 +72,8 @@ $(document).ready(function() {
if(!data.status){
alert("Das Eintragen in den Newsletter hat leider nicht funktioniert. Bitte versuche es später noch einmal. Danke.");
} else {
$('#confirm').show();
$('#formular').hide();
$('#footer-nl-success').removeClass('d-none');
$('#footer-nl').addClass('d-none');
}
},
error: function(){

View File

@ -87,6 +87,9 @@
<input id="footer-nl-email" class="form-control" name="email" type="text" placeholder="${footer_newsletter_email_placeholder}"/>
<input id="footer-nl-subscribe" class="btn" name="submit" type="submit" value="${footer_newsletter_email_value}"/>
</div>
<div id="footer-nl-success" class="d-none">
${footer_subscribe_success}
</div>
</div>
<div class="col-lg-3">
<h3>${footer_legal_heading}</h3>