Author: sree Date: 2006-08-10 17:21:26 +0000 (Thu, 10 Aug 2006) New Revision: 17483
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17483 Log: Beginnings of the UI code. Added: branches/SOC/sree/ui/ branches/SOC/sree/ui/README branches/SOC/sree/ui/newuser.html Changeset: Added: branches/SOC/sree/ui/README =================================================================== --- branches/SOC/sree/ui/README 2006-08-10 16:24:12 UTC (rev 17482) +++ branches/SOC/sree/ui/README 2006-08-10 17:21:26 UTC (rev 17483) @@ -0,0 +1,28 @@ +This is a repository for the UI code as I develop it. It contains very +raw code. It is not yet linked to SWAT, and will run independently of +samba. + +You need Qooxdoo 0.5.3 for development, and will need to place the +files here in the qooxdoo source tree in the demo/example/ directory. + +I'm still a very novice qooxdoo user, so comments on code are welcome. + +The following UI components will be developed: + +* A Browser Window for Users + +* A New User Window + +* A User Properties Window + +The UI will resemble the MMC User's UI. + + + + + + + + + + Added: branches/SOC/sree/ui/newuser.html =================================================================== --- branches/SOC/sree/ui/newuser.html 2006-08-10 16:24:12 UTC (rev 17482) +++ branches/SOC/sree/ui/newuser.html 2006-08-10 17:21:26 UTC (rev 17483) @@ -0,0 +1,49 @@ +<html> +<head> +<script type="text/javascript" src="../../script/qooxdoo.js"></script> +</head> +<body> + <script type="text/javascript"> + window.application.main = function() + { + var d = this.getClientWindow().getClientDocument(); + + var w1 = new QxWindow("New User"); + w1.setSpace(20, 400, 48, 250); + w1.setShowMaximize(false); + w1.setShowMinimize(false); + + + //TODO: Use a layout control + + txtUsername = new QxTextField; + txtUsername.setLocation(20,0); + + txtUnixname = new QxTextField; + txtUnixname.setLocation(20,20); + + txtFullname = new QxTextField; + txtFullname.setLocation(20,40); + + txtDescription = new QxTextField; + txtDescription.setLocation(20,60); + + w1.add(txtUsername, txtUnixname, txtFullname, txtDescription); + + txtPassword = new QxPasswordField; + txtPassword.setLocation(20,80); + + txtConfirmPassword = new QxPasswordField; + txtConfirmPassword.setLocation(20,100); + + w1.add(txtPassword, txtConfirmPassword); + + //TODO: add checkboxes + + + d.add(w1); + w1.open(); +} +</script> +</body> +</html> \ No newline at end of file
