Commit Graph

151 Commits

Author SHA1 Message Date
mjollnir_ e2a1ed12de MDL-18405 formslib: split is_validated into two separate functions for more flexibility for callers to override the default behaviour. 2009-06-02 10:37:24 +00:00
tjhunt 5636aa5494 formslib: MDL-15827 disabledif option to repeat_elements did not work if you depend on another repeated element.
Patch thanks to Matthieu Nué.
2009-03-18 07:08:25 +00:00
tjhunt 4b2839e2a5 formslib: MDL-17403 add accept-charset="UTF-8" to all formslib forms. Backported from HEAD. 2009-02-17 07:24:58 +00:00
tjhunt c353917324 Remove unnecessary extra $Id$ tag. It messes up the unmerged files list, and makes merging extra difficult. 2008-12-01 07:09:44 +00:00
nicolasconnault 2bc741e66a MDL-16962 New formslib element for dropdowns with a link to another page. Applied to outcome item and outcome edit pages. 2008-10-22 09:09:31 +00:00
skodak 8c5ea44aaf MDL-16839 forms: workaround for problematic hard frozen values 2008-10-13 19:38:49 +00:00
jamiesensei 1b19052646 MDL-16842 "Adding group of elements in function lib/formslib.php/repeat_elements() not working correctly" Fixed using fullclone instead of clone now. 2008-10-13 11:50:14 +00:00
moodler 023fc40de4 MDL-9683 Fixed error call for when confirm_sesskey() fails in formslib 2008-09-08 02:41:40 +00:00
tjhunt 1dcdf87bcc MDL-16202 formslib show/hide advanced button does not work with strict XML headers 2008-08-28 07:52:17 +00:00
dongsheng d17e23ee7a MDL-12611, realign the help icon 2008-04-09 03:43:05 +00:00
dongsheng 2293c3cd02 MDL-12611, realign the metacourse help and cost help icon 2008-04-09 03:32:14 +00:00
dongsheng cbb5738c23 MDL-12611, fix the alignment of help icons. 2008-04-08 03:28:21 +00:00
nicolasconnault 49e1894df3 MDL-13796 Most of the recaptcha implementation is done. 2008-03-10 17:21:32 +00:00
skodak 7c6e10fe39 MDL-90 fixed quickforms pear include regression 2008-02-27 11:08:01 +00:00
nicolasconnault dbb552852a MDL-12389 Removed the selectallornone element in favour of a more generic submitlink element. The checkbox controller is now added to a form using moodleform::add_checkbox_controller. 2007-12-04 10:27:14 +00:00
nicolasconnault 3e328cac4e MDL-12389 Added a new getElementsByClassName function in lib/javascript.php, added the selectallornone formslib element, modified the advcheckbox element to support the group variable, and implemented the new element in grade_export_form 2007-12-03 15:42:08 +00:00
skodak a11abf14cb MDL-12130 fixed regression - disabledIf did not work in dateselectors 2007-11-24 13:36:13 +00:00
skodak ef4ad6c66e MDL-12133 validate() method tidying up 2007-11-23 22:12:34 +00:00
tjhunt 09846a54ad MDL-12133 - Errors calling parent::validation in a moodle form subclass because the base class method returns true not an empty array. This patch allow subclasses to start their validate method with
$errors = parent::validation($data, $files);

which is what you naturally want to do if you are used to object oriented programming.
2007-11-20 15:07:48 +00:00
skodak 056ac15288 MDL-12041 fixed groupmode flag in cm when mode forced in course 2007-11-17 17:40:46 +00:00
skodak 16ba1b0cf2 MDL-12199 problem with "Show advanced" used after pressing of enter in forms 2007-11-17 13:29:14 +00:00
skodak 8490c5350e MFC: MDL-12130 and MDL-12129 - fixed advanced status of elements when header not closed; disableIf now works inside grouped elements too; code cleanup in focus() and _getElNamesRecursive() 2007-11-12 17:14:52 +00:00
tjhunt 6f3b54c8aa MDL-9076 - Move the 'Add 3 more overall feedbacks' button inside that group of elements on the quiz settings form.
To make this possible, I added an extra argument to the repeat_elements method, which other people may find helpful on other forms.
2007-10-09 15:44:06 +00:00
skodak 89489cfe94 MDL-11460 2007-09-26 19:25:50 +00:00
skodak b6b1d1cac1 MDL-11460 new function moodleform->get_file_content($elname) in case we need to get content of uploaded files 2007-09-26 16:53:26 +00:00
nicolasconnault 31a6c06c46 MDL-11433 Implemented grade_items.decimals instead of user preference in grader report. 2007-09-25 14:40:49 +00:00
jamiesensei 41b6d0011c MDL-11318 formslib now respects a template for an element if it is set. But since formslib uses the templates to insert help buttons for setAdvanced functionality etc. if you use templates you will lose this functionality. 2007-09-18 09:35:44 +00:00
nfreear f8b9ac7418 MDL-11134, Accessibility: move help link into <label>, so it won't be ignored in JAWS forms mode. 2007-09-05 14:34:33 +00:00
nicolasconnault 0f78c4de3d MDL-11028 GUI complete, language strings complete, user key creation done. Validation is not yet coded. 2007-08-29 11:43:48 +00:00
urs_hunkler c02345e398 added spaces before the divs too for req and adv icon alignment.
added ftoggler class to the labels and fcontainer div within the fieldset to be able to toggle the fieldsets open and collapsed with a JS framework.
2007-08-03 13:28:03 +00:00
skodak 4f51f48fdf reverting last commit 2007-08-03 13:08:05 +00:00
urs_hunkler cbdb3705ce Added a space before divs too 2007-08-03 11:51:14 +00:00
urs_hunkler 620cd35d39 Added a space behind advancedimg to correct aligning in forms :: second approach, the first one didn't work in IE 2007-08-03 11:00:11 +00:00
urs_hunkler e4d0193411 Added a space behind advancedimg to correct aligning in forms. 2007-08-03 09:30:36 +00:00
skodak af15f9cc53 MDL-10439 yet another attempt to fix definition_after_data() - see the bug report for sample usage 2007-07-18 08:48:28 +00:00
skodak 128c87a442 MDL-10439 call definition_after_data() from moodleform constructor only when form submitted 2007-07-17 07:48:58 +00:00
skodak 943e3dcdd2 MDL-10382 new fix, I hope it works now 2007-07-12 07:57:26 +00:00
jamiesensei df2c2310e5 Reverted previous fix for MDL-10382 Allow removing of elements with disabledIf conditions - "This fix has broken disabledIf in many forms. The problem is that if the dependentOn element is an element in a group then elementExists will return false." 2007-07-12 06:01:17 +00:00
skodak 854386bc04 MDL-10382 Allow removing of elements with disabledIf conditions 2007-07-08 21:31:14 +00:00
jamiesensei 43914931f7 validation can return an empty array() or true to indicate no errors. array() is preferred since then parent class validation functions can be chained. Changing moodle_form validation method to return array() so that chaining works in question types. Shouldn't affect other forms code. 2007-07-06 04:03:51 +00:00
toyomoyo f4bee9e580 added a method that returns the submitted data without validation MDL-10181, please let me know if this is not needed, thanks 2007-07-04 02:32:08 +00:00
stronk7 6f05b1e149 Registering the choosecoursefileorimsrepo form element to
show the "Browse Repository" button
for IMS-CP resources type. (MDL-10036)

Merged from MOODLE_18_STABLE
2007-07-02 16:51:50 +00:00
jamiesensei 3673f6bc3b added more phpdoc comments for hardFreezeAllVisibleExcept 2007-05-28 00:50:11 +00:00
jamiesensei 56015454dd new method hardFreezeAllVisibleExcept 2007-05-28 00:46:11 +00:00
jamiesensei 64360ee7b5 made hardFreeze work properly for a whole form. New paramater in moodleform constructor 'editable' defaults to true. If true then display form as normal. If false then hardFreeze whole form. Now displays form without an submit buttons. If form is hard frozen no data is ever passed to get_data. 2007-05-27 05:01:51 +00:00
jamiesensei 9ae3af87ae MDL-9856 allow passing moodle_url to moodle_form constructor as action instead of passing url as a string 2007-05-21 16:11:17 +00:00
jamiesensei f161729e21 new element for formslib selectgroups is a select drop down with options grouped into optgroups 2007-05-20 11:48:02 +00:00
poltawski a044c05ddb MDL-9742 - changed tabs to spaces in a few places where there are one
or two
2007-05-08 15:07:25 +00:00
skodak 54bb33eb10 MDL-9652 rename new password reveal to unmask 2007-04-30 18:03:19 +00:00
tjhunt 7c77033fb6 MDL-9524 - Formslib gets confused if a required field is frozen. Merged from MOODLE_18_STABLE. 2007-04-23 16:19:25 +00:00