admin/access hover help - little patch, big help

jjeff - August 5, 2005 - 19:59
Project:Drupal
Version:x.y.z
Component:user.module
Category:feature request
Priority:normal
Assigned:jjeff
Status:duplicate
Description

Here's a patch that adds a 'title' tag to all of the checkboxes in the admin/access grid. When you roll over the checkboxes in most browsers a tool-tip box will pop up with information about what each checkbox is.

Examples:
"anonymous user : edit own blog"
"authenticated user : post comments"
"admin : administer filters"

On a site with many roles and many modules, it becomes very easy to scroll away from the table headers, so this is essential for figuring out what you're clicking. It doesn't solve all of the admin/access page usability problems, but it does make the page a lot more usable.

Little patch. Big help.

-Jeff

AttachmentSize
admin.access.hover.help.patch799 bytes

#1

Dries - August 7, 2005 - 15:34
Status:reviewed & tested by the community» needs work

Coding style needs work (incorrect use of spaces). Shouldn't these strings be translatable?

#2

jjeff - August 7, 2005 - 17:41

This should be better.

By 'incorrect use of spaces', do you mean spacing around the array keys and values? I've fixed that and the $perm (permission) value now gets translated. Role names aren't translated elsewhere on the admin/access page, so I've left $name (role name) untranslated.

-Jeff

AttachmentSize
admin.access.hover.help.v2.patch 804 bytes

#3

Morbus Iff - August 30, 2005 - 12:42
Status:needs work» needs review

#4

jjeff - September 9, 2005 - 16:09

Anyone want to review my code?

Thanks,
Jeff

#5

m3avrck - September 9, 2005 - 16:25

Rerolled patch against current HEAD. Looks good to me and seems to be pretty useful :)

AttachmentSize
user.module_6.patch 803 bytes

#6

Bèr Kessels - September 9, 2005 - 17:35

changed spaces. And created http://drupal.org/node/30785.

AttachmentSize
user.module_6_0.patch 805 bytes

#7

moshe weitzman - September 12, 2005 - 16:37
Status:needs review» reviewed & tested by the community

lets push this one line beauty to 'ready for commit'

#8

jjeff - September 15, 2005 - 15:29

Thank you Moshe!

#9

Dries - September 15, 2005 - 21:45

Committed by HEAD.

#10

Dries - September 17, 2005 - 13:01
Status:reviewed & tested by the community» fixed

#11

Anonymous - October 1, 2005 - 15:53
Status:fixed» closed

#12

jjeff - January 6, 2006 - 13:09
Version:<none>» 4.6.5
Status:closed» active

Looks like this functionality got destroyed during the formapi upgrade.

#13

moshe weitzman - January 14, 2006 - 05:27
Status:active» duplicate

i put this feature into my patch at http://drupal.org/node/44379. if mine fails, then resubmit this one alone. required a tiny change to theme_user_admin_perm(). here is the changed line (see end):

$row[] = array('data' => form_render($form['checkboxes'][$rid][$key]), 'align' => 'center', 'title' => $key);

 
 

Drupal is a registered trademark of Dries Buytaert.