Payslip Generator
+Fill in the details on the left — the payslip updates live on the right. Your company logo, employee data, and figures never leave this page: there's no server, no upload, no tracking.
+diff --git a/app/main.py b/app/main.py index 514e142..16f497b 100644 --- a/app/main.py +++ b/app/main.py @@ -4,6 +4,7 @@ from flask import Flask, render_template from tools.eib import eib_bp from tools.donor_report import donor_report_bp from tools.financial_reports import financial_reports_bp +from tools.payslip import payslip_bp # ── Tool registry ──────────────────────────────────────────────────────────── # Each entry drives one card on the landing page. Add a new tool by @@ -42,6 +43,17 @@ TOOLS = [ "url": "/financial-reports/", "status": "online", }, + { + "name": "Payslip Generator", + "tagline": "Fill in, preview, download PDF", + "description": ( + "Generates a formatted payslip from company/employee details and " + "earnings/deductions lines, entirely in the browser - nothing is " + "uploaded to a server." + ), + "url": "/payslip/", + "status": "online", + }, ] @@ -54,6 +66,7 @@ def create_app(): app.register_blueprint(eib_bp) app.register_blueprint(donor_report_bp) app.register_blueprint(financial_reports_bp) + app.register_blueprint(payslip_bp) @app.route("/") def home(): diff --git a/app/tools/payslip/__init__.py b/app/tools/payslip/__init__.py new file mode 100644 index 0000000..fbfdaf2 --- /dev/null +++ b/app/tools/payslip/__init__.py @@ -0,0 +1,3 @@ +from .routes import payslip_bp + +__all__ = ["payslip_bp"] diff --git a/app/tools/payslip/routes.py b/app/tools/payslip/routes.py new file mode 100644 index 0000000..88a6d94 --- /dev/null +++ b/app/tools/payslip/routes.py @@ -0,0 +1,12 @@ +from flask import Blueprint, render_template + +# Payslip Generator is entirely client-side (form -> live preview -> PDF, all +# in the browser, nothing uploaded) - there's no server-side business logic, +# so unlike this repo's other tools there's no logic.py here, just the one +# page route. +payslip_bp = Blueprint("payslip", __name__, url_prefix="/payslip") + + +@payslip_bp.route("/") +def index(): + return render_template("payslip/index.html") diff --git a/templates/payslip/index.html b/templates/payslip/index.html new file mode 100644 index 0000000..0328c08 --- /dev/null +++ b/templates/payslip/index.html @@ -0,0 +1,849 @@ + + +
+ + +Fill in the details on the left — the payslip updates live on the right. Your company logo, employee data, and figures never leave this page: there's no server, no upload, no tracking.
+