skodak
26de8d35ce
fixed text field widths in new forms
2007-01-11 19:47:08 +00:00
skodak
7dc22930f7
choosecoursefile file selection fixed
2007-01-11 11:33:44 +00:00
skodak
9eb9e038f9
MDL-8144 Fixed can not force free format selection
2007-01-11 09:41:13 +00:00
jamiesensei
0709d4d5f5
some xhtml validity fixes for the case that select and text elements are 'frozen'
2007-01-11 04:57:57 +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
jamiesensei
08224df157
migrated randomsamatch to formslib.
...
fixed small typo in quiz mod_form
2007-01-08 13:58:42 +00:00
jamiesensei
111be766b6
changed implementation of advcheckbox so as to keep PEAR code seperate to Moodle code.
2007-01-07 16:41:06 +00:00
jamiesensei
cfcfddbcbf
new formslib element type advcheckbox prepends a hidden element to a checkbox so a value is submitted whether the checkbox is checked or not.
2007-01-07 16:11:48 +00:00
jamiesensei
271ffe3f25
various formslib work including bug fixes for MDL-8039 id attribute collision between forms and page ids. Also added editor helpbutton. This is a fix for MDL-6941 need the ability to associate several helptopics with htmleditor. Also started on converting forms for question types to formslib.
2007-01-07 12:46:47 +00:00
tjhunt
9e93222df2
questioncategory formslib.php form control.
2007-01-05 16:46:28 +00:00
jamiesensei
18a7736107
added helpbuttons to htmleditors where needed. Further work on htmleditor helpbutton code.
2007-01-05 04:51:46 +00:00
jamiesensei
ff768bc57e
small fix to button
2007-01-04 11:30:37 +00:00
jamiesensei
5ce73257ab
some bug fixes in setHelpButton internals.
...
added new editorhelpbutton function that can be used to refer to several help topics.
2007-01-04 10:23:06 +00:00
jamiesensei
a23f0aaf95
* Added setAdvanced functionality see http://docs.moodle.org/en/Development:lib/formslib.php_setAdvanced
...
* Added MoodleQuickForm method closeHeaderBefore($elementName); http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#Use_Fieldsets_to_group_Form_Elements
* Added moodleform method add_action_buttons(); see http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#add_action_buttons.28.24cancel_.3D_true.2C_.24revert_.3D_true.2C_.24submitlabel.3Dnull.29.3B
* is_cancelled method added to moodleform http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
* added hidden labels to elements within groups such as the date_selector select boxes and other elements in 'groups'
* quiz/mod.html migrated to formslib
* glossary/edit.html migrated to formslib
* extended registerNoSubmitButton() functionality to automatically add js to onclick to bypass client side js input validation.
* added no_submit_button_pressed() function that can be used in a similar way to is_cancelled() as a test in the main script to see if some button in the page has been pressed that is a submit button that is used for some dynamic functionality within the form and not to submit the data for the whole form.
* added new condition for disabledIf which allows to disable another form element if no options are selected from within a select element.
* added default 'action' for moodleform - strip_querystring(qualified_me()) http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
2006-12-19 07:03:08 +00:00
jamiesensei
19194f825a
added setAdvanced MoodleQuickForm method. And added closeHeaderAfter method
2006-12-14 12:44:10 +00:00
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