-
Improvement
-
Resolution: Fixed
-
Minor
-
2.7.1, 3.9
-
MOODLE_27_STABLE, MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
Easy
-
The moodleform duration field allows the user to enter duration by one of the following units: weeks, days, hours, minutes, seconds.
In some use cases we may want only a subset of the unit options. For instance, students should report time spent on a certain activity either by hours or by minutes.
This can be implemented by adding to the field fourth paramter api an option 'units' that is an array of units to display.
- has been marked as being related by
-
CONTRIB-5200 Allow setting a subset of the available units in the duration field.
-
- Closed
-
-
MDL-50486 Add units option to the 'duration' form element.
-
- Closed
-
-
MDL-66185 Form: Test using any of supported option in duration element.
-
- Closed
-
- is duplicated by
-
MDL-50486 Add units option to the 'duration' form element.
-
- Closed
-