2017-09-11 10:47:52 +00:00
|
|
|
{% extends "base.htm" %}
|
2017-09-13 06:41:07 +00:00
|
|
|
{% block title %}Modifica impiegato • estus{% endblock %}
|
2017-09-11 10:47:52 +00:00
|
|
|
{% block content %}
|
2017-09-20 10:01:07 +00:00
|
|
|
<div class="page-header">
|
|
|
|
<h1>
|
|
|
|
{% if action == "add" %}
|
|
|
|
Crea impiegato
|
|
|
|
{% elif action == "show" %}
|
|
|
|
Modifica impiegato
|
|
|
|
{% endif %}
|
|
|
|
</h1>
|
|
|
|
</div>
|
2017-09-18 14:26:17 +00:00
|
|
|
<form class="form-inline" {% if imp %}action="/imp_show/{{ imp.iid }}"{% endif %} method="post">
|
2017-09-11 10:47:52 +00:00
|
|
|
<select class="form-control" name="sid">
|
|
|
|
{% for servizio in servizi %}
|
|
|
|
<option value="{{ servizio.sid }}"
|
2017-09-18 14:26:17 +00:00
|
|
|
{% if imp and imp.sid == servizio.sid %}selected="selected"{% endif %}>{{ servizio.ente.nomebreveente }}
|
2017-09-11 10:47:52 +00:00
|
|
|
- {{ servizio.nomeservizio }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
<input class="form-control" type="text" placeholder="Nome e cognome" name="nomeimpiegato"
|
2017-09-18 14:26:17 +00:00
|
|
|
{% if imp %}value="{{ imp.nomeimpiegato }}{% endif %}">
|
|
|
|
<input class="form-control" type="text" placeholder="Nome utente" name="username" {% if imp %}value="{{ imp.username }}"{% endif %}>
|
|
|
|
<input class="form-control" type="text" placeholder="Password" name="passwd" {% if imp %}value="{{ imp.passwd }}"{% endif %}>
|
2017-09-11 10:47:52 +00:00
|
|
|
<input class="btn btn-primary" type="submit">
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|