diff --git a/kitchen_counter/lpp/certificate/certificate.pdf b/kitchen_counter/lpp/certificate/certificate.pdf old mode 100755 new mode 100644 index 3ab3a1f..7d66ea6 Binary files a/kitchen_counter/lpp/certificate/certificate.pdf and b/kitchen_counter/lpp/certificate/certificate.pdf differ diff --git a/kitchen_counter/lpp/certificate/createCertificate.py b/kitchen_counter/lpp/certificate/createCertificate.py index 039c71b..c26dd3f 100755 --- a/kitchen_counter/lpp/certificate/createCertificate.py +++ b/kitchen_counter/lpp/certificate/createCertificate.py @@ -15,7 +15,7 @@ basepath = BasePath() # from .utils import render_to_pdf -def certificateGenrate(name,file_from,Hash): +def certificateGenrate(name,file_from,Hash,projectname="NAN",matic=0): main = Certificate.objects.filter(user_name="MyNextFilm") if main: @@ -35,7 +35,9 @@ def certificateGenrate(name,file_from,Hash): "file_from": file_from, "date": date.today(), "hash": Hash, - "id": ids + "id": ids, + 'Matic':matic, + 'File_name':projectname, } template = get_template( f'{basepath}/lpp/templates/lpp/blockchainCertificate.html') diff --git a/kitchen_counter/lpp/templates/lpp/blockchainCertificate.html b/kitchen_counter/lpp/templates/lpp/blockchainCertificate.html index cb600dc..712cba4 100755 --- a/kitchen_counter/lpp/templates/lpp/blockchainCertificate.html +++ b/kitchen_counter/lpp/templates/lpp/blockchainCertificate.html @@ -1,235 +1,170 @@ {% load static %} - -
- -+ + | +
+ Blockchain Protection Certificate no.{{id}} ++ |
+ + + | +
This is to certify that + {{File_Name}} + + uploaded by + {{name}} + + / created by + + {{file_from}} + + has been + uploaded on Polygon Blockchain on + + {{date}} + + for which My Next Film has paid ____ MATIC. This is + also to certify that the above file is accessible at the + + transaction {{hash}} + + Only Through the + combination of Public Key and Private Key exclusively known to the + + {{name}} + + | +||
+ Note: +The file resides on Decentralized Inter Planetary File System Storage. The location of the file + is encrypted and stored on Polygon Blockchain forever. The content is Transparent, + Decentralized, and Secured in a with Blockchain's Enhanced Security, Immutability, and + Crypto-Features. + |
+ ||
+
+
+
+
+
+
+ Disclaimer:- ++ "MY NEXT FILM" denies responsibility for risks associated with sharing data content + identifiers + (#) or Private Keys, Potentially leading to Unauthorized Disclosure and content theft. Users + shall exercise caution and evaluate the Necessity of Sharing. The company is not liable for + Consequences resulting from users sharing data content Identifiers (#) or Private keys. + + |
+ + |