Show Welcome to ERPNext after completing Setup Wizard
This commit is contained in:
parent
32e48bb568
commit
7dab3c1f85
BIN
erpnext/public/images/YouTube-icon-full_color.png
Normal file
BIN
erpnext/public/images/YouTube-icon-full_color.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
erpnext/public/images/erpnext-video-placeholder.jpg
Normal file
BIN
erpnext/public/images/erpnext-video-placeholder.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 794 KiB |
@ -658,7 +658,7 @@ $.extend(erpnext.wiz, {
|
|||||||
return frappe.render_template("setup_wizard_message", {
|
return frappe.render_template("setup_wizard_message", {
|
||||||
image: "/assets/frappe/images/ui/bubble-tea-happy.svg",
|
image: "/assets/frappe/images/ui/bubble-tea-happy.svg",
|
||||||
title: __('Setup Complete'),
|
title: __('Setup Complete'),
|
||||||
message: __('Your setup is complete. Refreshing.') + ".."
|
message: ""
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -670,6 +670,7 @@ $.extend(erpnext.wiz, {
|
|||||||
args: values,
|
args: values,
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
wiz.show_complete();
|
wiz.show_complete();
|
||||||
|
localStorage.setItem("session_last_route", "#welcome-to-erpnext");
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.location = "/desk";
|
window.location = "/desk";
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
0
erpnext/setup/page/welcome_to_erpnext/__init__.py
Normal file
0
erpnext/setup/page/welcome_to_erpnext/__init__.py
Normal file
13
erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.css
Normal file
13
erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.css
Normal 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;
|
||||||
|
}
|
@ -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>
|
10
erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.js
Normal file
10
erpnext/setup/page/welcome_to_erpnext/welcome_to_erpnext.js
Normal 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>')
|
||||||
|
});
|
||||||
|
}
|
@ -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"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user