|
@@ -56,6 +56,12 @@ def dispatcher(user, action, tipo):
|
56
|
56
|
if not tipo in ["enfermera", "admin", "estudiante", "madre", "facultad", "curso"]:
|
57
|
57
|
return render_template('login.html') # Mejor error
|
58
|
58
|
|
|
59
|
+ print("here")
|
|
60
|
+ if tipo == "curso":
|
|
61
|
+ return render_template("formacurso.html")
|
|
62
|
+
|
|
63
|
+ return render_template("listuser.html", tipo=tipo, admin=1)
|
|
64
|
+
|
59
|
65
|
|
60
|
66
|
@app.route('/be/<user>/<action>/<tipo>', methods=['GET', 'POST'])
|
61
|
67
|
def database(user, action, tipo):
|
|
@@ -67,8 +73,6 @@ def database(user, action, tipo):
|
67
|
73
|
return render_template('login.html') # Mejor error
|
68
|
74
|
|
69
|
75
|
|
70
|
|
- return render_template("formacurso.html")
|
71
|
|
-
|
72
|
76
|
# @app.route('/view/list/<tipo>/', methods=['GET', 'POST'])
|
73
|
77
|
# def viewlist(tipo):
|
74
|
78
|
# if tipo == "curso":
|