From 436dcb012b4d090696acb0c1f03414959e66fcde Mon Sep 17 00:00:00 2001 From: Stefano Date: Wed, 13 Sep 2017 10:30:56 +0200 Subject: [PATCH] Delete useless page RIP page_imp_details 2017-2017 --- server.py | 9 -------- templates/impiegato/details.htm | 38 --------------------------------- 2 files changed, 47 deletions(-) delete mode 100644 templates/impiegato/details.htm diff --git a/server.py b/server.py index 3a92d4d..519f811 100644 --- a/server.py +++ b/server.py @@ -429,15 +429,6 @@ def page_imp_show(iid): return redirect(url_for('page_imp_list')) -@app.route('/imp_details/') -def page_imp_details(iid): - """Pagina dei dettagli di un impiegato""" - if 'username' not in session: - return abort(403) - impiegato = Impiegato.query.filter_by(iid=iid).first_or_404() - return render_template("impiegato/details.htm", imp=impiegato, type="imp", user=session["username"]) - - @app.route('/disp_add', methods=['GET', 'POST']) def page_disp_add(): """Pagina di creazione nuovo dispositivo: diff --git a/templates/impiegato/details.htm b/templates/impiegato/details.htm deleted file mode 100644 index 0128eac..0000000 --- a/templates/impiegato/details.htm +++ /dev/null @@ -1,38 +0,0 @@ -{% extends "base.htm" %} -{% block title %}Dettagli impiegato • estus{% endblock %} -{% block content %} -

- Ispeziona Impiegato -

- - - - -{% endblock %} \ No newline at end of file