From: Robin Appelman Date: Tue, 19 Jul 2011 23:18:43 +0000 (+0200) Subject: Some ui work on user management, but it can still use a lot of improvement. X-Git-Tag: v3.0~267^2~396 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5539f671359af44634ed1de8ab5c4b8be20ee477;p=nextcloud-server.git Some ui work on user management, but it can still use a lot of improvement. --- diff --git a/admin/js/users.js b/admin/js/users.js index 48f3b15e3b8..994ce6f6cbd 100644 --- a/admin/js/users.js +++ b/admin/js/users.js @@ -112,7 +112,7 @@ $(document).ready(function(){ //######################################################################### // Password (clicking on user name) - $("div[x-use='usernamediv']").live( "click", function(){ + $("span[x-use='usernamediv']").live( "click", function(){ if( togglepassword == "" || $(this).parent().parent().attr("x-uid") != togglepassword ){ togglepassword = $(this).parent().parent().attr("x-uid"); // Set the username! @@ -167,6 +167,7 @@ $(document).ready(function(){ } }); $("#changegroupuid").val(togglegroup); + $(this).empty(); $(this).parent().append( $('#changegroups') ); $('#changegroups').show(); } @@ -205,13 +206,6 @@ $(document).ready(function(){ // Clicking on buttons //######################################################################### - // Show the create user form - $( "#createuseroptionbutton" ) - .click(function(){ - $("#createuserform").show(); - $("#createuseroption").hide(); - return false; - }); // Create a new user $( "#createuserbutton" ) diff --git a/admin/templates/users.php b/admin/templates/users.php index 133028c4e27..147db7c7aa4 100644 --- a/admin/templates/users.php +++ b/admin/templates/users.php @@ -1,101 +1,102 @@ -

t( 'Users' ); ?>

- - - - - - - - - - - - - - - - - - - - +
+ t( 'Users' ); ?> +
t( 'Name' ); ?>t( 'Groups' ); ?>
  
+ + + + + - - - - - "> - - - + + + + + + + + - - -
t( 'Name' ); ?>t( 'Groups' ); ?>
t( 'remove' ); ?>
+ ' /> + ' /> + + + " type="checkbox" name="groups[]" value="" /> + "> + + + +
+ + + + "> + +
+ + + t( 'remove' ); ?> + + + + + + + -

t( 'Groups' ); ?>

- - - - - - - - - +
+ t( 'Groups' ); ?> +
t( 'Name' ); ?>
+ - - - - - - - - "> - - + + - - -
- - t( 'remove' ); ?> - -   - - t( 'Name' ); ?>
- + + +
+ + + + +
+ + + + "> + + + + t( 'remove' ); ?> + +   + + + + + + + - + - +
diff --git a/admin/users.php b/admin/users.php index 0848d57162a..8237d06da0b 100644 --- a/admin/users.php +++ b/admin/users.php @@ -30,6 +30,7 @@ if( !OC_USER::isLoggedIn() || !OC_GROUP::inGroup( OC_USER::getUser(), 'admin' )) // We have some javascript foo! OC_UTIL::addScript( "admin", "users" ); +OC_UTIL::addStyle( "admin", "users" ); OC_APP::setActiveNavigationEntry( "core_users" ); $users = array(); diff --git a/core/css/styles.css b/core/css/styles.css index 678ad009d1a..f9b536a2b04 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -7,8 +7,6 @@ h1 { margin:1em 3em 1em 0; border-bottom:1px solid #666; text-transform:uppercas p.center { text-align:center; } a { color:#000; text-decoration:none; } -form { margin:2em 2em 2em 3em; } -form#quota { max-width:600px; } form#user_settings { max-width:600px; } form#user_settings p label { display:block; float:left; width:35%; padding:0.4em 0.5em 0 0; text-align:right; } form p { padding:0.5em 4em 0.5em 0.5em; text-align:left; } @@ -19,8 +17,8 @@ form input[type="submit"] { padding:0.1em 1em; border:1px solid #999; font-weigh form input[type="submit"]:hover, form input[type="submit"]:focus { border:1px solid #999; background-color:#999; outline:0; } form input[type="submit"]:active { outline:0; } form input[type="button"], form input[type="text"] { font-size: 0.9em; } -fieldset { padding:1em; background-color:#f7f7f7; border:1px solid #ddd; } -legend { padding:0 0.5em; font-size:1.2em; } +fieldset { padding:1em; background-color:#f7f7f7; border:1px solid #ddd; max-width:600px; margin:2em 2em 2em 3em; } +legend { padding: 0.5em; font-size:1.2em; } div.controls { width:91%; margin:1em 1em 1em 2em; padding:0.5em 0; background-color:#f7f7f7; border:1px solid #eee; } diff --git a/files/css/files.css b/files/css/files.css index ed67755ab4a..40ce67c66ff 100644 --- a/files/css/files.css +++ b/files/css/files.css @@ -22,6 +22,7 @@ #file_upload_form, #file_newfolder_form { display: inline; + margin-left:3em; } #fileSelector, #file_upload_submit, #file_newfolder_submit {