Merge pull request #4246 from anandpdoshi/welcome-to-erpnext

Show Welcome to ERPNext after completing Setup Wizard
This commit is contained in:
Nabin Hait 2015-10-29 16:29:10 +05:30
commit 9a6df0341f
8 changed files with 73 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 KiB

View File

@ -658,7 +658,7 @@ $.extend(erpnext.wiz, {
return frappe.render_template("setup_wizard_message", {
image: "/assets/frappe/images/ui/bubble-tea-happy.svg",
title: __('Setup Complete'),
message: __('Your setup is complete. Refreshing.') + ".."
message: ""
});
},
@ -670,6 +670,7 @@ $.extend(erpnext.wiz, {
args: values,
callback: function(r) {
wiz.show_complete();
localStorage.setItem("session_last_route", "#welcome-to-erpnext");
setTimeout(function() {
window.location = "/desk";
}, 2000);

View File

@ -0,0 +1,13 @@
#page-welcome-to-erpnext ul li {
margin: 7px 0px;
}
#page-welcome-to-erpnext .video-placeholder-image {
width: 100%;
cursor: pointer;
}
#page-welcome-to-erpnext .youtube-icon {
width: 10%;
cursor: pointer;
}

View File

@ -0,0 +1,31 @@
<div class="container welcome-to-erpnext text-center" style="padding: 30px 0px;">
<div class="row">
<div class="col-md-8 col-md-push-2 col-sm-12">
<h1>{%= __("Welcome to ERPNext") %}</h1>
<p class="text-muted">
{%= __("To get the best out of ERPNext, we recommend that you take some time and watch these help videos.") %}
<br><br>
</p>
<div class="embed-responsive embed-responsive-16by9">
<div class="video-placeholder embed-responsive-item">
<img class="video-placeholder-image"
src="/assets/erpnext/images/erpnext-video-placeholder.jpg">
<img class="centered youtube-icon"
src="/assets/erpnext/images/YouTube-icon-full_color.png">
</div>
</div>
<br>
<hr>
<h3>Next Steps</h3>
<ul class="list-unstyled">
<li><a class="text-muted" href="#">{%= __("Go to the Desktop and start using ERPNext") %}</a></li>
<li><a class="text-muted" href="#Module/Learn">{%= __("View a list of all the help videos") %}</a></li>
<li><a class="text-muted" href="https://manual.erpnext.com" target="_blank">{%= __("Read the ERPNext Manual") %}</a></li>
<li><a class="text-muted" href="https://discuss.erpnext.com" target="_blank">{%= __("Community Forum") %}</a></li>
</ul>
</div>
</div>
</div>

View File

@ -0,0 +1,10 @@
frappe.pages['welcome-to-erpnext'].on_page_load = function(wrapper) {
var parent = $('<div class="welcome-to-erpnext"></div>').appendTo(wrapper);
parent.html(frappe.render_template("welcome_to_erpnext", {}));
parent.find(".video-placeholder").on("click", function() {
parent.find(".video-placeholder").addClass("hidden");
parent.find(".embed-responsive").append('<iframe class="embed-responsive-item video-playlist" src="https://www.youtube.com/embed/videoseries?list=PL3lFfCEoMxvxDHtYyQFJeUYkWzQpXwFM9&color=white&autoplay=1" allowfullscreen></iframe>')
});
}

View File

@ -0,0 +1,17 @@
{
"content": null,
"creation": "2015-10-28 16:27:02.197707",
"docstatus": 0,
"doctype": "Page",
"modified": "2015-10-28 16:27:02.197707",
"modified_by": "Administrator",
"module": "Setup",
"name": "welcome-to-erpnext",
"owner": "Administrator",
"page_name": "welcome-to-erpnext",
"roles": [],
"script": null,
"standard": "Yes",
"style": null,
"title": "Welcome to ERPNext"
}