1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-25 00:54:18 +00:00

Delete useless page

RIP page_imp_details 2017-2017
This commit is contained in:
Steffo 2017-09-13 10:30:56 +02:00
parent cedeec679a
commit 436dcb012b
2 changed files with 0 additions and 47 deletions

View file

@ -429,15 +429,6 @@ def page_imp_show(iid):
return redirect(url_for('page_imp_list'))
@app.route('/imp_details/<int:iid>')
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:

View file

@ -1,38 +0,0 @@
{% extends "base.htm" %}
{% block title %}Dettagli impiegato • estus{% endblock %}
{% block content %}
<h1>
Ispeziona Impiegato
</h1>
<ul class="list-group">
<li class="list-group-item">
<h4 class="list-group-item-heading">
Nome Impiegato
</h4>
<div class="list-group-item-text">
{{ imp.nomeimpiegato }}
</div>
</li>
<li class="list-group-item">
<h4 class="list-group-item-heading">
Username
</h4>
<div class="list-group-item-text">
{{ imp.username }}
</div>
</li>
<li class="list-group-item">
<h4 class="list-group-item-heading">
Password
</h4>
<div class="list-group-item-text">
<code>{{ imp.passwd }}</code>
</div>
</li>
</ul>
<a href="/imp_show/{{ imp.iid }}">
<button type="button" class="btn btn-primary">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Modifica
</button>
</a>
{% endblock %}