940 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
a8976119dc Merge branch 'MDL-46542' of https://github.com/timhunt/moodle 2020-02-05 09:32:32 +01:00
Tim Hunt
87554981f0 MDL-46542 formslib: duration field option for which units to show
Based on the original work of Itamar Tzadok.
2020-01-30 17:08:29 +00:00
Luca Bösch
ee2bcf3645 MDL-63424 form: allow checkboxes to have req icon. 2020-01-24 17:34:48 +01:00
Eloy Lafuente (stronk7)
fd25850a8d Merge branch 'MDL-67544-master' of git://github.com/andrewnicols/moodle 2020-01-08 16:35:39 +01:00
Andrew Nicols
f04c327222 MDL-67544 form: Ensure that form errors have a unique id 2020-01-06 15:01:08 +08:00
Eloy Lafuente (stronk7)
4621917c62 MDL-67114 core: php74 fix. Fix use of scalar as array in core
There are various places where it's not guaranteed that the
variable being used is array, and instead, can be null, bool, int...

We need to check that because php74 warns about it.

Where possible we have used the coalesce operator as
replacement for isset() ternary operations.
2020-01-03 11:33:15 +01:00
Shamim Rezaie
2bfc16ad2a MDL-67151 forms: Support for the scientific format in the float element 2019-12-03 16:52:22 +11:00
Andrew Nicols
3c150de283 MDL-67218 form: Do not clear grade when rescaling not enabled 2019-11-12 11:29:34 +08:00
Eloy Lafuente (stronk7)
ed2fb5710f Merge branch 'MDL-67048_master' of https://github.com/adpe/moodle 2019-11-08 00:45:05 +01:00
Marina Glancy
9f2c665999 MDL-67084 core_form: duration element should export arrays 2019-11-07 19:21:16 +08:00
Adrian Perez
a40cb785b0 MDL-67048 progressbar: use bootstrap component to fix invert colors 2019-11-05 22:33:27 +01:00
Andrew Nicols
408eb5e0d9 MDL-66399 editor: Only set h5p settings if user can deploy 2019-11-05 14:19:08 +08:00
Adrian Greeve
f025022d62 Merge branch 'MDL-66679-master' of https://github.com/sammarshallou/moodle 2019-11-04 19:21:42 +08:00
Andrew Nicols
760a745afc Merge branch 'MDL-66399-master-6' of git://github.com/bmbrands/moodle 2019-11-01 10:45:22 +08:00
Bas Brands
59e87e6274 MDL-66399 atto_h5p: allow h5p file uploads in atto 2019-10-31 10:58:37 +01:00
sam marshall
225eb7b27e MDL-66679 Forms: Submit button remains disabled after file download
When you download a file directly from a Moodle form submit button,
the submit button disables when you click it, but you remain on that
page so we need to re-enable the button.

This commit causes it to re-enable once the file download finishes,
setting a temporary cookie to indicate this to the JavaScript code.

It also adds a method to disable the system on a given form by
setting data-double-submit-protection="off".
2019-10-30 16:36:28 +00:00
Mathew May
072ee7f750 MDL-66074 core_form: Foce point value to always be 100 2019-10-30 13:03:59 +08:00
Andrew Nicols
92b229c5f4 MDL-66079 mod_forum: Add forum grade support
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Jun Pataleta
9f1af3771d Merge branch 'MDL-66543-master' of git://github.com/tobiasreischmann/moodle 2019-10-24 23:08:43 +08:00
Tobias Reischmann
556c4f3309 MDL-66543 forms: Make (hard) frozen textareas readonly (or disabled) 2019-10-24 13:44:15 +02:00
Adrian Greeve
3a8b78b19f Merge branch 'MDL-63125' of https://github.com/paulholden/moodle 2019-10-23 11:00:40 +08:00
Paul Holden
d25223a5c4 MDL-63125 forms: Behat test for form autocomplete element. 2019-10-21 23:24:30 +01:00
Jake Dallimore
7591d8c498 Merge branch 'MDL-66020-master' of git://github.com/marinaglancy/moodle 2019-10-16 08:37:07 +08:00
Marina Glancy
57876874c3 MDL-66020 core_form: add date selector js only when rendered 2019-10-01 12:20:24 +02:00
Tim Hunt
36f90f3ef0 MDL-66750 formslib selects: handle size attribute properly 2019-09-23 12:14:11 +01:00
sam marshall
109c77d37d MDL-38555 Forms: Prevent multiple clicking of submit button 2019-09-02 11:46:12 +01:00
Peter
02754b5165 MDL-65595 core: Remove the nowrap from the form's radio template 2019-07-31 08:15:00 +08:00
Ryan Wyllie
195ea4480b MDL-62497 javascript: build AMD modules with new transpiler 2019-07-19 14:12:49 +08:00
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
Adrian Greeve
eee677c024 Merge branch 'MDL-53140-master' of git://github.com/rezaies/moodle 2019-05-01 10:30:22 +08:00
Shamim Rezaie
e240a0000a MDL-53140 forms: Added the float form element to the form API 2019-05-01 12:10:23 +10:00
Shamim Rezaie
f8c31abad0 MDL-53140 forms: Implement validateSubmitValue for the group element
The group element needs to call validateSubmitValue() for all of its
containing elements.
2019-04-29 23:43:11 +10:00
Marina Glancy
521989ec56 MDL-65217 form: id for error area 2019-04-29 14:23:27 +02:00
Marina Glancy
086aa543b9 MDL-65217 form: allow to pass attributes to course element 2019-04-29 14:23:27 +02:00
Ruslan Kabalin
91a485a040 MDL-65217 core_form: use defined element id for filemanager.
Removing unnamed input element (was introduced in ce47962), this has no
purpose apart of being label destination.
2019-04-29 14:23:27 +02:00
Ruslan Kabalin
0ceb6751aa MDL-65217 core_form: use uniqie element ids in listing. 2019-04-29 14:23:26 +02:00
Ruslan Kabalin
54e067dd47 MDL-65217 core_form: use uniqie element id in filepicker 2019-04-29 14:23:26 +02:00
Marina Glancy
3340758b98 MDL-64151 forms: select element without selection
Select element that is not multiple should export null when nothing is
selected. If the element is displayed there will always be something
selected.
2019-04-24 11:34:13 +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
Eloy Lafuente (stronk7)
1e36bcfb67 Merge branch 'MDL-64151-master' of git://github.com/marinaglancy/moodle 2019-04-23 19:26:47 +02:00
Marina Glancy
e66acce81a MDL-64151 form: autocomplete element remove last choice
This is the same situation as was in MDL-56864 but now in 'course', 'autocomplete' and 'select' elements
- if the element allows multiple selection it is impossible to remove the last element
2019-04-11 10:00:22 +02:00
Mathew May
5db1ce5331 MDL-64506 templates: BS2 pull-x -> BS4 float-x 2019-04-03 19:47:13 +08:00
Mathew May
485932602d MDL-64506 theme: Move templates from lib/form 2019-04-03 10:07:41 +08:00
Mathew May
e969e96279 MDL-64506 theme: Create empty form templates 2019-04-03 10:07:41 +08:00
Ryan Wyllie
858179b024 MDL-64820 forum: fix behat tests 2019-03-22 09:31:21 +08:00
Marina Glancy
76f2d89471 MDL-10965 course: search only courses with completion
it is quite often when we need to have an autocomplete element that searches courses that
have completion enabled. This commit adds an option for the 'course' form element, and also
changes two places where we search for courses with completion. This should fix MDL-58989
2019-04-10 12:35:29 +02:00
Marina Glancy
beff3806d6 MDL-10965 courses: capability to browse course list 2019-04-10 12:35:28 +02:00
Adrian Greeve
ceea116626 Merge branch 'MDL-55211-master' of git://github.com/damyon/moodle 2019-02-18 09:34:43 +01:00
Davo Smith
87c7fb6e9a MDL-64557 modform: switch disabledIf to hideIf, where appropriate 2019-02-12 10:18:04 +00:00