[fix] re-make setup wizard slides on change of language

This commit is contained in:
Anand Doshi 2015-11-16 12:58:14 +05:30
parent 834b3e6f83
commit 1ed82834ce
2 changed files with 354 additions and 351 deletions

View File

@ -5,9 +5,10 @@ frappe.pages['setup-wizard'].on_page_load = function(wrapper) {
frappe.set_route("desk");
return;
}
}
};
$.extend(erpnext.wiz, {
function load_erpnext_slides() {
$.extend(erpnext.wiz, {
region: {
title: __("Region"),
icon: "icon-flag",
@ -377,12 +378,12 @@ $.extend(erpnext.wiz, {
},
css_class: "two-column"
},
});
});
// Source: https://en.wikipedia.org/wiki/Fiscal_year
// default 1st Jan - 31st Dec
// Source: https://en.wikipedia.org/wiki/Fiscal_year
// default 1st Jan - 31st Dec
erpnext.wiz.fiscal_years = {
erpnext.wiz.fiscal_years = {
"Afghanistan": ["12-20", "12-21"],
"Australia": ["07-01", "06-30"],
"Bangladesh": ["07-01", "06-30"],
@ -400,9 +401,11 @@ erpnext.wiz.fiscal_years = {
"South Africa": ["03-01", "02-28"],
"Thailand": ["10-01", "09-30"],
"United Kingdom": ["04-01", "03-31"],
}
};
};
frappe.wiz.on("before_load", function() {
load_erpnext_slides();
frappe.wiz.add_slide(erpnext.wiz.user);
frappe.wiz.add_slide(erpnext.wiz.org);
frappe.wiz.add_slide(erpnext.wiz.branding);

View File

@ -18,7 +18,7 @@
<br>
<hr>
<h3>Next Steps</h3>
<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>