178 Commits

Author SHA1 Message Date
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
jamiesensei
2b63df96c3 migrated mod/forum/post.php to formslib and fixed a string in course/edit_form.php 2006-11-07 08:48:18 +00:00
jamiesensei
e995c46e24 fix for :
$this->_form->getElement('allowedmods')->
                        updateAttributes(array('disabled' => 'disabled')) ;
 that didn't work in PHP 4. (calling a method on a returned object)
2006-10-19 07:12:11 +00:00
jamiesensei
c08ac01627 added new dummy function to moodleform to allow some defintion to be done for the form dependent on data values. 2006-10-16 12:07:44 +00:00
jamiesensei
5bc97c9862 Fixed a bug with client side validation of form fields.
Added some default error messages for rules specified in lang pack as err_{rulename} Use the default by setting the rule message to null.
2006-10-14 12:32:31 +00:00
skodak
a81bf9c3ce refactored course/edit2.php and edit_form MDL-6914 ; set $CFG->use_new_forms=1; in config.php if you want to test it ;-) 2006-10-13 09:58:53 +00:00
jamiesensei
d9dce4e7b1 changed $default to $toform - more meaningful 2006-10-10 07:16:05 +00:00
jamiesensei
461f512795 moved setting of defaults from edit2.php to edit_form.php 2006-10-10 07:05:19 +00:00
jamiesensei
0d26ea7af9 fix for bug that value of restrictmodules field wasn't available which breaks disabling of allowedmods multiple select 2006-10-09 11:23:23 +00:00
jamiesensei
230a910a0b added 2 new methods to form class data_submitted and setDefault
Fixed bug in id generation
2006-10-09 08:32:30 +00:00
jamiesensei
49c5368707 changes to html structure for rendering of forms in line with http://moodle.org/mod/forum/discuss.php?d=54907#250816 2006-09-27 19:12:52 +00:00
jamiesensei
5f2256f3ee modifications made to demo new security features 2006-09-27 15:58:45 +00:00
jamiesensei
5ae7038594 modified api to create an htmleditor element 2006-09-26 16:40:35 +00:00
jamiesensei
2462a50af3 changed some assignments to assignment by reference when instantiating objects. 2006-09-26 11:13:51 +00:00
jamiesensei
80f962df90 * added error message for setHelpButton method not existing
* modified htmleditor class so that differences in formatting for this element are defined by css but use the same html
* added type name of element classes to css wrapper class names
2006-09-26 09:42:42 +00:00
jamiesensei
01963b9552 This is a demo of the experimental formslib. It is used here to print and process the course settings form. 2006-09-24 17:14:44 +00:00