[email] [website] footer cleanup
diff --git a/erpnext/patches/v5_0/set_footer_address.py b/erpnext/patches/v5_0/set_footer_address.py
new file mode 100644
index 0000000..5eb5624
--- /dev/null
+++ b/erpnext/patches/v5_0/set_footer_address.py
@@ -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()
diff --git a/erpnext/public/images/erpnext-footer.png b/erpnext/public/images/erpnext-footer.png
new file mode 100644
index 0000000..4b36fa1
--- /dev/null
+++ b/erpnext/public/images/erpnext-footer.png
Binary files differ
diff --git a/erpnext/templates/includes/footer/footer_extension.html b/erpnext/templates/includes/footer/footer_extension.html
new file mode 100644
index 0000000..400043e
--- /dev/null
+++ b/erpnext/templates/includes/footer/footer_extension.html
@@ -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 %}
diff --git a/erpnext/templates/includes/footer/footer_powered.html b/erpnext/templates/includes/footer/footer_powered.html
new file mode 100644
index 0000000..c44c342
--- /dev/null
+++ b/erpnext/templates/includes/footer/footer_powered.html
@@ -0,0 +1 @@
+<!-- blank -->