Commit graph

56 commits

Author SHA1 Message Date
Mark Nelson
c89c2d447a Lang changes
It's not always necessary to specify it is a 'custom' certificate.

Also some other minor improvements.
2017-12-03 14:39:04 +08:00
Mark Nelson
528daad08c #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-12-03 14:36:53 +08:00
Mark Nelson
5d1dd37972 #35 Reworded 'deletecertpage' string and added icon 2017-12-03 14:36:47 +08:00
Mark Nelson
1015ffa46d #85 Added new capability for viewing the course report 2017-12-03 14:29:32 +08:00
Mark Nelson
90109a881e #78 Add setting to allow anyone to verify certificates 2017-05-31 16:49:28 +08:00
Mark Nelson
6eb8e5b27c #48 Added task and settings responsible for emailing certificates 2017-04-26 21:44:04 +08:00
Mark Nelson
69e872209f #79 Replaced usages of hard-coded strings 2017-02-25 13:50:49 +08:00
Mark Nelson
89dda02900 #51 Added ability to verify certificates 2017-02-02 12:35:29 +08:00
Mark Nelson
e021ad2083 Fixed reference to a string present in the mod_certificate activity 2017-02-02 12:28:37 +08:00
Mark Nelson
9a8bf74714 #71 Added validation for element and template name length 2017-02-02 12:28:25 +08:00
Mark Nelson
2ea16f9e5e #40 Change download certificate string 2017-02-02 12:20:02 +08:00
Mark Nelson
2c3f6d1419 Added missing 'customcert:viewallcertificates' string 2017-01-28 19:50:20 +11:00
Mark Nelson
6230759d56 #44 Added page to view all certificates for a user 2016-12-30 14:00:06 +08:00
Mark Nelson
527d453950 #41 Add setting to display the position X and Y elements 2016-12-30 13:59:14 +08:00
Mark Nelson
0777b07502 #49 Allow templates to have the same name 2016-11-29 15:49:03 +08:00
Mark Nelson
62715ab073 #15 Added global search support 2016-08-25 15:13:41 +08:00
Mark Nelson
166e62a2ee #17 Improved reference point location help string 2016-08-22 17:01:57 +08:00
Mark Nelson
a48ef25d32 #21 Changed 'Rearrange' to 'Reposition' for clarity 2016-08-22 15:32:54 +08:00
Mark Nelson
36c55a65ab #22 Described importance of element order 2016-08-22 14:50:30 +08:00
Mark Nelson
ed93542c0c Removed the 'posx' and 'posy' form elements 2016-06-17 15:49:10 +08:00
Mark Nelson
70b47d6de3 Added module help and link 2016-06-14 20:28:39 +08:00
Mark Nelson
43d20c0d1b Huge refactor
1) Every certificate is a template. Before a user would create a certificate then had
the option to save it as a template. This could potentially be chaotic with numerous
users creating templates, making the template system a mess. Now, rather than creating
a certificate first, then saving it as a template, you are always creating a template.
Each template is associated with a context, so depending on where you are creating it
the context is different. This means users in the CONTEXT_MODULE context are creating
a template specific to that module, where as a user creating a template in the
CONTEXT_SYSTEM context would be creating a general template that can be used by others.
This meant we can remove the 'customcert_template_*' db tables. Yay - no duplicated
tables.
2) Created new helper classes and moved functionality there.
3) Moved files to classes/ for autoloading.
4) General tidy up.
2016-02-20 16:35:19 +08:00
Mark Nelson
355de679e8 Added a 'leftmargin' field
Also renamed the 'margin' field to 'rightmargin'
to easily distinguish between the two.
2015-12-11 12:10:45 +08:00
Mark Nelson
3a63a6e00a Minor changes 2015-12-10 11:40:25 +08:00
Mark Nelson
e441b7051b Removed the 'align' property 2015-12-08 18:27:30 +08:00
Mark Nelson
87d1ecfcc7 Removed the 'Download grid' functionality 2015-12-06 16:54:19 +08:00
Mark Nelson
4efbac65ff Fixed typo 2015-08-09 17:48:55 -07:00
Shamim Rezaie
9998fa2b4a Added drag & drop feature to rearrange elements 2015-08-05 14:19:55 -05:00
Shamim Rezaie
039e8bca37 Implemented support for element alignment
Also specifying the reference point location (the
location of the element that's put at posx and
posy) for each element.
2015-08-05 14:19:54 -05:00
Shamim Rezaie
6400e587d8 Added support for having right margin and width limit for each element
In addition to width and height, each page can have an
optional (right) margin attribute. Also, each element
can have an optional width attribute.
2015-08-05 14:16:56 -05:00
Shamim Rezaie
3774a6323c Added ability to modify templates and save them with same name.
An option named "replace" has been added to the same
template form so user can choose to overwrite an existing
template (i.e. modify and save an existing template).
2015-08-05 12:23:51 -05:00
Mark Nelson
91cc331a89 Added index.php file
This file is barely accessed in Moodle, if it all. However, it is
required in order to upload this module to the plugin database as
it is needed to pass validation.
2013-09-09 18:40:32 +08:00
Mark Nelson
4b2692d377 Images can now be saved into either the course or system context 2013-09-09 17:10:37 +08:00
Mark Nelson
9b77e2734e Specified and corrected units of measurement in the language strings 2013-07-26 14:43:34 +08:00
Mark Nelson
8b92d1c307 Removed the orientation field as it is redundant considering the width and height are already specified
Note: I did not create a db/upgrade.php script to remove the database column as this module should not be currently used by anyone.
2013-07-25 18:54:28 +08:00
Mark Nelson
23d611de1b Added ability to print out a grid PDF so that the user knows where to specify the placement of elements 2013-07-25 18:36:43 +08:00
Mark Nelson
cf0bdf7580 Placed long language strings on to two lines 2013-07-25 13:08:17 +08:00
Mark Nelson
5203d81980 Changed PHPDocs and added date to the copyright to match Moodle coding guidelines 2013-07-22 13:06:18 +08:00
Mark Nelson
1527587218 Changed the string 'configure' to 'edit' to conform to Moodle standards 2013-06-21 14:02:49 +08:00
Mark Nelson
fa5d45eef3 Completely refactored the code for editing a custom certificate
The elements for each page are listed in a table below the other page settings, meaning each page has a separate table for listing their elements. Each element is now edited in a pop-up, rather than having all the element settings displayed at once on the form causing it to look overcrowded. There is also no longer any need for the function add_element to add default values for the elements when they are added, as a a form is shown when you click to add an element where you can enter the values before it is created.

Note: I did not create a db/upgrade.php script to add the new database columns as this module should not be currently used by anyone.
2013-06-07 16:04:38 +08:00
Mark Nelson
0dc1ef19c9 Introduced an image element and refactored the code in the process so less code was required in the new element 2013-05-30 17:55:40 +08:00
Mark Nelson
8350c4afbf Introduced basic reporting functionality 2013-05-22 19:37:39 +08:00
Mark Nelson
a513ba8038 Added functionality to preview the custom certificate 2013-05-17 11:09:22 +08:00
Mark Nelson
c0d081f849 Added the ability to specify the PDF protection
Note: I did not create a db/upgrade.php script to add the new database column as this module should not be currently used by anyone.
2013-05-16 13:21:12 +08:00
Mark Nelson
d7174ce3c8 Introduced functionality to save and load customcert templates
Note: I did not create a db/upgrade.php script to add the new database tables as this module should not be currently used by anyone.
2013-05-16 13:17:34 +08:00
Mark Nelson
9e36732d5f Updated package and removed subpackage from PHPDocs 2013-04-26 15:39:59 +08:00
Mark Nelson
f2314ad49e Updated the validation of the width and height for the customcert page 2013-04-24 18:10:52 +08:00
Mark Nelson
6b145ee81f Renamed the label for the customcert intro field 2013-04-24 15:44:13 +08:00
Mark Nelson
dcdfeb9956 Changed the validation of the colour picker to only allow HTML colours or hexadecimal values
The reason for this is because the call to TCPDF_COLORS::convertHTMLColorToDec only allows these values.
2013-04-11 19:30:48 +08:00
Mark Nelson
31168708bb Added a view.php file 2013-04-09 17:31:36 +08:00