Rajesh Taneja
1ebda3eb8c
MDL-50484 lib_formslib: Persistant input should have different id
...
Persistant input is appended for frozen elements
and should have different id then the actual element
2016-02-19 14:00:04 +08:00
Rushikesh
32f2116b08
MDL-29817 Form : advcheckbox allows attributes even without group key
2016-01-21 22:37:43 +05:30
Marina Glancy
1a0df5535e
MDL-52081 forms: Use __construct() for constructors
2015-12-10 13:38:01 +08:00
Rajesh Taneja
c277b502ab
MDL-31294 Forms Library: Removed deprecated functions from forms library
2012-07-24 15:09:39 +08:00
Sam Hemelryk
58b7d48f9a
MDL-30974 forms: Last minute phpdoc fixes
2012-02-21 12:39:35 +13:00
Rajesh Taneja
6c1fd30484
MDL-30974 form: Checked and updated docblock for form library
2012-02-15 12:55:06 +08:00
Tim Hunt
820b41e34f
MDL-30168 formslib: untangle automatic id generation.
...
Previously, we had overridden the _generateId method in almost all
subclasses; and then we mostly, but not always; ignored the value that
was generated there, and instead generated new (nicer) values in
MoodleQuickForm_Renderer::renderElement. Of course, that is not really a
logical place to (re)generate ids.
I have fixed the code so that the _generateId method now uses the 'nice
id' algorithm from renderElement. This should make the whole code flow
more logical.
This make all our overriding of _generateId unnecessary.
We do need a special _generateId for radio buttons, because you often
have different radio buttons with the same name but different values.
This change should only change the ids on radio, checkbox and
advcheckbox elements. Previously, those were essentially random, so I
don't think anyone could have been relying on the particular values.
This commit also has new unit tests, first to test the basic _generateId
algorithm, and then to create and render an example form (including some
tricky things like repeat_elements) and chech the acutal ids in the
generated HTML.
2011-12-23 11:51:45 +00:00
Petr Skoda
4bcc51185c
MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions
2009-12-30 15:19:55 +00:00
Petr Skoda
4a0e2e632f
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup
2009-11-01 11:42:23 +00:00
nicolasconnault
6073a598a7
MDL-12389 Removed the selectallornone element in favour of a more generic submitlink element. The checkbox controller is now added to a form using moodleform::add_checkbox_controller.
2007-12-04 10:35:25 +00:00
nicolasconnault
8f9607dbc8
MDL-12389 Added a new getElementsByClassName function in lib/javascript.php, added the selectallornone formslib element, modified the advcheckbox element to support the group variable, and implemented the new element in grade_export_form
2007-12-03 20:13:01 +00:00
skodak
43c137ac23
applying the same patch to advcheckbox - Fixes MDL-8627, "HTML QuickForm displays (some?) disabled elements in a non-accessible way", overrides parent::getFrozenHtml.
2007-09-15 19:43:01 +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
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
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
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
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