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
moodler
6ba2c73d04
More fixes for the help on required fields
2007-01-13 04:54:44 +00:00
moodler
49c7f3a850
Tidying up form appearance
...
1) Changed required/advanced images to something language neutral (asterisks)
2) Moved them to pixpath so people can override them easily
3) Hide the images completely using CSS (keep them only for accessibility)
so that all the labels have a consistent alignment.
4) Use CSS to color the labels instead.
2007-01-13 04:24:15 +00:00
skodak
beac4717de
MDL-8166 rename in/out methods in formslib - HQ consensus
2007-01-12 18:52:09 +00:00
skodak
dd07bbac59
MDL-8157 improved hadling of conditions in disabledIf formslib method
2007-01-12 09:38:02 +00:00
jamiesensei
98af2d1dc3
small fix in hardFreeze
2007-01-12 08:36:24 +00:00
jamiesensei
acc9c3e037
added hardFreeze method and used it in edit_form.php it ensures frozen elements have persistantFreeze property set to false.
2007-01-12 06:19:39 +00:00
jamiesensei
0ffb4cc703
special handling of frozen fields - frozen elements pass the default value (set by set_defaults or setDefault) and ignore submitted data in data_submitted()
2007-01-12 04:36:02 +00:00
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