Commit Graph

82 Commits

Author SHA1 Message Date
jamiesensei 78354cec8c fixed xhtml problem in repeared header elements which had [] in id. 2007-01-10 06:17:45 +00:00
jamiesensei 10a3103164 fix for MDL-8117 - div nested in span for grouped elements in formslib - changed spans to div 2007-01-10 05:26:22 +00:00
jamiesensei 9aa022feef xhtml validity fix for static element type
qtype calculated form - started
2007-01-10 05:05:26 +00:00
jamiesensei 86aab05ced fix for xhtml probs MDL-8102 and MDL-7979 - invalid id attributes.
and stopped using label tag for a group of elements where the label refers to the group of elements and not an individual one.
2007-01-08 15:53:17 +00:00
skodak 18f3ad8372 xhtml fix - now only 'for=' with wrong id is removed from labels - static and grouped elemenst (date selector), because the missing label might cause problems with CSS styling 2007-01-08 08:00:46 +00:00
jamiesensei 111be766b6 changed implementation of advcheckbox so as to keep PEAR code seperate to Moodle code. 2007-01-07 16:41:06 +00:00
jamiesensei 271ffe3f25 various formslib work including bug fixes for MDL-8039 id attribute collision between forms and page ids. Also added editor helpbutton. This is a fix for MDL-6941 need the ability to associate several helptopics with htmleditor. Also started on converting forms for question types to formslib. 2007-01-07 12:46:47 +00:00
skodak d36462eb00 MDL-7861 xhtml strict fixes - do not add label for static element in formslib, fixed wrong regex in previous commit 2007-01-06 21:22:02 +00:00
skodak 217d03a14c MDL-7861 xhtml strict fixes - do not add label for static element in formslib 2007-01-06 20:45:17 +00:00
skodak 72f46d119b MDL-8039 formslib Form id collission with body id when editing course, user details, etc. 2007-01-06 20:31:06 +00:00
tjhunt 9e93222df2 questioncategory formslib.php form control. 2007-01-05 16:46:28 +00:00
jamiesensei b07b6c8134 added 'required' class to outermost div of form elements 2007-01-05 06:47:35 +00:00
moodler f4ba7e1a54 Bend over for XHTML 1.0 Strict ... MDL-8049
Removed Javascript language attribute tags and added CDATA
2007-01-03 14:44:17 +00:00
skodak feaf5d06db MDL-8015 improved file uploading
- changed file upload api in formslib
- fixed blog attachments and related code in file.php
- fixed glossary attachments
- fixed embedded images in forum posts and blogs - only gif, png and jpeg; the problme was that svg were embedded using img tag which was wrong, the same applied to other picture formats unsupported by browsers (please note that student submitted svg should be never embedded in moodle page for security reasons)
- other minor fixes
2006-12-28 21:21:44 +00:00
jamiesensei 1d284fbd85 fixing all the form names as per new class naming convention (PHP class names are also used for html id for styling) 2006-12-28 15:43:47 +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
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