[email] [website] footer cleanup
This commit is contained in:
parent
f29a618b69
commit
822fd7747a
6
erpnext/patches/v5_0/set_footer_address.py
Normal file
6
erpnext/patches/v5_0/set_footer_address.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
ss = frappe.get_doc("System Settings", "System Settings")
|
||||||
|
ss.email_footer_address = frappe.db.get_default("company")
|
||||||
|
ss.save()
|
BIN
erpnext/public/images/erpnext-footer.png
Normal file
BIN
erpnext/public/images/erpnext-footer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
42
erpnext/templates/includes/footer/footer_extension.html
Normal file
42
erpnext/templates/includes/footer/footer_extension.html
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{% if not hide_footer_signup %}
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6 col-sm-offset-3 text-center" style="margin-top: 15px;">
|
||||||
|
<input class="form-control" type="text" id="footer-subscribe-email"
|
||||||
|
style="display: inline-block; max-width: 50%; margin-right: 10px;"
|
||||||
|
placeholder="{{ _('Your email address') }}...">
|
||||||
|
<button class="btn btn-default btn-sm" type="button"
|
||||||
|
id="footer-subscribe-button">{{ _("Get Updates") }}</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="text-center text-muted small" style="padding: 30px;">
|
||||||
|
<a href="https://erpnext.com?source=website_footer" target="_blank" class="text-extra-muted">
|
||||||
|
Powered by ERPNext</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$("#footer-subscribe-button").click(function() {
|
||||||
|
|
||||||
|
if($("#footer-subscribe-email").val()) {
|
||||||
|
$("#footer-subscribe-email").attr('disabled', true);
|
||||||
|
$("#footer-subscribe-button").html("Sending...")
|
||||||
|
.attr("disabled", true);
|
||||||
|
erpnext.subscribe_to_newsletter({
|
||||||
|
email: $("#footer-subscribe-email").val(),
|
||||||
|
callback: function(r) {
|
||||||
|
if(!r.exc) {
|
||||||
|
$("#footer-subscribe-button").html(__("Added"))
|
||||||
|
.attr("disabled", true);
|
||||||
|
} else {
|
||||||
|
$("#footer-subscribe-button").html(__("Error: Not a valid id?"))
|
||||||
|
.addClass("btn-danger").attr("disabled", false);
|
||||||
|
$("#footer-subscribe-email").val("").attr('disabled', false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
frappe.msgprint(frappe._("Please enter email address"))
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
{% endif %}
|
1
erpnext/templates/includes/footer/footer_powered.html
Normal file
1
erpnext/templates/includes/footer/footer_powered.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!-- blank -->
|
Loading…
x
Reference in New Issue
Block a user