As mentioned here, I've split this feature off from actually getting the admin forms ordered by Role Weight.

The idea in this issue is to improve the UI for setting role weights - ideally the admin_user_roles form should not only sort by role weight, but should contain select fields or similar to allow the weights to be set. This form currently exists for adding roles, not setting their properties, so we need to deal with two submit buttons/functions.

Might also be worth considering Drupal 6's AJAX sorting à la menu items/blocks.

CommentFileSizeAuthor
#5 role_weights-sort_by_drag-257478.patch9.03 KBheltem
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pfaocle’s picture

Gah, incorrect link in there that makes no sense. First line of that should've been:

"As mentioned here, I've split this feature off from actually getting the admin forms ordered by Role Weight."

1kenthomas’s picture

Any traction here? This would certainly be better than the current available ordering method, prepending with digits...

pfaocle’s picture

Version: 5.x-1.x-dev » master
Status: Active » Postponed

I'm committing some changes to the 5.x-1.x-dev branch at the moment (tokens, ordering admin forms). I want to get another 5.x release tagged with these long-overdue features in. After that, I plan to try and spend some time on a 6.x port. It makes sense to leave this UI feature until the 6.x port is underway so we can (hopefully) take full advantage of the new drag n' drop stuff.

PS I wasn't quite sure what you meant by "prepending with digits"? I guessed you prepend role names with 1, 2, 3 etc - do you do this alongside using Role Weights?

pfaocle’s picture

Title: Setting weights directly on admin_user_roles form » Set weights on admin_user_roles form with JS Drag & Drop
Status: Postponed » Active
heltem’s picture

Version: master » 6.x-1.5
Status: Active » Needs review
FileSize
9.03 KB

Hi,

Here is a patch to remove current role weight setting relying on hook_form_alter() and add the js drag&drop sorting gui on admin/user/role/weight menu item.

Please review.

pfaocle’s picture

Version: 6.x-1.5 » 6.x-1.x-dev

Wow, thanks! Will try to test/review as soon as I can!

heltem’s picture

Any comment ?

pfaocle’s picture

Have not had time to test the patch I'm afraid, but I'm not sure I like the idea of a separate admin page. Is it possible for the drag/drop JS elements of the patch to be applied to the existing table of roles at admin/user/roles?

lpalgarvio’s picture

hey
please "steal" the code from Role Weight
http://drupal.org/project/roleweight

it should help.

lpalgarvio’s picture

pfaocle’s picture

Status: Needs review » Closed (won't fix)

Won't be adding this to 6.x - role weighting taken care of in core for > 7.x. Sorry, D6 folks.