Commit Graph

67 Commits

Author SHA1 Message Date
tjhunt 40ab508a7e Fix variable name typo. 2008-11-13 03:06:20 +00:00
tjhunt a6e7237adc roles explanation: MDL-13538 Make a table showing the result of has_capability for every capabiltiy in a context.
This implements the page showing the table. It is not yet integrated into the tab bar. To try this, go to an Assign roles page (one with URL .../admin/roles/assign.php?contextid=...) and change the 'assign' to 'explain'.
2008-11-12 07:55:09 +00:00
tjhunt deb39f4382 user selector: MDL-16966 Nicer messages when there are too many users to show.
Also, improved the comment that explains to subclassers what they have to do, and fixed get_selected_users, so if the number of selected users is greater than the max number of users to show, it still works.
2008-11-11 02:26:03 +00:00
tjhunt 9d07ec29dc user selector: MDL-16966 Nicer handling of the situation where there are no users at all.
A slight improvement of a patch by Dan Poltawski.
2008-11-06 06:09:14 +00:00
tjhunt 1acd8f50f7 user selector: MDL-16966 Work round IE bug. Also, deal with reload case.
Listen you morons in Redmond: getElementById does not mean getElementByIdOrNameOrAnythingElseRandomWeFeelLike. Oh well. I have done a work-around.
2008-11-05 02:16:07 +00:00
tjhunt cf0a341faf Slight tidy up for how the JS is included and initialised. 2008-11-04 07:25:43 +00:00
tjhunt 904998d8f9 user selection: MDL-17073 add options to control the search in a collapsible region. 2008-11-04 05:12:12 +00:00
tjhunt c9e4326c39 user selection: MDL-17073 Clear button next to the search box 2008-11-03 06:42:41 +00:00
tjhunt 71ef682259 user selector: MDL-16996- followup - change optgroup label escaping funciton to keep Nicolas Martignoni happy. I can's say I full understand this issue. 2008-11-03 05:03:00 +00:00
tjhunt 6cab02ac52 user selection: MDL-16993 Convert the assign roles page to use the new components.
At the same time, I took the opportunity to try to work on some of the usability issues on this page. Note that I have not quite finished! So don't comment until tomorrow.

In the course of doing this, I also did: half of

MDL-11529 Show the number of assignees of each role in the change role dropdown on this page.
MDL-17067 Make it clear in the UI that admins are not allowed to unassign themselves.
2008-10-30 10:49:15 +00:00
tjhunt 73064df8f7 user selection: Make inserting the search term into lang strings in JavaScript more robust. 2008-10-30 03:56:48 +00:00
tjhunt aa9671c990 user selection: MDL-16966 Improve some of the wording. 2008-10-29 09:10:41 +00:00
tjhunt 9787301687 user selection: MDL-16994 Improve the user selector used on the assign roles and group memebers pages - Convert the group memebership page. 2008-10-29 08:18:24 +00:00
tjhunt f771be2787 user selection: MDL-17053 Improve the user selector used on the assign roles and group memebers pages - Make single user select mode work properly. 2008-10-29 05:09:18 +00:00
tjhunt d56f9e659d user selection: MDL-16996 Improve the user selector used on the assign roles and group memebers pages - Write the JavaScript to do the Ajax requests and update the list of users. 2008-10-28 06:51:36 +00:00
tjhunt f05c20fb44 user selection: MDL-16995 Improve the user selector used on the assign roles and group memebers pages - Implement search.php which does the work for ajax requests. 2008-10-27 08:37:50 +00:00
tjhunt bbcf571147 user selection: MDL-16992 Improve the user selector used on the assign roles and group memebers pages - Create a base class. 2008-10-27 07:30:44 +00:00