Add content to shop page

This commit is contained in:
2025-10-29 09:39:42 +01:00
parent 8fd8b710fb
commit bd2f7b286e
14 changed files with 169 additions and 56 deletions

View File

@@ -0,0 +1,14 @@
from starlette.templating import Jinja2Templates
TRANSACTION_TYPE_DE = {
"deposit": "Einzahlung",
"withdrawal": "Auszahlung",
"expense": "Auslage",
"product": "Einkauf",
}
def get_jinja_renderer() -> Jinja2Templates:
renderer = Jinja2Templates(directory="src/allmende_payment_system/templates")
renderer.env.filters["transaction_type_de"] = lambda x: TRANSACTION_TYPE_DE[x]
return renderer