From 5a3f557daf089aa68dc725e132befbc9c131dc2c Mon Sep 17 00:00:00 2001 From: pho Date: Tue, 5 Aug 2008 12:55:22 +0900 Subject: [PATCH] more configuration panels... darcs-hash:20080805035522-62b54-d60d1d43e68def66bda00f342b6961b9cf661fc6.gz --- defaultPages/StyleSheet/CieloNegro.xml | 4 ++- defaultPages/StyleSheet/Default.xml | 2 ++ js/systemConfig.js | 39 ++++++++++++++++++++++++-- 3 files changed, 42 insertions(+), 3 deletions(-) diff --git a/defaultPages/StyleSheet/CieloNegro.xml b/defaultPages/StyleSheet/CieloNegro.xml index ca98846..c663274 100644 --- a/defaultPages/StyleSheet/CieloNegro.xml +++ b/defaultPages/StyleSheet/CieloNegro.xml @@ -188,7 +188,8 @@ table.pageEditor { .pageEditor input[type="checkbox"] { margin-right: 5px; } -.pageEditor input[type="text"], +.pageEditor input[type="text"], +.pageEditor input[type="password"], .pageEditor input[type="file"], .pageEditor textarea { width: 97%; @@ -455,6 +456,7 @@ input[type="button"][disabled]:active { } .pageEditor input[type="text"], +.pageEditor input[type="password"], .pageEditor input[type="file"], .pageEditor textarea { border-color: #aaaaaa #eeeeee #eeeeee #aaaaaa; diff --git a/defaultPages/StyleSheet/Default.xml b/defaultPages/StyleSheet/Default.xml index 6b5f536..15be513 100644 --- a/defaultPages/StyleSheet/Default.xml +++ b/defaultPages/StyleSheet/Default.xml @@ -193,6 +193,7 @@ table.pageEditor { margin-right: 5px; } .pageEditor input[type="text"], +.pageEditor input[type="password"], .pageEditor input[type="file"], .pageEditor textarea { width: 97%; @@ -429,6 +430,7 @@ input[type="button"][disabled]:active { } .pageEditor input[type="text"], +.pageEditor input[type="password"], .pageEditor input[type="file"], .pageEditor textarea { border-color: #dddddd #fafafa #fafafa #dddddd; diff --git a/js/systemConfig.js b/js/systemConfig.js index 7dd0340..64f6a39 100644 --- a/js/systemConfig.js +++ b/js/systemConfig.js @@ -316,12 +316,25 @@ $(tbody).empty(); for (var i = 0; i < users.length; i++) { + var pass1 = $.INPUT({type: "password"}); + var pass2 = $.INPUT({type: "password"}); + var change = $.INPUT({type: "button", value: "Change"}); + + var chpass = $.TABLE({className: "pageEditor"}, + $.TR({}, + $.TD({}, pass1), + $.TD({rowSpan: 2}, change)), + $.TR({}, + $.TD({}, pass2))); + + var delUser = $.INPUT({type: "button", value: "Delete"}); + $.each(users, function () { var id = users[i]; var tr = $.TR({}, $.TD({}, id), - $.TD({}, ""), - $.TD({}, "") + $.TD({}, chpass), + $.TD({}, delUser) ); tbody.appendChild(tr); }); @@ -330,6 +343,28 @@ updateUserList(); $area.append(usersPanel); + + $area.append($.H3({}, "Add new user")); + + var userID = $.INPUT({type: "text"}); + var pass1 = $.INPUT({type: "password"}); + var pass2 = $.INPUT({type: "password"}); + var addUser = $.INPUT({type: "button", value: "Add"}); + var addUserPanel = $.TABLE({className: "pageEditor"}, + $.TR({}, + $.TH({}, "User ID"), + $.TD({}, userID)), + $.TR({}, + $.TH({}, "Password"), + $.TD({}, pass1)), + $.TR({}, + $.TH({}, "Password (retype)"), + $.TD({}, pass2)), + $.TR({}, + $.TH({}), + $.TD({}, addUser))); + + $area.append(addUserPanel); }; Rakka.showConfigPanel = function () { -- 2.40.0