stc

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

commit 66dde9111699208d48d86ae8d15072e52f7ead7f
parent db2eb144e1542fd1d4e6425db54b5dc7c1ecde2f
Author: Nikolas Mazur <nikolas@pop-os.localdomain>
Date:   Mon, 13 Mar 2023 12:46:36 -0600

Add admin routes

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

diff --git a/app/routes.py b/app/routes.py @@ -419,6 +419,49 @@ def knowlegebase(): return render_template('knowlegebase/index.html',ORGNAME=OrganizationName) +# Report Routes +# Agreement Routes +@app.route('/admin/reports/agreement') +@login_required +def agreement_report(): + return render_template ('admin/reports/agreement_report.html', ORGNAME=OrganizationName) + +@app.route('/admin/reports/agreements/<agreement>') +@login_required +def project_report(): + return render_template ('admin/reports/project.html') + +# Payperiod Routes +@app.route('/admin/reports/pay-period') +@login_required +def pay_period_report(): + pay = mongo.db.time_collection.find() + user = mongo.db.user_colelction.find() + return render_template ('admin/reports/pay_period_report.html', user=user, pay=pay, ORGNAME=OrganizationName) + +# @app.route("/dev/fleetdata") +# @login_required +# def fleetdatalist(): +# allfleetdata = mongo.db.fleet_collection.find() +# return render_template('dev/fleetdata.html', allfleetdata=allfleetdata) + +@app.route('/admin/reports/employee/<username>') +@login_required +def employee_report(): + return render_template ('admin/reports/employee_report.html', ORGNAME=OrganizationName) + +# Vehicle Routes +@app.route('/admin/reports/vehicles') +@login_required +def vehicle_report(): + return render_template ('admin/reports/vehicle_report.html', ORGNAME=OrganizationName) + +@app.route('/admin/reports/vehicles/<vehicle>') +@login_required +def vehicle_indepth(): + return render_template ('admin/reports/vehicle_report.html', ORGNAME=OrganizationName) +# Report Routes End + #====================================# ############# ############## #### DEVELOPMENT ROUTES ####