[website] [minor] moving to framework
diff --git a/config.json b/config.json
index 0ce1c0c..3f58511 100644
--- a/config.json
+++ b/config.json
@@ -1,5 +1,6 @@
 {
 	"app_name": "ERPNext",
+	"base_template": "app/portal/templates/base.html",
 	"modules": {
 		"Selling": {
 			"link": "selling-home",
diff --git a/portal/templates/base.html b/portal/templates/base.html
index 57388d6..701d86c 100644
--- a/portal/templates/base.html
+++ b/portal/templates/base.html
@@ -16,4 +16,6 @@
 	{%- endif %}
 	<a href="server.py?cmd=web_logout" title="Sign Out"><i class="icon-signout"></i></a>
 </div>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
+
+{% block footer %}{% include "app/portal/templates/includes/footer.html" %}{% endblock %}
\ No newline at end of file
diff --git a/portal/templates/includes/footer.html b/portal/templates/includes/footer.html
new file mode 100644
index 0000000..1e8dd76
--- /dev/null
+++ b/portal/templates/includes/footer.html
@@ -0,0 +1,44 @@
+{% extends "lib/website/templates/includes/footer.html" %}
+
+{% block powered %}
+<p style="float: right; clear: right;">
+	<a style="font-size: 90%; color: #888;" href="http://erpnext.org">ERPNext Powered</a>
+</p>
+{% endblock %}
+
+{% block extension %}
+<br>
+<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>
+	</span>
+</div>
+<br>
+<script>
+	$("#footer-subscribe-button").click(function() {
+
+		$("#footer-subscribe-email").attr('disabled', true);
+		$("#footer-subscribe-button").html("Sending...")
+			.attr("disabled", true);
+
+		if($("#footer-subscribe-email").val()) {
+			erpnext.send_message({
+				subject:"Subscribe me",
+				sender: $("#footer-subscribe-email").val(),
+				message: "Subscribe to newsletter (via website footer).",
+				callback: function(r) {
+					if(!r.exc) {
+						$("#footer-subscribe-button").html("Thank You :)")
+							.addClass("btn-success").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);
+					}
+				}
+			});
+		}
+	});
+</script>
+{% endblock %}