Commit graph

103 commits

Author SHA1 Message Date
Mark Nelson
7f62e6eaec Re-add code column (#264) 2020-04-17 16:26:32 +02:00
Arnaud Trouvé
d37cc22135 Add userfullname variable for email subject (#316) 2020-04-17 16:26:32 +02:00
Mark Nelson
1bfceb6794 Incorrect PHPDocs for render_form_elements and co (#271) 2020-04-17 16:03:16 +02:00
Mark Nelson
b16bf5ccb6 Added QR code element (#146) 2020-04-17 16:03:07 +02:00
Dmitrii Metelkin
4d62cde7f3 Use repeat form element for date ranges (#185) 2020-04-17 15:41:24 +02:00
mwithheld
db81b49608 Do not fail if multiple certificate issues (#295)
Ignore multiple matches for a user-customcert combo in the customcert_issues table.
In our case, the scheduled task died when:
$issueid = $DB->get_field('customcert_issues', 'id', array('userid' => $enroluser->id, 'customcertid' => $customcert->id));
returned 2 rows, which shouldn't happen, but did anyway.

This means in rare circumstances (i.e. the race condition) the user may get multiple certificates (e.g. one via the UI, one by email) but that is better than not getting one at all and the whole job dying.
2020-04-01 15:11:33 +02:00
Mark Nelson
fc0fb240fd Always send emails from 'noreplyuser' (#165) 2019-05-28 14:35:41 +08:00
Mark Nelson
92e0029623 Incorrect PHPDocs for render_form_elements and co (#271) 2019-05-28 14:35:30 +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
a3f159dfaf Added missing implementation for privacy provider (#260) 2018-12-27 07:42:32 +08:00
Mark Nelson
9e9192c7fc Fixed issue when scales are used (#242)
The grade item's type was being hard-coded to
GRADE_TYPE_VALUE when this isn't always the
case.
2018-12-19 14:37:06 +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
5182ab60e2 Report now respects the setting 'Show user identity' (#224) 2018-12-18 09:43:43 +08:00
mwithheld
97e44d3d1d Move creating the temp directory out of the emailing for loop (#238) 2018-12-17 15:23:50 +08:00
Mark Nelson
9834d7f4b8 Removed boolean return and added a comment (#237) 2018-12-17 14:13:15 +08:00
mwithheld
255743f9e0 Reduce code nesting level in task (#237)
Make the code easier to read and understand
2018-12-17 14:10:30 +08:00
Aaron Parker
76a20a80e0 Added plaintext lang variants for email bodies and updated template (#230) 2018-12-17 11:00:51 +08:00
Sara Arjona
7ae3101ea1 #252 Privacy API update
Add support to get_users_in_context and delete_data_for_users methods
added since 3.4.6 and 3.5.3 and 3.6.
2018-12-17 10:13:15 +08:00
Mark Nelson
c8939ae526 #225 Renamed static function 2018-08-23 20:37:32 +08:00
Alexander Bias
fcaf1fefd5 #225 Allow element plugins to control if they can be added 2018-08-23 20:15:52 +08:00
Dmitrii Metelkin
ee301654d3 #213 Allow element plugins to have admin settings 2018-07-27 16:42:47 +08:00
Tristan Mackay
9f2a36d983 #176 Only get users details who are enrolled within the course 2018-07-13 14:46:38 +08:00
Mark Nelson
39ccef311e #154 Don't display 'Add page' link for unsaved templates 2018-07-12 16:13:34 +08:00
Mark Nelson
91da92f10d #187 Fix broken SQL on Oracle 2018-07-12 15:16:24 +08:00
Mark Nelson
54212da3d2 #211 Use custom fonts if present 2018-07-12 12:39:35 +08:00
Mark Nelson
2500fada80 #207 Changed download button between managers and non-managers on mobile
Also minor changes to 'notissued' string and fixed reference to
non-existent string 'notissuedyet'.
2018-07-10 14:47:02 +08:00
Mark Nelson
f3cff401b5 #207 No need to use a table/list when displaying only one issue 2018-07-10 11:13:42 +08:00
Mark Nelson
c395c7dadc #207 Follow-up UX improvements
The majority of this change involved moving
the report page logic into the view page for
both browser and mobile.
2018-07-01 20:37:20 +08:00
Mark Nelson
51c0741ecb #203 Removed 'code' column
Not all certificates contain a 'code' element,
making this column unnecessary. It may also
confuse users when it is not applicable. For
those who are interested they can always use
the 'verify' functionality to confirm
certificates, rather than using this page.
2018-06-26 19:25:02 +08:00
Mark Nelson
e7a7f0aef5 #203 Don't display group select on activity view page 2018-06-19 21:37:33 +08:00
Mark Nelson
de2709ae54 #203 Don't show 'Awarded on' date to managers 2018-06-19 21:37:33 +08:00
Mark Nelson
c18c84b0df Fixed reference to 'mod/certificate' capability 2018-06-19 21:37:33 +08:00
Mark Nelson
2868082e9e #197 Respect filters in 'My certificates' and 'Verify certificate' pages 2018-06-12 16:43:51 +08:00
Mark Nelson
08a385fc85 #70 Added mobile app support
This allows students to view the activity and download
their certificate. It also allows teachers to view the
list of issued certificates, with the ability to revoke
any.

This is for Moodle Mobile v3.5.0 (not to be confused with
your Moodle site version) and will not work on Mobile
versions earlier than this.

If you are running a Moodle site on version 3.4 or below
you will need to install the local_mobile plugin in order
for this to work.

If you are running a Moodle site on version 3.0 or below
then you will need to upgrade.
2018-06-06 22:58:47 +08:00
Mark Nelson
be9c466f4a Fixed typo in PHPDoc 2018-06-06 21:31:47 +08:00
Roberto Pinna
7a20d0778b #192 Fixed report fields for download 2018-05-26 18:23:54 +08:00
Mark Nelson
ab32f72644 Fixed PHPDoc 2018-05-26 18:22:35 +08:00
Mark Nelson
3c6a8b97f3 Added helper function to issue certificates 2018-05-26 18:22:27 +08:00
Mark Nelson
f0b8292779 Changed icon for downloading certificate from reports
This was done because the core 'import' icon was mapped
to the Font Awesome icon 'fa-level-up' which did not look
appropriate.
2018-05-22 11:35:48 +08:00
Mark Nelson
3620b5543d #148 Increase size limit on fonts 2018-05-17 19:42:36 +08:00
Mark Nelson
1e977bbf31 #189 Implemented privacy provider for GDPR compliance 2018-05-15 18:21:13 +08:00
Eugene Venter
78931854ee #173 Fix race condition on certificate issues in scheduled task 2018-05-14 19:30:28 +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
759df979c8 #126 Use the course full name in emails 2017-11-11 15:30:19 +08:00
Mark Nelson
cbfe09f60a Fixed copyright year 2017-09-12 22:59:46 +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
e2a814a315 Removed unnecessary line break 2017-09-09 13:26:25 +08:00
Mark Nelson
531cb0aefe #134 Renamed duplicate() function and modified behaviour 2017-09-04 18:50:28 +08:00
Mark Nelson
909d376b95 #134 Add ability to duplicate templates 2017-09-03 22:14:37 +08:00
Mark Nelson
a211f97931 #134 Created class for the manage templates table 2017-09-03 18:28:00 +08:00