skodak
7fc1a27d05
MDL-90 fixed quickforms pear include regression; merged from MOODLE_19_STABLE
2008-02-27 11:09:27 +00:00
nicolasconnault
6073a598a7
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:35:25 +00:00
nicolasconnault
8f9607dbc8
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 20:13:01 +00:00
skodak
e850ec4846
MDL-12130 fixed regression - disabledIf did not work in dateselectors; merged from MOODLE_19_STABLE
2007-11-24 13:37:07 +00:00
skodak
a78890d593
MDL-12133 validate() method tidying up; merged from MOODLE_19_STABLE
2007-11-23 22:15:07 +00:00
tjhunt
13ccb7bd58
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.
Merged from MOODLE_19_STABLE.
2007-11-20 15:08:05 +00:00
skodak
3541cecb66
MDL-12041 fixed groupmode flag in cm when mode forced in course; merged from MOODLE_19_STABLE
2007-11-17 17:41:28 +00:00
skodak
7c9b1d315d
MDL-12199 problem with "Show advanced" used after pressing of enter in forms; merged from MOODLE_19_STABLE
2007-11-17 13:30:15 +00:00
skodak
46f3921edd
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:12:35 +00:00
jmg324
bec52f19b5
fixes notice error caused in form validation of file attachments - need not assume variable is set but use empty()
2007-11-06 15:56:00 +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
skodak
239ade458c
MDL-9239 New fromslib password element with reveal option; merged from MOODLE_18_STABLE
2007-04-06 14:18:02 +00:00
nfreear
5bff085524
Follow up fix for bug MDL-8695 "Form 'required' icon is hidden".
2007-03-30 10:52:45 +00:00
nfreear
653f890d22
Fixes bug MDL-8695 "Form 'required' icon is hidden", see commit 13 Jan (big woops, forgot to commit on 1/3).
2007-03-30 10:15:18 +00:00
moodler
8dec2253cf
Merged autofocus fixes for formslib to dev from stable
2007-03-16 01:46:17 +00:00
nicolasconnault
2ef7c374a4
MDL-8737 - Added a focus() to the generated validation JS, so that if an element fails client-side validation, the focus jumps straight to it when the submit button is clicked. This doesn't yet work with HTMLArea elements.
2007-03-12 06:43:24 +00:00
jamiesensei
bc9ec4a604
more clean fix to safari issue with fieldsets
2007-01-30 18:44:23 +00:00
jamiesensei
f60feba579
fix for bug in Safari displaying fieldsets when the last element is textarea in which case textarea tended to overlap fieldset boundary.
2007-01-30 16:55:18 +00:00
skodak
dcf6d93c9c
MDL-8323 Add proper setup of course $CFG variables, fix use of global $COURSE
...
new function course_setup() thats does proper $CFG-> , locale and themes setup much sooner than print_header() originally (needed for MDL-8067), cleanup of forgotten global $course issues
MDL-8067 Fixed several $HTTPSREQUIRED issues - html editor now loads from https (the old hack did not wotk with IE7, new hack is uglier but works), fixed formlibs images (we can not set them in library global scope, we must wait for httpsrequired() and require_login() and od that in function), fixed links in meta.php, fixed help images
fixed setting of new $USER values in user edit forms
2007-01-27 19:56:08 +00:00
skodak
4af06ddad0
MDL-8281 hardFreeze now removes previously defined required status and all rules
2007-01-25 17:59:46 +00:00
jamiesensei
3a298174e8
important security fix previous use of ['type'] in repeatedeloptions array would not have worked.
2007-01-21 10:32:42 +00:00
jamiesensei
988d1202e3
fixed focus method which was tring to focus on hidden fields.
2007-01-21 09:23:19 +00:00
jamiesensei
7b41a4a989
some more small changes to datasetdependent and calculated question type forms
2007-01-18 11:21:10 +00:00