10 Commits

Author SHA1 Message Date
jamiesensei
b6d15ddef9 removed all 'Revert' buttons from forms and removed it altogether from add_action_buttons method since it was decided it didn't contribute to usability. 2006-12-28 16:12:22 +00:00
jamiesensei
1d284fbd85 fixing all the form names as per new class naming convention (PHP class names are also used for html id for styling) 2006-12-28 15:43:47 +00:00
jamiesensei
f07b9627b6 changes to how we generate the id attribute of forms and the naming convention of forms
migrate blog edit to formslib
2006-12-28 09:32:45 +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
ethem
dfe254ceab Moved ABA validator and CC validator functions to enrol_form.php 2006-11-17 13:01:04 +00:00
ethem
1bdf6d2677 <DIV>...</DIV> if other method available. 2006-11-16 16:18:20 +00:00
ethem
4e15f4b9df FIX: MDL-7561
Allow to be chosen the other payment method  if avaiable.
Now, new quick enrol form is ready for usage :)
2006-11-16 14:44:44 +00:00
ethem
3c167c58c1 Show correct string;
Credit card method: Name on card
ECheck: Account owner
2006-11-16 12:38:39 +00:00
ethem
f5fbea120f Fixed: MDL-7561
New forms api
2006-11-15 20:44:49 +00:00
ethem
19384dfb70 MDL-6937
MDL-7561
MDL-7562

Need to be used new forms api.

Please see also:

* enrol.php: check_entry(), config_form(), process_config()
* localfuncs.php: validate_cc_form(), validate_echeck_form()
2006-11-15 07:39:04 +00:00