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
jamiesensei
c08ac01627
added new dummy function to moodleform to allow some defintion to be done for the form dependent on data values.
2006-10-16 12:07:44 +00:00
jamiesensei
5bc97c9862
Fixed a bug with client side validation of form fields.
...
Added some default error messages for rules specified in lang pack as err_{rulename} Use the default by setting the rule message to null.
2006-10-14 12:32:31 +00:00
jamiesensei
c56f18269e
added some methods to give a choice of
...
setDefault and setDefaults
setHelpButton and setHelpButtons
setType and setTypes
2006-10-12 14:15:59 +00:00
skodak
e7dcb0fccc
moodleform->validation() receives slashed $data now to make it similar to data_submitted() and prevent potential SQL injections
2006-10-12 09:53:32 +00:00
skodak
7f40a229a4
New version of formslib.php (see MDL-6914 for more details), course/edit2.php is disabled for now - working on edit3.php ;-)
...
More inline comments/docs today.
2006-10-12 07:33:57 +00:00
jamiesensei
e9d39a3215
added new form element datetimeselector
2006-10-11 06:30:03 +00:00
jamiesensei
29f1cae1b0
removed htmleditors array - not needed
2006-10-09 11:34:43 +00:00
jamiesensei
230a910a0b
added 2 new methods to form class data_submitted and setDefault
...
Fixed bug in id generation
2006-10-09 08:32:30 +00:00
jamiesensei
15fdf6199e
wrapping group element in a fieldset tag
2006-09-28 04:19:56 +00:00
jamiesensei
49c5368707
changes to html structure for rendering of forms in line with http://moodle.org/mod/forum/discuss.php?d=54907#250816
2006-09-27 19:12:52 +00:00
jamiesensei
e249661fbb
fixed small typo
2006-09-27 16:07:37 +00:00
jamiesensei
42f248e659
new security features added acceptGet, optional_param, required_param, clean_param, methods added to form class
2006-09-27 16:00:19 +00:00
jamiesensei
f8857b4925
adding static element class to registry of Moodleform elements
2006-09-26 13:55:51 +00:00
jamiesensei
80f962df90
* added error message for setHelpButton method not existing
...
* modified htmleditor class so that differences in formatting for this element are defined by css but use the same html
* added type name of element classes to css wrapper class names
2006-09-26 09:42:42 +00:00
jamiesensei
864cc1de64
moved code turning on pear error printing if in debug mode to the top of formslib.php
2006-09-25 11:08:44 +00:00
jamiesensei
da6f876395
This is a first cut of a new formslib.php a library of classes for creating and securely processing forms in Moodle, based on PEAR QuickForms. Only uses XHTML and CSS and no table tags.
...
This is NOT YET PART OF THE MOODLE API it is here for experimental purposes.
2006-09-24 17:04:51 +00:00