Commit graph

1273 commits

Author SHA1 Message Date
tjhunt
9101efd312 cleanup: MDL-17083 Remove the old teacher, teachers, student and students columns from the course table.
For something that has been deprecated for over two years, they were still used in a lot of places!
2008-11-13 08:40:57 +00:00
tjhunt
1e8e46879c roles interface: Code reorganisation and adding boilerplate comments.
I have collected code that used to be in lib/adminlib.php, lib/accesslib.php and user/selector/lib.php into a new admin/roles/lib.php file.

And I added standard GPL and Moodle comments to all the files in admin/roles.
2008-11-13 04:07:01 +00:00
tjhunt
6a2e5bf3a3 Kill test file that is no longer needed. 2008-11-13 03:46:04 +00:00
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
dongsheng
6eaf2e376f "MDL-17143, use record_exists" 2008-11-12 01:51:28 +00:00
stronk7
1ba3293a6b MDL-17143 Some improvements suggested by Petr applied. Merged from 19_STABLE 2008-11-11 19:06:20 +00:00
stronk7
9af010ea4a MDL-17143 Avoid notices caused by not existing profilesforenrolledusersonly setting. Merged from 19_STABLE 2008-11-11 18:39:34 +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
dongsheng
35f0660ab4 "MDL-17143, don't display the user description at all when user isn't enrolled in any courses, merged and modified from 1.9" 2008-11-10 03:06:27 +00:00
stronk7
6a08c83042 MDL-17151 DB 2.0 syntax: fixed wrong usage in previous commit 2008-11-07 12:49:11 +00:00
ikawhero
35a261eb6d MDL-17151: Missing code to check for uniqueness of values.
Merged from MOODLE_19_STABLE
2008-11-07 05:57:24 +00:00
ikawhero
501ca377a1 MDL-17151: Fix typo. Merged from MOODLE_19_STABLE. 2008-11-07 02:01:19 +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
danmarsden
f787e10536 MDL-17140 should check if $data->id isn't empty before sending to get_record 2008-11-06 01:04:40 +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
2bea836d9b user selector: MDL-16966 Minor code cleanup. 2008-11-04 10:08:37 +00:00
tjhunt
1ae7210784 user selector: MDL-16966 use a JavaScrip event name that works cross-browser for watching the check-boxes. 2008-11-04 09:13:41 +00:00
tjhunt
4099f71f12 user selection: MDL-17073 add options to control the search in a collapsible region - Fix JavaScript error. 2008-11-04 07:51:49 +00:00
tjhunt
cf0a341faf Slight tidy up for how the JS is included and initialised. 2008-11-04 07:25:43 +00:00
tjhunt
cca4c120dd user selection: MDL-17073 add options to control the search in a collapsible region - fix the preserve-selected option. 2008-11-04 07:24:07 +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
f2eb500238 weblib: MDL-17085 a function to print a collapsible region of the UI, with the collapsed state stored in a user_perference. 2008-11-03 05:04:23 +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
skodak
cb4709dccd MDL-17027: protect user profile images if $CFG->forcelogin enabled; merged from MOODLE_19_STABLE 2008-11-01 22:30:18 +00:00
skodak
25a79c16a1 MDL-17065 user: profile iamges of deleted users are not accessible anymore; merged from MOODLE_19_STABLE 2008-11-01 19:37:07 +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
skodak
5f772e4afa MDL-17055 fixed pg regression - removed redundant sorting 2008-10-29 07:16:49 +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
26b773ec53 user selection: MDL-17054 Improve the user selector used on the assign roles and group memebers pages - fire an event when the selection becomes empty/not-empty. 2008-10-29 04:40:34 +00:00
tjhunt
0696bafa73 participants list: MDL-17055 temporary fix for this regression. Do the DISTINCT bit in PHP rather than SQL. 2008-10-29 01:33:26 +00:00
skodak
d669160891 MDL-15070 dml: recordset rewinding now forbidden - not all databases support it, sorry 2008-10-28 12:14:09 +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
dongsheng
48eb7bc9de "User Filter: empty filter form fixed, merged from 1.9, MDL-16880" 2008-10-15 05:30:37 +00:00
skodak
cc44433620 MDL-16839 forms: workaround for problematic hard frozen values; merged from MOODLE_19_STABLE 2008-10-13 19:39:27 +00:00
stronk7
eb309beded Detect non-utf8 langs in user edition forms. MDL-16845 MDL-11829 ; merged from 19_STABLE 2008-10-10 21:30:07 +00:00
jerome
f48fb4d692 MDL-15402: add a repository type functionality in the administration: enable/disable course and user repository setting 2008-10-09 03:02:26 +00:00
mudrd8mz
4697304a4c MDL-16308 Use default country instead of empty one when some external auth source (LDAP, POP3 etc) is used. Merged from 1.9 2008-09-25 10:12:18 +00:00
tjhunt
16851b22ad MDL-16676 All references to the text.html and emoticons.html files need to be updated to point to text2.html and emoticons2.html 2008-09-25 10:04:01 +00:00
tjhunt
80f69dc0ee MDL-16676 All references to the text.html and emoticons.html files need to be updated to point to text2.html and emoticons2.html 2008-09-25 07:12:46 +00:00
skodak
db4a3d8ffe MDL-16666 removing all use_html_editor() instances 2008-09-24 21:03:36 +00:00
skodak
bff34a6747 MDL-16365 domain restrictions are now optional when changing email address; merged from MOODLE_19_STABLE 2008-09-24 17:00:49 +00:00
moodler
55de6e0784 MDL-16046 Fixed up the portfolio tabs 2008-09-15 06:09:57 +00:00
mjollnir_
8bde161135 MDL-16046 - log page for portfolio transfers 2008-09-12 15:34:20 +00:00