form, appframe ui fixes

This commit is contained in:
Rushabh Mehta
2012-09-28 18:47:47 +05:30
parent 90f4d9a608
commit 3c04193afb
21 changed files with 48 additions and 12 deletions

View File

@@ -29,9 +29,12 @@ MyProfile = function(wrapper) {
this.wrapper.appframe.add_button('Change Background', this.change_background);
this.wrapper.appframe.add_label("Set Theme:");
this.wrapper.appframe.add_select("Theme",
["Default", "Desert", "Sky", "Tropic", "Snow", "Sun"]).change(function() {
erpnext.set_theme($(this).val().toLowerCase());
}).change(function() {
keys(erpnext.themes).sort())
.change(function() {
erpnext.set_theme($(this).val());
}).val(wn.boot.profile.defaults.theme ?
wn.boot.profile.defaults.theme[0] : "Default")
.change(function() {
wn.call({
module: "home",
page: "profile_settings",
@@ -39,6 +42,7 @@ MyProfile = function(wrapper) {
args: {theme: $(this).val() }
})
});
this.tab = make_table($a($(this.wrapper).find('.layout-main').get(0), 'div', '', {marginTop:'19px'}),
1, 2, '90%', ['50%', '50%'], {padding:'11px'})
this.img = $a($td(this.tab, 0, 0), 'img', '', {width: '120px', maxHeight:'200px'});