From 03fec1ebd7d227aac83a9db2c01cfc2a6e9302ee Mon Sep 17 00:00:00 2001 From: grey Date: Wed, 19 Mar 2025 23:15:28 +0100 Subject: [PATCH] reports view --- src/routes/frontend/admin/index.ts | 2 ++ src/routes/frontend/admin/report.ts | 7 ++++++ views/admin/reports.eta | 36 +++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 src/routes/frontend/admin/report.ts create mode 100644 views/admin/reports.eta diff --git a/src/routes/frontend/admin/index.ts b/src/routes/frontend/admin/index.ts index b8d93b7..179a916 100644 --- a/src/routes/frontend/admin/index.ts +++ b/src/routes/frontend/admin/index.ts @@ -4,6 +4,7 @@ import express from 'express'; import dashboard_Route from './dashboard.js'; import users from './users.js'; import products from './products.js'; +import report from './report.js'; // Router base is '/admin' const Router = express.Router({ strict: false }); @@ -11,6 +12,7 @@ const Router = express.Router({ strict: false }); Router.route('/').get(dashboard_Route.get); Router.route('/users').get(users.get); Router.route('/products').get(products.get); +Router.route('/report').get(report.get); // Router.route('/user_select').get(user_select_Route.get); // Router.route('/product_select').get(product_select_Route.get); // Router.route('/pay_up').get(pay_up_Route.get); diff --git a/src/routes/frontend/admin/report.ts b/src/routes/frontend/admin/report.ts new file mode 100644 index 0000000..6f1ed62 --- /dev/null +++ b/src/routes/frontend/admin/report.ts @@ -0,0 +1,7 @@ +import express, { Request, Response } from 'express'; + +function get(req: Request, res: Response) { + res.render("admin/reports") +} + +export default { get }; diff --git a/views/admin/reports.eta b/views/admin/reports.eta new file mode 100644 index 0000000..3961d27 --- /dev/null +++ b/views/admin/reports.eta @@ -0,0 +1,36 @@ +<%~ include("partials/base_head.eta", {"title": "Dashboard"}) %> +<%~ include("partials/nav.eta") %> + +
+

Berichte

+ + +
+ +
+ +
+ +<%~ include("partials/footer.eta") %> + +<%~ include("partials/base_foot.eta") %>