mirror of
https://github.com/Steffo99/estus.git
synced 2024-11-25 00:54:18 +00:00
Merge commit
This commit is contained in:
commit
2e9fccd83f
2 changed files with 4 additions and 3 deletions
|
@ -372,13 +372,14 @@ def page_disp_add():
|
|||
if 'username' not in session:
|
||||
return redirect(url_for('page_login'))
|
||||
if request.method == 'GET':
|
||||
serial = request.args.get("scanned_barcode")
|
||||
opzioni = ["Centralino", "Dispositivo generico di rete", "Marcatempo", "PC", "Portatile", "POS", "Router",
|
||||
"Server", "Stampante di rete", "Switch", "Telefono IP", "Monitor", "Scanner", "Stampante locale"]
|
||||
reti = Network.query.all()
|
||||
impiegati = Impiegato.query.all()
|
||||
css = url_for("static", filename="style.css")
|
||||
return render_template("dispositivo/add.htm", css=css, impiegati=impiegati, opzioni=opzioni, reti=reti, type="dev",
|
||||
user=session["username"])
|
||||
user=session["username"], serial=serial)
|
||||
else:
|
||||
nuovodisp = Dispositivo(request.form['tipo'], request.form['marca'], request.form['modello'],
|
||||
request.form['inv_ced'], request.form['inv_ente'], request.form['fornitore'], request.form['rete'], request.form['seriale'])
|
||||
|
|
|
@ -44,8 +44,8 @@
|
|||
<div class="form-group">
|
||||
<label class="col-xs-2" for="form-utente">Utenti</label>
|
||||
<div class="col-xs-10" id="users-column">
|
||||
<div id="add-user" class="btn btn-success" onclick="adduser()">+</div>
|
||||
<div id="remove-user" class="btn btn-danger disabled" onclick="removeuser()">-</div>
|
||||
<div id="add-user" class="btn btn-success" onclick="adduser()"><span class="glyphicon glyphicon-plus"></span></div>
|
||||
<div id="remove-user" class="btn btn-danger disabled" onclick="removeuser()"><span class="glyphicon glyphicon-minus"></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
Loading…
Reference in a new issue