46 Commits

Author SHA1 Message Date
Jake Dallimore
273d310601 MDL-58138 completion: Fixes for a number of small issues. 2017-04-19 11:41:57 +08:00
Marina Glancy
61167c16d0 MDL-58460 mod_data: work with bulk completion API
Part of MDL-58138 epic
2017-04-19 08:56:11 +08:00
Marina Glancy
cf873ada46 MDL-23919 mod_data: small corrections to completion form element 2017-04-03 18:15:52 +01:00
Marcus Green
f9729dcfe0 MDL-23919 mod_data: add requiredentries to completion settings
Added required entries text field to the completion criteria area.
This field accepts a number.

If the legacy Entries required field has a value greater than 0 it will
be displayed and editable. For new instances this field will not be displayed.
2017-03-31 15:20:44 +01:00
Stephen Bourget
316f20a0b6 MDL-54910 mod_data: Open dates should be before close dates 2016-06-23 17:32:19 -04:00
Johannes Burk
97fe80ad68 MDL-50664 mod_data: add 'manageapproved' setting.
New function data_user_can_manage_entry checks whether a user is allowed to manage an entry.
Considering manageentries capability, data_in_readonly_period() result,
ownership (determined by data_isowner()), approval and manageapproved setting.
2015-09-15 07:16:40 +00:00
Andrew Hancox
6398ff5387 MDL-49101 core: Add a global admin setting config->requiremodintro
Removed requiremodintro setting from all core activity plugins and replace
with a single global setting.
Deprecated moodleform_mod::add_intro_editor and replaced with
moodleform_mod::standard_intro_elements
2015-04-07 10:11:53 +01:00
Daniel Neis Araujo
644b0d8691 MDL-42842 Change availability fields to date_time_selector 2014-02-25 10:53:50 -03:00
Dan Poltawski
a74cd33160 MDL-39422 mod_forms: prevent long coruse module names
To prevent ugly DB errors.
2013-04-30 17:41:36 +01:00
Frederic Massart
8783e17b0f MDL-38590 data: Reformat settings form
AMOS BEGIN
 CPY [allowcomments,mod_glossary],[allowcomments,mod_data]
AMOS END
2013-03-28 10:53:58 +08:00
Petr Skoda
b8ea3041eb MDL-23184 activity names are now either PARAM_TEXT or PARAM_CLEANHTML, this should be more accurate 2010-09-02 18:29:39 +00:00
David Mudrak
676351d856 MDL-21695 Database module: removing help icon that is not used any more 2010-08-16 14:32:12 +00:00
Andrew Davis
16306628bd gradebook MDL-19133 shifted around some code to move module grade settings into common code 2010-08-13 08:29:13 +00:00
Andrew Davis
55d95d90f9 rating MDL-23328 made date restriction of ratings work correctly 2010-07-16 06:30:30 +00:00
Martin Dougiamas
bfebaf64d8 MDL-22388 Added some checks to kill these scripts dead with an unequivocal notice unless included properly from a Moodle script. 2010-05-13 02:02:05 +00:00
David Mudrak
7719b4db37 MDL-21695 Database module now uses new help strings
AMOS BEGIN
 HLP data/exportzip.html,[exportaszip_help,mod_data]
 HLP data/fields.html,[newfield_help,mod_data]
 HLP data/fieldmappings.html,[fieldmappings_help,mod_data]
 HLP data/importcsv.html,[csvimport_help,mod_data]
 HLP data/importfromfile.html,[fromfile_help,mod_data]
 HLP data/maxentries.html,[maxentries_help,mod_data]
 HLP data/requireapproval.html,[requireapproval_help,mod_data]
 HLP data/requiredentries.html,[requiredentries_help,mod_data]
 HLP data/requiredentriestoview.html,[requiredentriestoview_help,mod_data]
 HLP data/savepreset.html,[saveaspreset_help,mod_data]
 HLP data/tags.html,[availabletags_help,mod_data]
 HLP data/usepreset.html,[usestandard_help,mod_data]
AMOS END
2010-04-30 14:56:41 +00:00
Andrew Davis
a09aeee47b rating MDL-21657 first commit for rating library 2010-03-16 05:57:51 +00:00
Petr Skoda
1adbd2c350 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 14:55:15 +00:00
skodak
3268cf9921 MDL-18910 full support for module intro editor with embedded images 2009-04-22 06:48:15 +00:00
skodak
b4950d9649 MDL-18910 full support for module intro editor with embedded images 2009-04-22 04:31:54 +00:00
skodak
42f103be4c MDL-18910 moving modedit features to modname_supports() 2009-04-21 08:57:20 +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
skodak
8eb1d25ffe MDL-11844 new option for conditional stripping of tags from activity names 2008-07-26 15:15:25 +00:00
skodak
c18269c7e5 MDL-14679 towards modform conversion 2008-06-01 21:36:11 +00:00
poltawski
4282d047c2 MDL-9372 - only show RSS options in database module when RSS is enabled
merged from MOODLE_19_STABLE
2008-01-08 13:40:32 +00:00
Martin Langhoff
13534ef716 cvsimport fixups 2007-08-29 13:10:11 +12:00
skodak
23a7718bd1 MDL-9696 used absolute path include in mod_forms 2007-06-10 23:20:45 +00:00
skodak
c3cec42188 MDL-9516 fixed mod_form.php logic 2007-06-03 19:08:14 +00:00
skodak
26de8d35ce fixed text field widths in new forms 2007-01-11 19:47:08 +00:00
jamiesensei
18a7736107 added helpbuttons to htmleditors where needed. Further work on htmleditor helpbutton code. 2007-01-05 04:51:46 +00:00
jamiesensei
f07b9627b6 changes to how we generate the id attribute of forms and the naming convention of forms
migrate blog edit to formslib
2006-12-28 09:32:45 +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
skodak
e076bccbc9 fixed number of rss articles in data mod settings - broken during new forms conversion 2006-12-17 21:12:23 +00:00
jamiesensei
19194f825a added setAdvanced MoodleQuickForm method. And added closeHeaderAfter method 2006-12-14 12:44:10 +00:00
skodak
aab98aaff1 data mod whitespace cleanup - there are already many accessibility related changes and fixes that are not backportable anyway and merging from previous versions is not expected 2006-12-13 20:26:11 +00:00
jamiesensei
44875d7898 added code to include hidden labels in groups in forms 2006-12-09 14:06:15 +00:00
jamiesensei
11f260f4ee some changes to date_selector and date_time_selector. Now automatically disabledIf disable checkbox is checked. 'optional' option includes a disable checkbox. 2006-12-09 11:42:57 +00:00
jamiesensei
46e648b610 added Sam's 'enabled' checkbox functionality 2006-12-07 10:39:28 +00:00
jamiesensei
19110c573d added new 'cancel' element type and introduced new is_cancelled() MoodleQuickForm method.
also used new cancel button in all mod_forms as well as a 'Revert' button and reworked logic about where to go on cancel or after submission for modedit.php
2006-12-04 09:36:30 +00:00
jamiesensei
74e01e6281 changed name of submit buttons to submitbutton instead of sumbit as submit was conflicting with method form.submit() 2006-11-24 16:38:22 +00:00
jamiesensei
e24b7f851a some restructuring of formslib - moving moodleform_mod definition to new file course\moodleform_mod.php and some changes to moodleform_mod standard elements setup and moodleform disabledIf API 2006-11-24 06:39:15 +00:00
jamiesensei
abf11956f9 changed method name addDependency to disabledIf and removed data/mod.html 2006-11-22 15:19:20 +00:00
jamiesensei
621c4b7d87 added dependencies to form 2006-11-22 11:09:24 +00:00
jamiesensei
a02c77dc6e glossary form migrated to formslib
and other formslib forms now using $COURSE global
2006-11-13 07:52:01 +00:00
jamiesensei
de5a83bc45 removed extra erroneous help button 2006-11-10 02:23:12 +00:00
jamiesensei
6403e67965 migrated mod/data/mod.html to formslib. Still to add lockoption functionality. 2006-11-09 19:44:20 +00:00