mirror of
https://github.com/Steffo99/estus.git
synced 2024-11-25 17:14:19 +00:00
73 lines
3.3 KiB
Django/Jinja
73 lines
3.3 KiB
Django/Jinja
<html>
|
|
<head>
|
|
<title>Modifica servizio - Inventario</title>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="{{css}}">
|
|
</head>
|
|
<body>
|
|
{% include 'nav.html.j2' %}
|
|
<div class="container">
|
|
<h1>
|
|
Modifica servizio
|
|
</h1>
|
|
<form class="form-horizontal" action="/disp_show/{{dispositivo.did}}" method="post">
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="">Tipo dispositivo</label>
|
|
<div class="col-xs-10">
|
|
<select id="form-tipo" class="form-control" name="tipo">
|
|
{% for tipo in tipi %}
|
|
<option value="{{tipo}}"{% if tipo == dispositivo.tipo %}selected="selected"{% endif %}>{{tipo}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="form-utente">Utenti</label>
|
|
<div class="col-xs-10">
|
|
<select id="form-utente" multiple class="form-control" name="utente">
|
|
{# {% for impiegato in impiegati %}
|
|
<option value="{{impiegato.iid}}"{% if i == dispositivo.tipo %}selected="selected"{% endif %}>{{impiegato.nomeimpiegato}} - {{impiegato.username}}</option>
|
|
{% endfor %} #}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="form-marca">Marca</label>
|
|
<div class="col-xs-10">
|
|
<input id="form-marca" class="form-control" type="text" placeholder="Marca" name="marca" value="{{dispositivo.marca}}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="form-modello">Modello</label>
|
|
<div class="col-xs-10">
|
|
<input id="form-modello" class="form-control" type="text" placeholder="Modello" name="modello" value="{{dispositivo.modello}}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="form-ced">Inventario CED</label>
|
|
<div class="col-xs-10">
|
|
<input id="form-ced" class="form-control" type="text" placeholder="Inventario CED" name="inv_ced" value="{{dispositivo.inv_ced}}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="form-ente">Inventario ente</label>
|
|
<div class="col-xs-10">
|
|
<input id="form-ente" class="form-control" type="text" placeholder="Inventario ente" name="inv_ente" value="{{dispositivo.inv_ente}}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="form-fornitore">Fornitore</label>
|
|
<div class="col-xs-10">
|
|
<input id="form-fornitore" class="form-control" type="text" placeholder="Fornitore" name="fornitore" value="{{dispositivo.fornitore}}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="form-control"></label>
|
|
<div class="col-xs-10">
|
|
<input class="form-control btn btn-primary" type="submit">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|