nicolasconnault
b1c72d0a07
MDL-8807 and MDL-8564: Jamie had replaced the three group modes with Yes and No, for some
...
undocumented reason (See http://moodle.cvs.sourceforge.net/moodle/moodle/lib/form/modgroupmode.php?diff_format=h&view=log&pathrev=MOODLE_18_STABLE#revtext ).
I reverted his changes, and this seems to work normally now.
2007-03-22 05:24:29 +00:00
jamiesensei
5054ddbb59
comment got detached from function - fixed.
2007-01-21 09:14:35 +00:00
jamiesensei
f84d6a8d56
fixes to wiki form checkboxes value saving
2007-01-21 08:26:59 +00:00
jamiesensei
7043d0a756
set default for this element to return a '0' if unchecked and '1' if checked.
2007-01-19 08:08:50 +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
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