init commit of new design

This commit is contained in:
Leon Noe Jovan
2021-11-16 18:45:20 +01:00
parent cead80ed79
commit 32fa0ad3a9
43 changed files with 2062 additions and 220 deletions

View File

@@ -48,7 +48,6 @@ class ContractCreator:
template_loader = FileSystemLoader(searchpath="./")
template_env = Environment(loader=template_loader)
self.template = template_env.get_template(template_path)
self.pdfkit_options = {
'page-size': 'A4',
'margin-top': '0.75in',
@@ -74,7 +73,7 @@ class ContractCreator:
class UploadHandlerSolar():
ENABLED_FILETYPES = ['txt', 'csv', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'xml', 'mxliff', 'tmx', 'jpg', 'jpeg', 'png']
def __init__(self, **kwargs):
self.config = kwargs