2017-09-11 10:47:52 +00:00
|
|
|
{% extends "base.htm" %}
|
2017-09-13 06:41:07 +00:00
|
|
|
{% block title %}Modifica servizio • estus{% endblock %}
|
2017-09-11 10:47:52 +00:00
|
|
|
{% block content %}
|
2017-09-20 10:01:07 +00:00
|
|
|
<div class="page-header">
|
2017-09-20 10:31:54 +00:00
|
|
|
<h1>
|
|
|
|
{% if action == "add" %}
|
|
|
|
Aggiungi servizio
|
|
|
|
{% elif action == "show" %}
|
|
|
|
Modifica servizio
|
|
|
|
{% endif %}
|
|
|
|
</h1>
|
2017-09-20 10:01:07 +00:00
|
|
|
</div>
|
2017-09-21 06:31:12 +00:00
|
|
|
<div class="alert alert-info">
|
|
|
|
Sapevi che puoi fare doppio click sui campi con <b>[...]</b> per attivare il completamento automatico?
|
|
|
|
</div>
|
2017-09-20 10:31:54 +00:00
|
|
|
<form class="form-horizontal" {% if serv %}action="/serv_show/{{serv.sid}}"{% endif %} method="post">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-xs-2" for="form-tipo">Ente</label>
|
|
|
|
<div class="col-xs-10">
|
|
|
|
<select class="form-control" name="eid">
|
|
|
|
{% for ente in enti %}
|
|
|
|
<option value="{{ente.eid}}" {% if serv and serv.eid == ente.eid %}selected="selected"{% endif %}>{{ente}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-xs-2" for="form-tipo">Nome servizio</label>
|
|
|
|
<div class="col-xs-10">
|
|
|
|
<input class="form-control" type="text" placeholder="Nome servizio" name="nomeservizio" {% if serv %}value="{{serv.nomeservizio}}"{% endif %}>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-xs-2" for="form-tipo">Sede</label>
|
|
|
|
<div class="col-xs-10">
|
2017-09-21 06:25:35 +00:00
|
|
|
<input type="text" class="form-control" placeholder="Sede [...]" name="locazione" list="form-locazione" {% if serv %}value="{{ serv.locazione }}"{% endif %}>
|
2017-09-20 10:31:54 +00:00
|
|
|
<datalist id="form-locazione">
|
|
|
|
{% for servizio in servizi %}
|
|
|
|
<option value="{{ servizio.locazione }}">{{ servizio.locazione }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</datalist></div>
|
|
|
|
</div>
|
2017-02-01 09:37:53 +00:00
|
|
|
<input class="btn btn-primary" type="submit">
|
2017-09-20 10:31:54 +00:00
|
|
|
</form>
|
|
|
|
{#
|
|
|
|
<form class="form-inline" {% if serv %}action="/serv_show/{{serv.sid}}"{% endif %} method="post">
|
|
|
|
<select class="form-control" name="eid">
|
|
|
|
{% for ente in enti %}
|
|
|
|
<option value="{{ente.eid}}" {% if serv and serv.eid == ente.eid %}selected="selected"{% endif %}>{{ente.nomeente}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
<input class="form-control" type="text" placeholder="Nome servizio" name="nomeservizio" {% if serv %}value="{{serv.nomeservizio}}"{% endif %}>
|
|
|
|
<input class="form-control" type="text" placeholder="locazione" name="locazione" {% if serv %}value="{{serv.locazione}}"{% endif %}>
|
|
|
|
<input class="btn btn-primary" type="submit">
|
|
|
|
</form>
|
|
|
|
#}
|
2017-09-11 10:47:52 +00:00
|
|
|
{% endblock %}
|