| {% extends "lib/website/templates/includes/footer.html" %} |
| {% block powered %}<a style="font-size: 90%; color: #aaa;" href="http://erpnext.org">ERPNext Powered</a>{% endblock %} |
| <div class="input-group col-md-6 col-md-offset-3"> |
| <input class="form-control" type="text" id="footer-subscribe-email" placeholder="Your email address..."> |
| <span class="input-group-btn"> |
| <button class="btn btn-default" type="button" id="footer-subscribe-button">Stay Updated</button> |
| $("#footer-subscribe-button").click(function() { |
| $("#footer-subscribe-email").attr('disabled', true); |
| $("#footer-subscribe-button").html("Sending...") |
| if($("#footer-subscribe-email").val()) { |
| sender: $("#footer-subscribe-email").val(), |
| message: "Subscribe to newsletter (via website footer).", |
| $("#footer-subscribe-button").html("Thank You :)") |
| .addClass("btn-success").attr("disabled", true); |
| $("#footer-subscribe-button").html("Error :( Not a valid id?") |
| .addClass("btn-danger").attr("disabled", false); |
| $("#footer-subscribe-email").val("").attr('disabled', false); |