65 Commits

Author SHA1 Message Date
stronk7
853a3d8e53 MDL-12846 course defaults - grrr I forgot to re-add the original setDefault() 2009-02-13 10:04:26 +00:00
stronk7
39c28155a5 MDL-12846 don't apply coursedefaults->category anymore. 2009-02-13 09:55:40 +00:00
tjhunt
9136a60c46 course settings: MDL-17501 check for moodle/course:visibility in the course settings form.
1. If a user does not have that capability, don't let them change whether the course is visible.
2. Give teachers that capability by default.
3. To avoid regressions, on upgrade, give moodle/course:visibility to any role that has moodle/course:update.
2008-12-08 02:31:05 +00:00
skodak
826725329a MDL-15785 new options for enforcing of enrolment key commplexity and requirements 2008-12-06 21:20:42 +00:00
tjhunt
8ed5dd63ee course categories: Fix many bugs with category editing and permissions. Clean up code.
Bugs: MDL-17479, MDL-16426, MDL-16063, MDL-16013, MDL-15658, MDL-15556, MDL-15161, MDL-14925, MDL-13742, MDL-11557.

* Simplify category editing permissions to just moodle/category:manage and moodle/category:seehiddencategories.
* Enforce those correctly. (Note MDL 17502 is still outstanding.)
* Don't screw up category sort order when you just edit name or description.
* Niceties like where redirects go when you cancel or submit forms.
* Make sure a global course creator can see the site admin block.
* Don't allow a category to be made the child of one of its children!
* General code cleanup to bring key files more in line with best pracitice.

Apologies for the fact it is one big patch, rather than a series of smaller patches. However, categoryedit.php, category.php and index.php where in pretty bad shape and needed significant cleaning up. categoryedit.php, in particular, was almost completely rewritten.

Merged from MOODLE_19_STABLE.
2008-12-04 08:53:10 +00:00
skodak
828a673d9d MDL-15262 fixing previous incorrect merging 2008-11-26 09:05:04 +00:00
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
bef12c997a course settings: MDL-16327 when creating a course, the role renames were not saved. 2008-11-13 08:11:10 +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
nicolasconnault
7a90f48c38 MDL-15262 Merging from MOODLE_19_STABLE 2008-10-13 12:47:57 +00:00
skodak
01bc9ff156 MDL-15262 using hardFreeze instead of static, because we need this info to b returned from form; the new change* caps are not in effect when adding new courses - merged from MOODLE_19_STABLE + fixed regression in coursename/shortname automatic numbering 2008-10-08 20:56:38 +00:00
nicolasconnault
6e2eaae0e6 MDL-15262 Instead of removing these form fields entirely, rendering them as static form elements. Merging from MOODLE_19_STABLE 2008-10-08 13:40:42 +00:00
nicolasconnault
f7c0d84b87 MDL-15262 Added 3 new capabilities without changing defaults, as suggested by Matt. Merged from MOODLE_19_STABLE 2008-10-08 13:23:35 +00:00
jerome
cfec045442 MDL-12846: move course default settings into config_plugin table 2008-09-25 07:33:22 +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
jerome
eb1b95976f MDL-12846: add course default settings page 2008-09-25 02:31:26 +00:00
sam_marshall
4e781c7b50 MDL-15498: Completion system 2008-07-28 12:31:29 +00:00
skodak
3b11272373 MDL-14679 removed all instances of get_records_menu() 2008-06-01 15:44:59 +00:00
skodak
c3df090199 MDL-14679 datalib conversion completed 2008-05-30 16:47:21 +00:00
skodak
f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00
moodler
7d2e9a5220 MDL-14738 Merged. Roles section on course settings is now "Role renaming", with help. 2008-05-13 06:16:51 +00:00
jerome
4d4d13019e MDL-13815 - Course summary text is optional and empty by default now 2008-04-29 02:36:34 +00:00
stronk7
c5340330f3 Respect inherited default enrol method when deciding to display the course cost. MDL-14096 ; merged from 19_STABLE 2008-04-07 23:44:42 +00:00
dongsheng
d6cc234114 MDL-13481, Distinguish between course fullname and user fullname 2008-03-19 08:49:23 +00:00
moodler
87486420a5 Merged MDL-13676: last-minute field change to fix an Oracle problem 2008-02-29 08:44:23 +00:00
skodak
6682b29c8d MDL-13615 course edit settings - improved metacourse compatible detection; merged from MOODLE_19_STABLE 2008-02-23 19:22:23 +00:00
skodak
a78890d593 MDL-12133 validate() method tidying up; merged from MOODLE_19_STABLE 2007-11-23 22:15:07 +00:00
poltawski
467cebb0a1 MDL-11813 - Use existing group setting strings on course edit form so can be
better translated. Patch from Daniel Miksik

merged from MOODLE_19_STABLE
2007-10-29 09:47:13 +00:00
skodak
24f41672ba MDL-10383 - adding UI for new grouping settings into course and mod edit forms + fixed section handling on mod edit page + other minor cleanup 2007-08-17 08:05:04 +00:00
stronk7
4f6bd3b9c1 Increasing the displayed size of course->shortinfo to 20. MDL-10026
(bigger but enough smaller than the fullname field)
2007-08-09 12:26:43 +00:00
toyomoyo
787fb606a6 merged fix for MDL_9804, course shortname limited to 15 chars on forms 2007-07-26 02:30:18 +00:00
moodler
e15d4dd0e0 Move the "default role" into enrolments section MDL-10511 2007-07-18 08:57:28 +00:00
mchurch
82d3334acd Tracker #MDL-9353 - Paypal cost of course not visible in course settings. 2007-07-13 20:31:26 +00:00
wildgirl
6be58b1c18 improved help file - MDL-7073 fix 2007-06-23 10:25:03 +00:00
skodak
1898ccac4c MDL-9929 we need some other name for password field in course edit page 2007-06-10 20:43:43 +00:00
skodak
54bb33eb10 MDL-9652 rename new password reveal to unmask 2007-04-30 18:03:19 +00:00
skodak
e96167d2fa MDL-9181 Use new password field with reveal option in editadvanced and enrolment, group and quiz keys 2007-04-06 16:23:48 +00:00
nicolasconnault
a937b16452 MDL-8537 Added $CFG as the object to check for enrol method when the course is being created. 2007-04-05 07:58:15 +00:00
toyomoyo
f20d7c41af fix for MDL-9197. multilang filter is not applied to default role in course settings 2007-04-05 03:56:50 +00:00
toyomoyo
0150c561c5 fix for MDL-8966, customizable role names 2007-03-22 08:11:30 +00:00
jamiesensei
658772186a some small changes 2007-01-21 09:26:33 +00:00
jamiesensei
ec3dac9876 fixes for 'Choose legend/header text carefully - short and non-repeated' MDL-7780 2007-01-19 11:10:09 +00:00
jamiesensei
ccbef0e2b7 moved set_defaults to main script out of definition method. 2007-01-12 05:07:22 +00:00
jamiesensei
a23f0aaf95 * Added setAdvanced functionality see http://docs.moodle.org/en/Development:lib/formslib.php_setAdvanced
* Added MoodleQuickForm method closeHeaderBefore($elementName); http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#Use_Fieldsets_to_group_Form_Elements
* Added moodleform method add_action_buttons(); see http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#add_action_buttons.28.24cancel_.3D_true.2C_.24revert_.3D_true.2C_.24submitlabel.3Dnull.29.3B
* is_cancelled method added to moodleform http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
* added hidden labels to elements within groups such as the date_selector select boxes and other elements in 'groups'
* quiz/mod.html migrated to formslib
* glossary/edit.html migrated to formslib
* extended registerNoSubmitButton() functionality to automatically add js to onclick to bypass client side js input validation.
* added no_submit_button_pressed() function that can be used in a similar way to is_cancelled() as a test in the main script to see if some button in the page has been pressed that is a submit button that is used for some dynamic functionality within the form and not to submit the data for the whole form.
* added new condition for disabledIf which allows to disable another form element if no options are selected from within a select element.
* added default 'action' for moodleform  - strip_querystring(qualified_me()) http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
2006-12-19 07:03:08 +00:00
sam_marshall
ae628043a0 MDL-7401 Course format database/backup/lang/stylesheet/capability support 2006-12-11 15:47:23 +00:00
skodak
5772f71f1c fixed addStopFieldsetElements of submitbutton 2006-11-28 10:55:12 +00:00
jamiesensei
2dbd640932 some fixes for disabledIf and using disabledIf in course/edit_form.php 2006-11-28 08:04:00 +00:00
skodak
e517b6dade MDL-6949 fixed enrolment choice in course edit form 2006-11-15 19:06:49 +00:00
skodak
396254981f coding style fixes MDL-6949 2006-11-09 22:08:30 +00:00
skodak
3d397ee029 fixed metacourse issues in course/edit2.php MDL-6949 2006-11-09 21:22:49 +00:00