123 Commits

Author SHA1 Message Date
Eric Merrill
4ed604996f MDL-41845 Activity Completion: Make default selection an option.
Makes an option to either default to the activity default, or default
to COMPLETION_TRACKING_NONE. This leaves open the possibility of
allowing activities to pick an actual default, instead of just on/off.
2013-09-25 11:41:07 +10:00
Petr Škoda
f9beaf4472 MDL-28094 fix subdirs support in module intro editor 2013-09-07 11:30:19 +02:00
Damyon Wiese
0c0dfa8fbd MDL-40668 tinymce: Remove collapsable editor options
We have an alternative (pdw toolbars)
Also, allow tinymce to be collapsed down to a single row.
2013-08-13 10:54:36 +08:00
Eric Merrill
7829d5d7c3 MDL-40412 course Expanding the height of module description fields.
Expanding the default height of mod descriptions to 10, which gives
you 3 real lines once TinyMCE Loads.
2013-07-01 10:24:38 -04:00
Damyon Wiese
54106942b3 MDL-37459 admin: Fix for error on updating a locked checkbox
Changed the way apply_admin_locked_flags gets the current value for the field.

The old way was plain wrong (looking at getValue from the quickform element).
2013-06-13 11:18:18 +10:00
Damyon Wiese
c30371168f MDL-37459 admin: Code improvements for admin defaults.
Split apply_admin_defaults_after_data so the defaults are set before
set_data is called.

Change function from private to protected.

Change check for if module for is an add or an update.
2013-06-12 14:10:55 +08:00
Damyon Wiese
fa358a83ad MDL-37459 admin: Change the behaviour of locked admin settings.
Now the defaults for settings will never force changes to the module update
form, and settings will only be locked if their value matches the admin default.
2013-06-12 12:30:08 +08:00
Damyon Wiese
19127f6f09 MDL-37459: Fix unprintable chars in wierd commit
Somehow some unprintable chars made it into the last commit.

Removing them all...
2013-06-11 13:25:28 +08:00
Damyon Wiese
3c88a67821 MDL-37459 admin: Admin settings flags
Make "Advanced" and "Lockable" flags for any admin setting.
2013-06-11 12:54:57 +08:00
Frederic Massart
381ab8e1a3 MDL-39599 course: Fix setType warning in conditional access 2013-05-10 12:17:01 +08:00
sam marshall
a9f5fc158c MDL-38315 Completion: Bugs with 'locked' status in activity form 2013-05-01 11:57:29 +01:00
Frederic Massart
1dcbdba62f MDL-38614 form: Reduce size of description field 2013-04-22 14:18:04 +08:00
Damyon Wiese
8af0dffb50 Merge branch 'MDL-34311-master' of git://github.com/danpoltawski/moodle
Conflicts:
	course/moodleform_mod.php
	lib/upgrade.txt
2013-03-26 13:46:29 +08:00
Dan Poltawski
9f9dde40ee MDL-34311 course: add missing type on cm idnumber
We must use PARAM_RAW for idnumbers because external systems could use
any characters and this is a linking field for external systems.
2013-03-25 09:30:52 +08:00
Frederic Massart
207c737dc0 MDL-38569 form: No advanced settings in Common module settings 2013-03-25 08:29:05 +08:00
sam marshall
3a09f4dc64 MDL-38035 Activity settings: Support multilang names for custom user fields 2013-03-12 15:05:24 +00:00
sam marshall
333e499c4b MDL-34612 Grade condition range validation allows impossible conditions 2012-11-07 10:54:23 +00:00
Ankit Agarwal
9a5e297b4c MDL-34470 course: Replace all instances of get_context_instance() with context_xxx::instance() in course/ 2012-07-24 16:19:01 +08:00
Sam Hemelryk
33e657c7e7 MDL-29538 core_condition: Pre-integration merge cleanup
* Fixed up database installation and upgrade code
* Reverted some whitespace optimisations to minimise conflicts
* Optimised commits made by Mark to reduce complexity and add tracker issue numbers
2012-06-26 15:18:53 +08:00
Mark Nelson
95a9bc0e4a MDL-29538 core_condition: ignore any fields that have none selected 2012-06-26 15:18:53 +08:00
Mark Nelson
a6b538a862 MDL-29538 core_condition: validate whether a field has been declared before for that activity 2012-06-26 15:18:52 +08:00
Mark Nelson
a8f84c287c MDL-29538 core_condition: code cleanup 2012-06-26 15:18:52 +08:00
Mark Nelson
cb4492c200 MDL-29538 core_condition: changed the logic in the code so that it works with the new database structure as well as tidying up parts of the code 2012-06-26 15:18:52 +08:00
Mark Nelson
76af15bb4c MDL-29538 core_condition: initial commit to add support for making things conditional on user profile fields 2012-06-26 15:18:51 +08:00
Frederic Massart
a41b1d96b6 MDL-33775 Course: fix redirect to course/section in paged mode 2012-06-18 15:10:33 +08:00
sam marshall
ce4dfd2703 MDL-24419 (4): Add conditional availability support to sections; section cache
Credit: original version done by Kirill Astashov of NetSpot (netspot.com.au),
finished and tweaked by sam.

This change adds conditional availability support for sections analagous to
that already available for activities. (Backend, UI, backup/restore.)

In order that this feature does not reduce performance, section cacheing has
also been added using a new course 'sectioncache' field analagous to modinfo.

The new feature integrates with activity availability so that activities
inside sections which are not available are automatically not available
themselves (meaning it works to restrict access).
2012-05-14 11:19:25 +01:00
Petr Skoda
54352ac979 MDL-32251 more E_STRICT fixes 2012-03-30 19:02:58 +02:00
Sam Hemelryk
54a4d23d43 Merge branch 'MDL-30764-master' of git://github.com/sammarshallou/moodle 2011-12-20 14:15:47 +13:00
Sam Hemelryk
f8882018f2 Merge branch 'w51_MDL-30787_m23_coursemodedit' of git://github.com/skodak/moodle 2011-12-20 12:08:23 +13:00
Petr Skoda
af18993548 MDL-30787 fix use of module and section edit capabilities 2011-12-18 13:54:38 +01:00
sam marshall
6d02b26578 MDL-30764 Activity settings: do not disable grouping dropdown if it is already set 2011-12-15 16:43:12 +00:00
Tim Hunt
af4e440888 MDL-30559 conditional availability: missing validation of grade rules. 2011-12-09 18:38:02 +00:00
David Mudrak
01609c9ad9 Merge remote branch 'origin/master' into rubric
Conflicts:
	lib/db/upgrade.php
	version.php
2011-10-24 22:13:01 +02:00
David Mudrak
6832a10264 Initial support for the grading management screen
The user is sent to the new grade/grading/manage.php screen when an
advanced grading method is set in the activity mod form or via the
settings block.

The screen is supposed to (1) let the user change the currently active
grading method, (2) open the editor for the selected method, (3) create
new form from a template (4) display a preview of the form.
2011-10-18 01:05:07 +02:00
sam marshall
6282381d05 MDL-27242 Conditional availability dates should support time as well as day
Change also adds minor feature to date-time selector so you can specify the time it uses as default when the value is 0 (disabled).

Credit: This feature was developed collaboratively by Charles Fulton, Neill Magill, and me.
2011-10-13 10:23:23 +01:00
David Mudrak
b11f9da65e MDL-29479 New feature FEATURE_ADVANCED_GRADING
Plugins will use this feature to claim their support for the new
advanced grading methods machinery.
2011-09-29 00:09:59 +02:00
Petr Skoda
aff24313be MDL-29401 introduce new frankenstyle PARAM types
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
2011-09-25 09:59:55 +02:00
Tim Hunt
71c4154a98 MDL-26567 no grade category option on the quiz settings form.
Also, refine the standard_grading_coursemodule_elements method to add a
help string.

AMOS BEGIN
 CPY [gradecategory,grades],[gradecategoryonmodform,grades]
AMOS END
2011-09-20 11:10:34 +01:00
sam marshall
8c40662e22 MDL-27001 'Show description' feature part 1: infrastructure that allows modules to support feature
The 'Show description' feature is about optionally including module description on the course page. This change include the necessary infrastructure - new database field, new FEATURE constant, changes to forms to display it, new language strings for it, backup and restore, and old course conversion. (I found the places to change by searching for an existing field in course_modules).

Documentation for the field is included in install.xml and in modinfolib.
2011-09-06 11:03:00 +01:00
sam marshall
3fbe0e8a0f MDL-27627 Headers in moodleform_mod should have IDs 2011-05-27 13:40:02 +01:00
Eloy Lafuente (stronk7)
b47dcdf0de MDL-27471 minor fixups 2011-05-23 12:42:15 +02:00
Sam Hemelryk
2b04c41c58 MDL-27471 Adding mandatory component & ratingarea to the ratings API + other fixes
* Added the component and ratingarea fields and implemented it throughout
  the rating API as mandatory fields
* Cleanup rating indexes
* Upgrade forum/data/glossary ratings
* Moved the logic in the render_rating method to methods of the rating object.
* Added new callback for checking ratingareas
* Cleaned comments here and there
* Mark the xxx_get_participants methods as deprecated
* Refactor rate_ajax and ratingsuser_can_view_aggregate methods
* Cleaned up rating/index.php to use html_table object and moved inline styles to CSS.
* Added missing properties of the rating object that were being set throughout the rating
  API.
2011-05-23 12:35:39 +02:00
Petr Skoda
516c5eca68 MDL-24698 hopefully fixed all completion_info problems 2010-11-17 06:23:56 +00:00
Sam Marshall
91d0bb0a1f Activity completion MDL-24746 If you turn on autocompletion for an activity after users have already done things that should complete it, it didn't mark them complete 2010-11-08 11:51:19 +00:00
Andrew Davis
f1c5b522fc condition MDL-24180 added a help item to the conditional activity availability config UI 2010-11-02 08:35:33 +00:00
Petr Skoda
fbaea88faa MDL-24321 switching to stdClass in /c*/ 2010-09-21 08:13:11 +00:00
Petr Skoda
7e85563de5 fixed a few spelling errors 2010-09-17 12:16:27 +00:00
Petr Skoda
36f3228c3e MDL-24101 hide groupmembersonly options when feature disabled 2010-09-06 18:10:11 +00:00
Andrew Davis
f9cd798c7e rating MDL-23908 improved rating role tips 2010-08-31 07:59:32 +00:00
Andrew Davis
750925e2e4 rating MDL-23908 made some progress resolving the get roles with capability problem 2010-08-26 02:58:55 +00:00