jamiesensei
271e6decda
merging MOODLE_19_QUESTIONS with HEAD
2007-08-09 21:51:09 +00:00
moodler
7982426d1b
Fiexed order of time elements for RTL MDL-10768
2007-08-09 08:44:29 +00:00
tjhunt
a2cd1ed6ff
MDL-10626 - Change HTML of checkboxes etc., to make it easier to style forms
2007-07-27 11:05:34 +00:00
tjhunt
5aed30094d
Fix whitespace, and round times to the previous multiple of the 'step' option, if necessary.
2007-07-23 14:55:35 +00:00
jamiesensei
bb90bf3fb2
when element is frozen should not escape html entities in htmleditor.
2007-07-16 06:04:20 +00:00
stronk7
f7c91a30c5
Adding 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:49:39 +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
a69dacfd48
reverting back to version 1.2. Accidentally committed version 1.3 in HEAD.
2007-05-23 00:59:36 +00:00
jamiesensei
3a3c454ede
UI for editing questions changed to support sharing questions in multiple contexts. Also changed import / export and category editing form to use formslib.
2007-05-20 16:17:48 +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
skodak
ec74e82d5c
MDL-9618 Form remove option logic is incorrect - patch by Mark Nielsen; merged from MOODLE_18_STABLE
2007-05-16 20:32:01 +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
sam_marshall
3ef1be377b
MDL-9741: Fixed broken link on editor help page
2007-05-08 14:57:37 +00:00
skodak
54bb33eb10
MDL-9652 rename new password reveal to unmask
2007-04-30 18:03:19 +00:00
martinlanghoff
76ab1c33d9
Bug fix: 'off by one'month bug in mupltiple locations.
...
When the system/user time zone was set to GMT-13 months would lag behind by
one month.
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-13 05:04:57 +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
jamiesensei
db8e700b0a
fixes MDL-9195 mform->hardFreeze() doesn't remove id attribute of label for checkbox
2007-04-04 10:16:22 +00:00
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