Rushabh Mehta | dc8067e | 2016-06-29 18:38:32 +0530 | [diff] [blame] | 1 | {% extends "templates/web.html" %} |
| 2 | |
| 3 | {% block script %} |
Rushabh Mehta | 5f5f0be | 2016-06-30 17:02:37 +0530 | [diff] [blame] | 4 | <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 Mehta | dc8067e | 2016-06-29 18:38:32 +0530 | [diff] [blame] | 32 | {% 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 Mehta | 9365641 | 2017-04-06 18:24:34 +0530 | [diff] [blame] | 47 | {{ _("ERPNext Demo") }} |
Rushabh Mehta | dc8067e | 2016-06-29 18:38:32 +0530 | [diff] [blame] | 48 | {% endblock %} |
| 49 | |
| 50 | {% block page_content %} |
Rushabh Mehta | d40e661 | 2017-01-10 14:46:45 +0530 | [diff] [blame] | 51 | <div class='page-card'> |
Rushabh Mehta | dc8067e | 2016-06-29 18:38:32 +0530 | [diff] [blame] | 52 | |
Rushabh Mehta | d40e661 | 2017-01-10 14:46:45 +0530 | [diff] [blame] | 53 | <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 Mehta | dc8067e | 2016-06-29 18:38:32 +0530 | [diff] [blame] | 60 | </div> |
| 61 | |
Rushabh Mehta | d40e661 | 2017-01-10 14:46:45 +0530 | [diff] [blame] | 62 | |
| 63 | <p class='text-muted text-center small' style='margin-top: -20px;'><a href="https://erpnext.com/signup?plan=Free-Solo">Sign up for a Free ERPNext.com account here</a> |
| 64 | </p> |
| 65 | <style> |
| 66 | html, body { |
| 67 | background-color: #f5f7fa; |
| 68 | } |
| 69 | </style> |
Rushabh Mehta | dc8067e | 2016-06-29 18:38:32 +0530 | [diff] [blame] | 70 | {% endblock %} |