blob: 10743b82319a877545e4b145f1e802f85a2fbb91 [file] [log] [blame]
Rushabh Mehtadc8067e2016-06-29 18:38:32 +05301{% extends "templates/web.html" %}
2
3{% block script %}
Rushabh Mehta5f5f0be2016-06-30 17:02:37 +05304<script>
5$(document).ready(function() {
6 $("#login_btn").click(function() {
7 var me = this;
8 $(this).html("Logging In...").prop("disabled", true);
9 frappe.call({
10 "method": "login",
11 args: {
12 usr: "demo@erpnext.com",
13 pwd: "demo",
14 lead_email: $("#lead-email").val(),
15 },
16 callback: function(r) {
17 $(me).prop("disabled", false);
18 if(r.exc) {
19 alert("Error, please contact support@erpnext.com");
20 } else {
21 console.log("Logged In");
22 window.location.href = "desk";
23 }
24 }
25 })
26 return false;
27 })
28 .prop("disabled", false);
29})
30
31</script>
Rushabh Mehtadc8067e2016-06-29 18:38:32 +053032{% endblock %}
33
34{% block style %}
35<style>
36 footer, .navbar {
37 display: none;
38 }
39 .page-content {
40 right: 0%;
41 width: 100%;
42 }
43</style>
44{% endblock %}
45
46{% block title %}
Rushabh Mehta93656412017-04-06 18:24:34 +053047{{ _("ERPNext Demo") }}
Rushabh Mehtadc8067e2016-06-29 18:38:32 +053048{% endblock %}
49
50{% block page_content %}
Rushabh Mehtad40e6612017-01-10 14:46:45 +053051<div class='page-card'>
Rushabh Mehtadc8067e2016-06-29 18:38:32 +053052
Rushabh Mehtad40e6612017-01-10 14:46:45 +053053 <div class='page-card-head'>
54 <span class='indicator blue'>
55 {{ _("ERPNext Demo") }}</span>
56 </div>
57 <!-- <img src="/assets/erpnext/images/erp-icon.svg" style="max-width: 40px; max-height: 40px;"> -->
58 <p>Some functionality is disabled for the demo and the data will be cleared regulary.</p>
59 <div><button type="submit" id="login_btn" class="btn btn-primary btn-sm">Launch Demo</button></div>
Rushabh Mehtadc8067e2016-06-29 18:38:32 +053060</div>
61
Rushabh Mehtad40e6612017-01-10 14:46:45 +053062
Saurabh21833412017-09-04 10:15:24 +053063<p class='text-muted text-center small' style='margin-top: -20px;'><a href="https://erpnext.com/pricing">Start a free 30-day trial </a>
Rushabh Mehtad40e6612017-01-10 14:46:45 +053064</p>
65<style>
66html, body {
67 background-color: #f5f7fa;
68}
69</style>
Rushabh Mehtadc8067e2016-06-29 18:38:32 +053070{% endblock %}