986 Commits

Author SHA1 Message Date
skodak
7850588ab8 MDL-7909 add optional id parameter to choose_from_menu() and print_textarea() + minor quoting improvement in choose_from_menu() 2006-12-12 22:06:37 +00:00
jamiesensei
44875d7898 added code to include hidden labels in groups in forms 2006-12-09 14:06:15 +00:00
jamiesensei
4dd564ddb2 small fix to disabledIf initiation 2006-12-09 11:45:24 +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
jamiesensei
dbc6607baa added some strings for labels for dateselector and datetimeselector day, month etc. elements. These are not used yet. 2006-12-07 05:37:41 +00:00
sam_marshall
de312b53bb MDL-7816 Added optional (checkbox) facility to quickform dateselector 2006-12-06 14:50:57 +00:00
skodak
1cbb09f1d1 MDL-7778 fixed cancel button failing on some pages (I hope) 2006-12-04 22:00:47 +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
jamiesensei
2dbd640932 some fixes for disabledIf and using disabledIf in course/edit_form.php 2006-11-28 08:04:00 +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
jamiesensei
02f8f37d5d added defaults for when there is no submitted data to datetimeselector and small fix for forum\mod_form.php 2006-11-23 09:38:33 +00:00
skodak
3f3944b2a9 MDL-6914 max upload file size now printed automatically as part of upload label 2006-11-22 09:59:48 +00:00
jamiesensei
002bd26872 removed redundant return 2006-11-21 10:19:28 +00:00
jamiesensei
57cf1be250 a bug fix for custom element dateselector 2006-11-21 10:18:39 +00:00
jamiesensei
4a2d352a88 oops, removed print_object that was left in from debugging 2006-11-21 10:16:01 +00:00
jamiesensei
0e6303103b fixed a couple of bugs in custom elements 2006-11-21 10:14:38 +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
f388442b26 added removeOption method to allow removing options from a select drop down 2006-11-15 07:36:00 +00:00
jamiesensei
c65795d341 checking in files for some new custom elements. And added a default help button to the format drop down box. 2006-11-14 02:57:19 +00:00
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
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
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
7f42315c13 whitespace clean up 2006-11-07 09:16:36 +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
effa85f482 added new form element class 'format' for adding format drop down box to forms. 2006-10-26 07:02:20 +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
ec929cd596 now wrapping a group element in a fieldset tag, brought id tag on checkboxes and radio boxes in line with moodle universal form structure 2006-09-28 04:18:35 +00:00
jamiesensei
04ad8eee82 added empty setHelpButton method to moodleform_hidden 2006-09-27 16:09:15 +00:00
jamiesensei
ef625b6bac added comments to show how to add nested fieldset container for groups of items 2006-09-27 16:06:56 +00:00
jamiesensei
5ae7038594 modified api to create an htmleditor element 2006-09-26 16:40:35 +00:00
jamiesensei
eb476e4adb file describing a static form element for moodle with setHelpButton method 2006-09-26 13:32:15 +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
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