moodler
5e87b920e3
Added CDATA to Javascript
2006-12-22 04:52:13 +00:00
jamiesensei
da43c002ff
fix for MDL-7937 'Fatal error: Call to a member function on a non-object in /var/www/dev/lib/pear/HTML/QuickForm.php on line 602 error'
2006-12-19 11:18:06 +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
moodler
0a5872450a
Commented out header.php because it's not in CVS yet
2006-12-18 04:43:12 +00:00
moodler
2ae2200286
Removed bad character
2006-12-18 04:38:53 +00:00
jamiesensei
19194f825a
added setAdvanced MoodleQuickForm method. And added closeHeaderAfter method
2006-12-14 12:44:10 +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
skodak
fed13a5e88
MDL-7807 duplicate error messages in client side validation, errorSpan inserted only once
2006-12-05 21:48:44 +00:00
skodak
e35c9eeb5f
MDL-7807 duplicate error messages in client side validation, fixed the rest of problems I hope
2006-12-05 21:43:33 +00:00
jamiesensei
e7004d051a
fix for problem of duplicated error messages, client side validation not deleting old error message before displaying new ones.
2006-12-05 14:27:24 +00:00
jamiesensei
0befbdfd8f
petr's patch to fix problem with htmlarea breaking clientside validation. Also using id's with same naming convention as formslib for htmlareas.
2006-12-05 13:21:40 +00:00
skodak
1cbb09f1d1
MDL-7778 fixed cancel button failing on some pages (I hope)
2006-12-04 22:00:47 +00:00
jamiesensei
1c51317b2c
small change to type of returned var from is_validated()
2006-12-04 10:59:07 +00:00
jamiesensei
3ba2c1871e
*** empty log message ***
2006-12-04 10:55:50 +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
skodak
30e113f4fa
MDL-7781 Move help button out from element label in new formslib
2006-12-03 14:28:40 +00:00
skodak
0c3f57fa69
MDL-7776 Switch required and help icon - rearanged fieldset too
2006-12-03 13:05:34 +00:00
skodak
441e8334af
MDL-7776 Switch required and help icon
2006-12-03 11:26:05 +00:00
skodak
3d6851692c
MDL-7775 Remove links from required field icon - leave only onle help button per page
2006-12-03 11:10:21 +00:00
jamiesensei
2dbd640932
some fixes for disabledIf and using disabledIf in course/edit_form.php
2006-11-28 08:04:00 +00:00
jamiesensei
616b549a58
added some phpdoc comments to repeat_elements() method
2006-11-24 12:33:53 +00:00
jamiesensei
ebd3c7ac94
added repeat_elements method to moodleform and used method for choice form
2006-11-24 12:20:26 +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
skodak
c80a13c736
added new set_max_file_size method to moodleform MDL-6914
2006-11-23 08:24:58 +00:00
jamiesensei
9403060aac
fix for focus problem
2006-11-22 15:58:07 +00:00
jamiesensei
abf11956f9
changed method name addDependency to disabledIf and removed data/mod.html
2006-11-22 15:19:20 +00:00
jamiesensei
d01a38cb06
*** empty log message ***
2006-11-22 08:53:35 +00:00
jamiesensei
9c03bbaa04
more fixes for lockoptions behaviour; changes to forum/mod_form.php; removed forum/mod.html
2006-11-21 11:02:13 +00:00
jamiesensei
6e372b2591
added commenting to addDependency method and used new functionality in forum\mod_form.php
2006-11-21 09:33:48 +00:00
jamiesensei
50ef8eb9bd
adding lockoptions functionality to formslib library and added lockoptionsall() function which allows multiple dependencies for one dependent element and handles that properly.
2006-11-21 09:17:46 +00:00
jamiesensei
3c7656b4b0
added two new elements button and choosecoursefile which inherits from button
...
added $supportsgroups bool parameter with default true to give method standard_coursemodule_elements($supportsgroups=true) on moodleform_mod
2006-11-15 07:40:49 +00:00
jamiesensei
cc935f9174
fix for bug - not seeing standard elements on activity module form on some versions of PHP.
2006-11-14 05:18:39 +00:00
jamiesensei
4ea750414e
add custom submit button to registry
2006-11-14 03:00:26 +00:00
jamiesensei
d982f87978
shifted hidden elements from standard_coursemodule_elements() into standard_hidden_coursemodule_elements() so that they can be included in a form without the other visible standard elements.
2006-11-13 09:18:47 +00:00
jamiesensei
d4fe14d3e4
some changes to setHelpButton methods on elements and MoodleQuickForm to allow non standard help buttons such as the grades pop up window.
2006-11-13 07:43:22 +00:00
jamiesensei
e0f4068409
new element type 'selectyesno' and some clean up to code for modvisible and modgroupmode elements.
2006-11-12 11:30:12 +00:00
jamiesensei
da1320dab6
added many extra phpdoc style comments to file
2006-11-12 07:28:13 +00:00
jamiesensei
e2294b9822
fixes for small bugs in datetimeselector and dateselector and added custom elements to formslib library for standard module forms
2006-11-09 18:08:34 +00:00
skodak
711af2eca3
yet another fix for initialization - keep unset($element) in getValidationScript() for now, need more tweaking later
2006-11-09 11:19:35 +00:00
skodak
0340a80da6
fixed wrong initialization - sorry
2006-11-09 11:16:40 +00:00
skodak
38f394b267
fixed trailing whitespace
2006-11-09 10:43:26 +00:00
skodak
05f5c40c85
added inline docs to moodleform class, minor file upload fix, postprocessing using validation_after_data() also in set_default() method
2006-11-09 10:42:44 +00:00
skodak
49292f8c8d
initial support for file uploads in new forms library, docs and minor changes to be done later
2006-11-09 08:38:40 +00:00
jamiesensei
bb40325e1b
removed trusttext method from formslib which was unnecessary and revised trusttext use in mod/form/post.php
2006-11-08 06:22:58 +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
5c52df6797
changed focus when there is no error in the page to the first element in a form rather than no focus.
2006-10-30 06:27:15 +00:00
jamiesensei
effa85f482
added new form element class 'format' for adding format drop down box to forms.
2006-10-26 07:02:20 +00:00
jamiesensei
2c41289045
added a method to return javascript to select form element with first error for use in focus in print_header
2006-10-24 11:05:50 +00:00