2021-03-18 13:53:55 +00:00
|
|
|
from advlabdb import app
|
2021-03-18 22:20:59 +00:00
|
|
|
from flask import render_template, request, url_for
|
|
|
|
from advlabdb.utils import *
|
2021-03-18 13:53:55 +00:00
|
|
|
|
|
|
|
@app.route("/")
|
|
|
|
def index():
|
2021-03-18 22:20:59 +00:00
|
|
|
page = "index"
|
|
|
|
return render_template(page + ".html", navbarItems=navbarItems(page))
|
|
|
|
|
|
|
|
@app.route("/students")
|
|
|
|
def students():
|
|
|
|
page = "students"
|
|
|
|
return render_template(page + ".html", navbarItems=navbarItems(page))
|
|
|
|
|
|
|
|
@app.route("/assistants")
|
|
|
|
def assistants():
|
|
|
|
page = "assistants"
|
|
|
|
return render_template(page + ".html", navbarItems=navbarItems(page))
|
|
|
|
|
|
|
|
@app.route("/experiments")
|
|
|
|
def experiments():
|
|
|
|
page = "experiments"
|
|
|
|
return render_template(page + ".html", navbarItems=navbarItems(page))
|
|
|
|
|
|
|
|
@app.route("/appointments")
|
|
|
|
def appointments():
|
|
|
|
page = "appointments"
|
|
|
|
return render_template(page + ".html", navbarItems=navbarItems(page))
|
|
|
|
|
|
|
|
@app.route("/groups")
|
|
|
|
def groups():
|
|
|
|
page = "groups"
|
|
|
|
return render_template(page + ".html", navbarItems=navbarItems(page))
|
|
|
|
|
|
|
|
@app.route("/users")
|
|
|
|
def users():
|
|
|
|
page = "users"
|
|
|
|
return render_template(page + ".html", navbarItems=navbarItems(page))
|