Marina Glancy
8ff19f8c0f
MDL-63685 core_form: for modal forms take parameters from request
...
When we deal with modal form submission we can not call optional_param inside the form class because
it does not have information from the AJAX form submission
2019-05-05 22:27:50 +02:00
Peter
cb28132dce
MDL-65069 mod_forum: Remove unused code and additional dev docs.
...
Additional updates to setting default subscription value for discussions
2019-04-24 12:01:37 +08:00
Peter
e455d6f483
MDL-65069 core_form: Expose the form's submit's class attribute
...
Exposed the submit button's class attribute so it can be overriden by
custom classes provided by the programmer.
2019-04-24 10:29:30 +08:00
Mark Nelson
a91a4dd77b
MDL-59740 core_form: add ability to specify if a button is primary
2017-08-07 17:37:14 +08:00
Damyon Wiese
ce18fb1e86
MDL-55417 forms: Change iscancel property to issecondary for submit buttons
...
This is more future proof for the template.
Part of MDL-55071
2016-09-23 10:53:31 +01:00
Damyon Wiese
344321e1ef
MDL-55417 forms: Clean up form element template patch
...
Use a trait and a base mustache template for all form elements to reduce code
duplication and increase standardisation.
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Damyon Wiese
91bda4cd45
MDL-55417 forms: Render form elements with a template
...
This change allows form elements to be overridden with a mustache template.
The template can even listen for form validation errors and supply the JS to
change the look of the form element when there is/isn't a validation error.
Initial support is for all core form elements including:
text, select, selectyesno and checkboxes, groups, dateselector, datetimeselector,
autocomplete, modvisible, advcheckbox, button, duration, filemanager, filepicker, editor, static, grading,
warning, textarea, password, url, submit, questioncategory, recaptcha.
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Marina Glancy
1a0df5535e
MDL-52081 forms: Use __construct() for constructors
2015-12-10 13:38:01 +08:00
Sam Hemelryk
80b3780a53
Revert "MDL-38555 forms: Prevent same data submission multiple times."
...
This reverts commit 761670208a97c0ed7e1ff7c2e6a7ec5494eb93d3.
2013-06-19 13:45:46 +12:00
Ruslan Kabalin
761670208a
MDL-38555 forms: Prevent same data submission multiple times.
...
This disables Submit button when the form has been submitted to
prevent consequent submissions before the page has been loaded.
2013-06-12 15:19:47 +01:00
Frederic Massart
95114b18e5
MDL-30844 Accessibility: orphan label in form action buttons
2012-06-25 10:18:42 +08:00
Rajesh Taneja
6c1fd30484
MDL-30974 form: Checked and updated docblock for form library
2012-02-15 12:55:06 +08: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
skodak
3e8b394e08
MDL-19416 fixed PHP 5.3 compatiblity issue - fixes weird use of constructors in quickforms
2009-06-07 09:43:27 +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
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
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
0e6303103b
fixed a couple of bugs in custom elements
2006-11-21 10:14:38 +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