Commit graph

472 commits

Author SHA1 Message Date
Mark Nelson
cbfe09f60a Fixed copyright year 2017-09-12 22:59:46 +08:00
Mark Nelson
6c4b77925b #98 Added PHPUnit tests for element helper 2017-09-12 21:54:54 +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
e2a814a315 Removed unnecessary line break 2017-09-09 13:26:25 +08:00
Mark Nelson
9813efbac5 #135 Added missing string when performing course reset 2017-09-09 13:21:50 +08:00
Mark Nelson
20126a0fa2 Fixed Moodle PHPdoc check complaint 2017-09-05 10:52:03 +08:00
Mark Nelson
7a40ebfc77 Bumped version 2017-09-04 19:13:50 +08:00
Mark Nelson
c08800020c Updated CHANGES.md
Updating details in advance before version bump.

Also minor fixes to previously listed changes.
2017-09-04 19:13:50 +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
Mark Nelson
3461c9585d #134 Do not load templates in site templates 2017-09-03 17:38:13 +08:00
Mark Nelson
f8d7781158 #119 Add ability to delete issued certificates 2017-09-03 17:24:37 +08:00
Mark Nelson
2d1bc8a70c Added missing confirm_sesskey() checks 2017-09-02 14:28:02 +08:00
Mark Nelson
2b2c16d3df #46 Added digital signature element 2017-08-28 22:35:53 +08:00
Mark Nelson
9f061fab01 Fixed exception being thrown when deleted image is selected 2017-08-27 16:27:48 +08:00
Mark Nelson
1e35923b43 Add ability to set the width and height even if no image is selected 2017-08-27 16:27:48 +08:00
Mark Nelson
43a4b8b8e7 Fixed incorrect setting of 'fileid' form element 2017-08-27 16:26:02 +08:00
Mark Nelson
2b79d6c58b Added missing element 'pageid' value 2017-08-26 14:27:22 +08:00
Mark Nelson
5c1f1aa812 Removed usage of magic getter and abuse of $this->element 2017-08-26 13:39:51 +08:00
Mark Nelson
fedfe95080 Created factory class 2017-08-26 13:35:43 +08:00
Mark Nelson
3120130437 Moved helper function 2017-08-19 20:09:19 +08:00
Mark Nelson
538093223d Extend Behat test coverage for loading templates 2017-08-19 16:10:42 +08:00
Mark Nelson
93d28a53fb Bumped version 2017-08-11 14:38:57 +08:00
Mark Nelson
1bd610d43f Updated CHANGES.md
Updating details in advance before version bump.
2017-08-11 14:30:33 +08:00
Mark Nelson
fa69bcc604 #129 Added Behat test coverage 2017-08-11 14:30:33 +08:00
Mark Nelson
efd5b7107c Fixed minor typo in template comment 2017-08-10 12:11:15 +08:00
Mark Nelson
461a05ea69 Lang changes
It's not always necessary to specify it is a 'custom' certificate.

Also some other minor improvements.
2017-08-09 19:15:15 +08:00
Mark Nelson
a165092d7d Fixed codechecker line length complaint 2017-08-09 12:27:24 +08:00
Mark Nelson
48bb4e23b9 #118 Fixed issue with activity dates not displaying 2017-08-08 13:47:17 +08:00
Mark Nelson
bbce9f1364 Added CHANGES.md 2017-08-08 11:58:44 +08:00
Mark Nelson
3c7c32e619 #35 Do not right align 'Reposition elements' text 2017-08-08 11:10:59 +08:00
Mark Nelson
44b3a77a5f Redirect after page deletion to avoid page error when refreshing 2017-08-08 11:04:19 +08:00
Mark Nelson
1bb5ad0409 #35 Make some of the buttons secondary when editing a certificate
MDL-59740 added the ability to determine if a submit button should
be primary, or not.
2017-08-07 17:47:52 +08:00
Mark Nelson
971a3fdbfe #35 Reworded 'addcertpage' string and changed button to a link
Also added an icon next to the link and moved the location via CSS.
2017-08-07 17:08:17 +08:00
Mark Nelson
b626e4fd43 #35 Reworded 'deletecertpage' string and added icon 2017-08-07 17:05:13 +08:00
Mark Nelson
9c589163a2 #35 Moved 'Add element' submit button 2017-08-07 15:07:15 +08:00
Mark Nelson
429b8c819c #123 Change reference to old column name 2017-08-05 18:02:16 +08:00
Mark Nelson
87ee9f10ce #123 Renamed column to avoid breaking Oracle
The word 'size' is a reserved word in Oracle.
2017-08-05 15:50:08 +08:00
Mark Nelson
5299a83209 Bumped version 2017-07-03 12:29:10 +08:00
Mark Nelson
a5bcc985ee #117 Do not process image if 'No image' selected 2017-06-23 13:00:25 +08:00
Mark Nelson
8db4a75b52 Bumped version 2017-06-11 14:00:15 +08:00
Mark Nelson
c968d38927 #116 Re-added previous date formats that no longer exist 2017-06-11 13:57:42 +08:00
Mark Nelson
052b7b874f #85 Added new capability for viewing the course report 2017-06-02 16:24:24 +08:00
Mark Nelson
1a134d7319 #30 Add more date formats 2017-06-01 17:00:45 +08:00
Mark Nelson
da6c723830 #30 Add the course start and end dates as options 2017-06-01 14:51:51 +08:00
Mark Nelson
1f219af560 #115 Prevent PDF being polluted with HTML at the EOF 2017-05-31 16:16:15 +08:00
Mark Nelson
a943caf007 Removed unnecessary semicolon 2017-05-31 16:16:15 +08:00
Mark Nelson
d0a0fc5abc #82 Do not assume $COURSE represents the course for the certificate 2017-05-31 16:16:15 +08:00