stc

a simple time card webapp
git clone _git@git.brennen.work:stc.git
Log | Files | Refs | README

commit 2f5f5eebe61666156abbc8c7a162f99b32f3b2b0
parent 45a162c7ace2000df5d7cc8602927c8f9a466679
Author: Nikolas Mazur <nikolas@pop-os.localdomain>
Date:   Fri, 24 Feb 2023 15:44:45 -0700

Add report routes

Diffstat:
Mapp/routes.py | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/app/routes.py b/app/routes.py @@ -142,6 +142,28 @@ def admin(): #admnperms=all_permissions.admin return render_template ('admin/layout.html',ORGNAME=OrganizationName) +# Report Routes +@app.route('/admin/agreement') +@login_required +def agreement_report(): + return render_template ('admin/reports/agreement_report.html', ORGNAME=OrganizationName) + +@app.route('/admin/employee') +@login_required +def employee_report(): + return render_template ('admin/reports/employee_report.html', ORGNAME=OrganizationName) + +@app.route('/admin/pay-period') +@login_required +def pay_period_report(): + return render_template ('admin/reports/pay_period_report.html', ORGNAME=OrganizationName) + +@app.route('/admin/vehicle') +@login_required +def vehicle_report(): + return render_template ('admin/reports/vehicle_report.html', ORGNAME=OrganizationName) + + @app.route("/hours")#modify to take userid ex. /hours<userid> for "admin" currently pulls from current_user... simply always pass username to hours(if possible set a default to current_user) @login_required def hours():#userid goes into call to db to get user[] -> then returns formatted table (punchclock/index.html