[Pkg-owncloud-commits] [owncloud] 10/258: Adds 2 checkboxes at the top of userlist in the settings, to display/hide optional columns This fixes #9367.

David Prévot taffit at moszumanska.debian.org
Sat Oct 11 17:22:15 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit cc820eb824446c2c311e3d35e83bbeab49250f05
Author: Stephane V <stephane at vergeylen.eu>
Date:   Wed Jul 16 22:23:15 2014 +0200

    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 b9ce79b..204d699 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 60948bb..4e686aa 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -708,4 +708,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 3dfd27e..70e5a23 100644
--- a/settings/templates/users/part.createuser.php
+++ b/settings/templates/users/part.createuser.php
@@ -28,7 +28,18 @@
 		   alt="<?php p($l->t('Enter the recovery password in order to recover the users files during password change'))?>"/>
 	</div>
 	<?php endif; ?>
+	
+	<form id="userlistoptions">
+		<?php p($l->t('Display')) ?> : 
+		<label><input type="checkbox" name="StorageLocation" value="StorageLocation" id="CheckboxStorageLocation">
+			<?php p($l->t('Location')) ?>
+		</label>
+		<label><input type="checkbox" name="LastLogin" value="LastLogin" id="CheckboxLastLogin">
+			<?php p($l->t('Last login')) ?>
+		</label>
+	</form>
+	
 	<form autocomplete="off" id="usersearchform">
 		<input type="text" class="input userFilter" placeholder="<?php p($l->t('Search Users and Groups')); ?>" />
 	</form>
-</div>
\ No newline at end of file
+</div>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list