Commit graph

148 commits

Author SHA1 Message Date
Mark Nelson b16bf5ccb6 Added QR code element (#146) 2020-04-17 16:03:07 +02:00
Mark Nelson 7532606ffa Downgrade version.php for daterange element 2020-04-17 15:47:33 +02:00
Mark Nelson 5da5b675ab Add ability to specify the current date for date related elements (#289) 2020-04-17 15:42:36 +02:00
Mark Nelson d2f12c859c String improvements for date range element
Also added a help button to reduce the wall
of text.
2020-04-17 15:42:30 +02:00
Mark Nelson 50e8374596 Fixed PHPDoc reference to edit_element_form 2020-04-17 15:42:25 +02:00
Mark Nelson 0652441d45 Use negative numbers for constants in date range element
The reason being that we may have a module that has
an id matching one of these values.
2020-04-17 15:42:18 +02:00
Mark Nelson 8c03508a40 Fix complaints found by local_moodlecheck 2020-04-17 15:42:08 +02:00
Mark Nelson 4c639bbe3e Minor changes (#185) 2020-04-17 15:41:32 +02:00
Dmitrii Metelkin 4d62cde7f3 Use repeat form element for date ranges (#185) 2020-04-17 15:41:24 +02:00
Dmitrii Metelkin 2866aa7c6b Remove empty line (#185) 2020-04-17 15:41:18 +02:00
Dmitrii Metelkin 9021794049 Add new placeholders and update help description (#185) 2020-04-17 15:41:10 +02:00
Dmitrii Metelkin 8f006a2600 Rename first_year and last_year placeholders (#185) 2020-04-17 15:41:06 +02:00
Dmitrii Metelkin 71b0a8bd0e Update description string (#185) 2020-04-17 15:40:59 +02:00
Dmitrii Metelkin 9874a2bd0d Add tests to support functionality (#185) 2020-04-17 15:40:54 +02:00
Dmitrii Metelkin ea868e3cd3 Improve the logic of recurring ranges (#185) 2020-04-17 15:40:49 +02:00
Dmitrii Metelkin 82aa988db4 Recursively check recurring date ranges (#185) 2020-04-17 15:40:43 +02:00
Dmitrii Metelkin 3cd85428df Add an empty line to the end of styles.css (#185) 2020-04-17 15:40:37 +02:00
Dmitrii Metelkin 48024d2b77 Update lang strings (#185) 2020-04-17 15:40:31 +02:00
Dmitrii Metelkin 0eb96e3605 Be more strict about 12 months limit (#185) 2020-04-17 15:40:23 +02:00
Dmitrii Metelkin 36ec9188fa Modify recurring dateranges (#185) 2020-04-17 15:40:16 +02:00
Dmitrii Metelkin 2852683dff Add range related placeholders (#185) 2020-04-17 15:40:11 +02:00
Dmitrii Metelkin 3e69898988 Get rid of useless css rule (#185) 2020-04-17 15:40:06 +02:00
Dmitrii Metelkin 92b15ecb06 Change a way of displaying date ranges on the edit element page (#185) 2020-04-17 15:40:00 +02:00
Dmitrii Metelkin 057cf92f03 Add recurring option to dateranges (#185) 2020-04-17 15:39:55 +02:00
Dmitrii Metelkin 59fe72c7ca Use element name in the preview mode (#185) 2020-04-17 15:39:49 +02:00
Mark Nelson e0cdcb07b9 Bump date range element version numbers (#185) 2020-04-17 15:39:41 +02:00
Dmitrii Metelkin d91639e4ed Add date range element (#185) 2020-04-17 15:39:34 +02:00
mwithheld 6d0c4160f7 Do not fail if multiple certificate issues (#304)
Fix another location of this problem.
2020-04-07 13:46:29 +02:00
Mark Nelson 92e0029623 Incorrect PHPDocs for render_form_elements and co (#271) 2019-05-28 14:35:30 +08:00
Mark Nelson 1b756fbd5b Make it clear what element values are just an example (#144) 2018-12-31 10:16:58 +08:00
Mark Nelson d12e752d1a Use course module context when calling format_string/text (#200) 2018-12-28 15:09:40 +08:00
Mark Nelson 961a3f02f0 Prevent exception when adding 'teachername' element to site template (#261) 2018-12-27 09:08:31 +08:00
Mark Nelson 13ddab941f Add ability to set transparency on images (#186) 2018-12-20 09:16:31 +08:00
Mark Nelson 32338c9aa7 Make use of the decimal value setting
We should use this instead of our own logic.
2018-12-19 14:19:27 +08:00
Mark Nelson a55b253cff Fixed logic so site templates work as expected (#160) 2018-12-17 16:41:21 +08:00
Mark Nelson cf93b540d6 Hide completion date option if not applicable (#160) 2018-12-17 16:28:16 +08:00
Mark Nelson 210e61e227 Fixed misleading version number in requires comment 2018-07-28 12:43:03 +08:00
Mark Nelson 26ea75479f #171 Only get teachers who are enrolled within the course 2018-07-13 20:46:17 +08:00
Mark Nelson 9440dea72c #210 Allow short dates with leading zeros 2018-07-13 12:17:35 +08:00
Mark Nelson ef285e6075 #210 Improve code for adding date strings to select 2018-07-12 18:09:47 +08:00
Mark Nelson 7bff2c5367 #196 Use FORMAT_HTML when calling format_text() (again)
This commit is not as vital as the previous one as it
does not affect the layout of the PDF.
2018-06-07 20:10:38 +08:00
Mark Nelson 308b8d1e19 #196 Use FORMAT_HTML when calling format_text() 2018-06-07 18:55:54 +08:00
Mark Nelson 3b2a45d755 #170 Elements now respect filters 2018-06-06 22:58:47 +08:00
Mark Nelson 13eb4509de Bump version for 3.5 2018-05-17 17:19:43 +08:00
Mark Nelson 1e977bbf31 #189 Implemented privacy provider for GDPR compliance 2018-05-15 18:21:13 +08:00
Mark Nelson 60398c42aa Bumped version for 3.4 2017-11-13 12:02:16 +08:00
Mark Nelson 981fd1828c #98 Add ability to display the date and grade for all grade items 2017-11-11 21:00:23 +08:00
Mark Nelson cc22ebbac2 #98 Moved helper functions used by multiple elements
Also did the following -

1. Changed get_grade_items() so it takes a course parameter.
2. Renamed get_grade() and get_mod_grade() and changed functionality
   slightly to use newly introduced class.
3. Do not return a date graded value if there is no grade.
4. Added course grade date as an option to the date element.
5. Fix inconsistency between number of decimals showing for a grade
   between the drag and drop interface and the PDF.
2017-09-12 21:54:38 +08:00
Mark Nelson f3d48abee5 Removed improper use of self 2017-09-10 14:57:23 +08:00
Mark Nelson 20126a0fa2 Fixed Moodle PHPdoc check complaint 2017-09-05 10:52:03 +08:00