[fix] re-make setup wizard slides on change of language
This commit is contained in:
parent
834b3e6f83
commit
1ed82834ce
@ -5,9 +5,10 @@ frappe.pages['setup-wizard'].on_page_load = function(wrapper) {
|
|||||||
frappe.set_route("desk");
|
frappe.set_route("desk");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
$.extend(erpnext.wiz, {
|
function load_erpnext_slides() {
|
||||||
|
$.extend(erpnext.wiz, {
|
||||||
region: {
|
region: {
|
||||||
title: __("Region"),
|
title: __("Region"),
|
||||||
icon: "icon-flag",
|
icon: "icon-flag",
|
||||||
@ -377,12 +378,12 @@ $.extend(erpnext.wiz, {
|
|||||||
},
|
},
|
||||||
css_class: "two-column"
|
css_class: "two-column"
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// Source: https://en.wikipedia.org/wiki/Fiscal_year
|
// Source: https://en.wikipedia.org/wiki/Fiscal_year
|
||||||
// default 1st Jan - 31st Dec
|
// default 1st Jan - 31st Dec
|
||||||
|
|
||||||
erpnext.wiz.fiscal_years = {
|
erpnext.wiz.fiscal_years = {
|
||||||
"Afghanistan": ["12-20", "12-21"],
|
"Afghanistan": ["12-20", "12-21"],
|
||||||
"Australia": ["07-01", "06-30"],
|
"Australia": ["07-01", "06-30"],
|
||||||
"Bangladesh": ["07-01", "06-30"],
|
"Bangladesh": ["07-01", "06-30"],
|
||||||
@ -400,9 +401,11 @@ erpnext.wiz.fiscal_years = {
|
|||||||
"South Africa": ["03-01", "02-28"],
|
"South Africa": ["03-01", "02-28"],
|
||||||
"Thailand": ["10-01", "09-30"],
|
"Thailand": ["10-01", "09-30"],
|
||||||
"United Kingdom": ["04-01", "03-31"],
|
"United Kingdom": ["04-01", "03-31"],
|
||||||
}
|
};
|
||||||
|
};
|
||||||
|
|
||||||
frappe.wiz.on("before_load", function() {
|
frappe.wiz.on("before_load", function() {
|
||||||
|
load_erpnext_slides();
|
||||||
frappe.wiz.add_slide(erpnext.wiz.user);
|
frappe.wiz.add_slide(erpnext.wiz.user);
|
||||||
frappe.wiz.add_slide(erpnext.wiz.org);
|
frappe.wiz.add_slide(erpnext.wiz.org);
|
||||||
frappe.wiz.add_slide(erpnext.wiz.branding);
|
frappe.wiz.add_slide(erpnext.wiz.branding);
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Next Steps</h3>
|
<h3>{%= __("Next Steps") %}</h3>
|
||||||
<ul class="list-unstyled">
|
<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="#">{%= __("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="#Module/Learn">{%= __("View a list of all the help videos") %}</a></li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user