]> gitweb @ CieloNegro.org - Rakka.git/commitdiff
more configuration panels...
authorpho <pho@cielonegro.org>
Tue, 5 Aug 2008 03:55:22 +0000 (12:55 +0900)
committerpho <pho@cielonegro.org>
Tue, 5 Aug 2008 03:55:22 +0000 (12:55 +0900)
darcs-hash:20080805035522-62b54-d60d1d43e68def66bda00f342b6961b9cf661fc6.gz

defaultPages/StyleSheet/CieloNegro.xml
defaultPages/StyleSheet/Default.xml
js/systemConfig.js

index ca98846c64d394d38f9db25a3c5dbf0449524d26..c663274fbf4f71f7f961501841e75fbdd9caf301 100644 (file)
@@ -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;
index 6b5f536b5da6fa01c6e11c8ce7023c2442f68aac..15be5133b44d92ba2c8bcb087678e258089a88c0 100644 (file)
@@ -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;
index 7dd0340ecb82e0044a454a7d22f4183a60365913..64f6a39e4d6522fb6121fbc7028a05f089db4c66 100644 (file)
             $(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);
                        });
         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 () {