2016-06-29 13:08:32 +00:00
|
|
|
{% extends "templates/web.html" %}
|
|
|
|
|
|
|
|
{% block script %}
|
2016-06-30 11:32:37 +00:00
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$("#login_btn").click(function() {
|
|
|
|
var me = this;
|
|
|
|
$(this).html("Logging In...").prop("disabled", true);
|
|
|
|
frappe.call({
|
|
|
|
"method": "login",
|
|
|
|
args: {
|
|
|
|
usr: "demo@erpnext.com",
|
|
|
|
pwd: "demo",
|
|
|
|
lead_email: $("#lead-email").val(),
|
|
|
|
},
|
|
|
|
callback: function(r) {
|
|
|
|
$(me).prop("disabled", false);
|
|
|
|
if(r.exc) {
|
|
|
|
alert("Error, please contact support@erpnext.com");
|
|
|
|
} else {
|
|
|
|
console.log("Logged In");
|
|
|
|
window.location.href = "desk";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
return false;
|
|
|
|
})
|
|
|
|
.prop("disabled", false);
|
|
|
|
})
|
|
|
|
|
|
|
|
</script>
|
2016-06-29 13:08:32 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block style %}
|
|
|
|
<style>
|
|
|
|
footer, .navbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.page-content {
|
|
|
|
right: 0%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ _("Login") }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block page_content %}
|
|
|
|
|
|
|
|
<!-- no-header -->
|
|
|
|
<div class="page-hero text-center">
|
2016-08-02 15:55:45 +00:00
|
|
|
<img src="/assets/erpnext/images/erp-icon.svg" style="max-width: 100px; max-height: 100px;">
|
2016-06-29 13:08:32 +00:00
|
|
|
<h1>ERPNext Demo</h1>
|
|
|
|
<p style="margin-top: 60px;">
|
|
|
|
<input id="lead-email" type="email"
|
2017-01-03 11:15:38 +00:00
|
|
|
class="form-control" placeholder="Your Email Address (optional)"
|
2016-06-29 13:08:32 +00:00
|
|
|
style="width: 75%; max-width: 400px; margin: auto;">
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<button type="submit" id="login_btn" class="btn btn-default">Launch Demo</button>
|
|
|
|
|
|
|
|
<hr style="margin: 60px 0px;">
|
|
|
|
<p class="text-muted small">Some functionality is disabled for the demo app. The demo data will be cleared regulary.
|
|
|
|
<br class="hidden-xs">
|
|
|
|
To start your free ERPNext account, <a href="https://erpnext.com/signup?plan=Free-Solo">click here</a></p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|