From c7c54d93618d456ce6e53ee35b4280097cc3f54c Mon Sep 17 00:00:00 2001 From: Stephane V Date: Wed, 16 Jul 2014 22:23:15 +0200 Subject: Adds 2 checkboxes at the top of userlist in the settings, to display/hide optional columns This fixes #9367. --- settings/css/settings.css | 2 ++ settings/js/users/users.js | 23 +++++++++++++++++++++++ settings/templates/users/part.createuser.php | 13 ++++++++++++- 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index b9ce79bc3b8..204d69945d4 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -92,6 +92,8 @@ td.password>img,td.displayName>img, td.remove>a, td.quota>img { visibility:hidde td.password, td.quota, td.displayName { width:12em; cursor:pointer; } td.password>span, td.quota>span, rd.displayName>span { margin-right: 1.2em; color: #C7C7C7; } span.usersLastLoginTooltip { white-space: nowrap; } +th#headerLastLogin, td.lastLogin { display : none; } +th#headerStorageLocation, td.storageLocation { display : none; } td.remove { width:1em; padding-right:1em; } tr:hover>td.password>span, tr:hover>td.displayName>span { margin:0; cursor:pointer; } diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 0f72746ee83..86ed43d958e 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -707,4 +707,27 @@ $(document).ready(function () { ); }); + // Option to display/hide the "Storage location" column + $('#CheckboxStorageLocation').click(function() { + if ($('#CheckboxStorageLocation').is(':checked')) { + $("#headerStorageLocation").show(); + $("#userlist td.storageLocation").show(); + } else { + $("#headerStorageLocation").hide(); + $("#userlist td.storageLocation").hide(); + } + }); + // Option to display/hide the "Last Login" column + $('#CheckboxLastLogin').click(function() { + if ($('#CheckboxLastLogin').is(':checked')) { + $("#headerLastLogin").show(); + $("#userlist td.lastLogin").show(); + } else { + $("#headerLastLogin").hide(); + $("#userlist td.lastLogin").hide(); + } + }); + + + }); diff --git a/settings/templates/users/part.createuser.php b/settings/templates/users/part.createuser.php index 3dfd27ee52d..70e5a237610 100644 --- a/settings/templates/users/part.createuser.php +++ b/settings/templates/users/part.createuser.php @@ -28,7 +28,18 @@ alt="t('Enter the recovery password in order to recover the users files during password change'))?>"/> + +
+ t('Display')) ?> : + + +
+
- \ No newline at end of file + -- cgit v1.2.3 From ba841d956160a83206449ab9d6345d5cd13f67e9 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 29 Aug 2014 00:08:01 +0200 Subject: user mgmt: move 'Show storage location' and 'Show last log in' to settings area --- settings/css/settings.css | 10 ----- settings/templates/users/main.php | 18 +++++++- settings/templates/users/part.createuser.php | 11 ----- settings/templates/users/part.setquota.php | 63 +++++++++++++--------------- 4 files changed, 46 insertions(+), 56 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 204d69945d4..a62a971b831 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -100,11 +100,6 @@ tr:hover>td.password>span, tr:hover>td.displayName>span { margin:0; cursor:point tr:hover>td.remove>a, tr:hover>td.password>img,tr:hover>td.displayName>img, tr:hover>td.quota>img { visibility:visible; cursor:pointer; } tr:hover>td.remove>a { float:right; } -div.quota { - margin: 10px; - display: block; -} -div.quota-select-wrapper { position: relative; } div.recoveryPassword { left:50em; display:block; position:absolute; top:-1px; } input#recoveryPassword {width:15em;} #controls select.quota { @@ -113,11 +108,6 @@ input#recoveryPassword {width:15em;} height: 37px; } select.quota-user { position:relative; left:0; top:0; width:10em; } -div.quota>span { - white-space: nowrap; - color: #888; - text-shadow: 0 1px 0 #fff; -} select.quota.active { background: #fff; } input.userFilter {width: 200px;} diff --git a/settings/templates/users/main.php b/settings/templates/users/main.php index c5805d53476..59284eaabd3 100644 --- a/settings/templates/users/main.php +++ b/settings/templates/users/main.php @@ -22,7 +22,23 @@ $userlistParams['subadmingroups'] = array_flip($items);
inc('users/part.grouplist')); ?>
- inc('users/part.setquota')); ?> +
+ +
+
+ inc('users/part.setquota')); ?> + +
+

+

+
+
diff --git a/settings/templates/users/part.createuser.php b/settings/templates/users/part.createuser.php index 70e5a237610..edec7587eb5 100644 --- a/settings/templates/users/part.createuser.php +++ b/settings/templates/users/part.createuser.php @@ -28,17 +28,6 @@ alt="t('Enter the recovery password in order to recover the users files during password change'))?>"/> - -
- t('Display')) ?> : - - -
-
diff --git a/settings/templates/users/part.setquota.php b/settings/templates/users/part.setquota.php index afbbee82063..b58df49998a 100644 --- a/settings/templates/users/part.setquota.php +++ b/settings/templates/users/part.setquota.php @@ -1,39 +1,34 @@ -
- -
-
-
- - t('Default Quota'));?> - - " data-tipsy-gravity="s"> + + + + - - - - - - -
+ + + + + + +
-- cgit v1.2.3