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",
|
2018-10-10 08:55:53 +00:00
|
|
|
pwd: "Demo1234567!!!",
|
2016-06-30 11:32:37 +00:00
|
|
|
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%;
|
|
|
|
}
|
2019-05-04 05:39:19 +00:00
|
|
|
{% include "templates/styles/card_style.css" %}
|
|
|
|
header, footer {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
html, body {
|
|
|
|
background-color: #f5f7fa;
|
|
|
|
}
|
2016-06-29 13:08:32 +00:00
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block title %}
|
2017-04-06 12:54:34 +00:00
|
|
|
{{ _("ERPNext Demo") }}
|
2016-06-29 13:08:32 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block page_content %}
|
2017-01-10 09:16:45 +00:00
|
|
|
<div class='page-card'>
|
2016-06-29 13:08:32 +00:00
|
|
|
|
2017-01-10 09:16:45 +00:00
|
|
|
<div class='page-card-head'>
|
|
|
|
<span class='indicator blue'>
|
|
|
|
{{ _("ERPNext Demo") }}</span>
|
|
|
|
</div>
|
|
|
|
<!-- <img src="/assets/erpnext/images/erp-icon.svg" style="max-width: 40px; max-height: 40px;"> -->
|
|
|
|
<p>Some functionality is disabled for the demo and the data will be cleared regulary.</p>
|
|
|
|
<div><button type="submit" id="login_btn" class="btn btn-primary btn-sm">Launch Demo</button></div>
|
2016-06-29 13:08:32 +00:00
|
|
|
</div>
|
|
|
|
|
2017-01-10 09:16:45 +00:00
|
|
|
|
2019-04-19 06:52:30 +00:00
|
|
|
<p class='text-muted text-center small' style='margin-top: -20px;'><a href="https://erpnext.com/pricing">Start a free 14-day trial </a>
|
2017-01-10 09:16:45 +00:00
|
|
|
</p>
|
|
|
|
<style>
|
|
|
|
html, body {
|
|
|
|
background-color: #f5f7fa;
|
|
|
|
}
|
|
|
|
</style>
|
2016-06-29 13:08:32 +00:00
|
|
|
{% endblock %}
|