Commit Graph

21 Commits

Author SHA1 Message Date
Jeff Webster
be41e4e518 MDL-48501 form/recaptcha: update to use reCAPTCHA v2 2018-03-08 14:48:35 -05:00
Frederic Massart
fc7f69e7e8 MDL-51948 formslib: Support forcing LTR on form elements
Part of MDL-55071
2016-09-23 10:54:49 +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
Tony Butler
1e31f11852 MDL-28484 core_lib: Add function for https detection
Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
2014-10-03 13:02:29 +01:00
Rajesh Taneja
c277b502ab MDL-31294 Forms Library: Removed deprecated functions from forms library 2012-07-24 15:09:39 +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
b608b227ba MDL-27364 use https for recaptcha when site runs via https
Based on solution by Rajesh Taneja.
2011-12-06 12:00:32 +01:00
Aparup Banerjee
bfc60f5d1b MDL-29139 Forms Library : fixed missing require_once 2011-09-22 14:57:11 +08:00
Petr Skoda
5668690321 MDL-21403 hardcoded JS legacy code should not use new $PAGE->requires-> api, switching to html_writer instead 2010-01-26 10:22:58 +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
moodler
7e13493675 form/recaptcha MDL-20144 Don't specify tabindex, for accessibility 2009-10-01 06:54:45 +00:00
samhemelryk
e4e7044acd lib-form MDL-16706 Changed inline JS to use PAGE methods 2009-07-07 08:49:00 +00:00
dongsheng
b8aa76c1a4 "MDL-19037, use getremoteaddr to get remote ip address" 2009-05-01 03:04:10 +00:00
nicolasconnault
83947a36a8 MDL-14073 New param for download_file_content: skipcertcheck. ssl now used in recaptchalib 2008-03-31 12:13:46 +00:00
nicolasconnault
c1a33301b9 MDL-13796 Removing redundant language code. 2008-03-19 05:47:55 +00:00
nicolasconnault
9b5f87d27e MDL-13796 Committing new recaptcha element 2008-03-13 15:45:16 +00:00
nicolasconnault
7c572b8c90 MDL-13796 Added help button and help file, used Snoopy in recaptchalib for proxy support, fixed lang strings, refactored validation code, used element property to pass error string around. 2008-03-11 10:34:50 +00:00
nicolasconnault
5d6308d491 MDL-13796 Most of the recaptcha implementation is done. 2008-03-10 17:32:32 +00:00