|
@@ -30,26 +30,42 @@
|
|
{{else}}
|
|
{{else}}
|
|
<form action="/teachers/add/" method="POST" role="form" class="needs-validation">
|
|
<form action="/teachers/add/" method="POST" role="form" class="needs-validation">
|
|
{{end}}
|
|
{{end}}
|
|
- <div class="form-group has-feedback">
|
|
|
|
|
|
+ <div class="form-group">
|
|
<label class="control-label" for="teacher_name">Nome</label>
|
|
<label class="control-label" for="teacher_name">Nome</label>
|
|
<input type="text" name="Name" class="form-control" id="teacher_name" placeholder="Nome" {{if .Options.Get "update"}} value="{{.Data.Name}}" {{end}} required>
|
|
<input type="text" name="Name" class="form-control" id="teacher_name" placeholder="Nome" {{if .Options.Get "update"}} value="{{.Data.Name}}" {{end}} required>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="form-group has-feedback">
|
|
|
|
|
|
+ <div class="form-group">
|
|
<label class="control-label" for="teacher_surname">Cognome</label>
|
|
<label class="control-label" for="teacher_surname">Cognome</label>
|
|
<input type="text" name="Surname" class="form-control" id="teacher_surname" placeholder="Cognome" {{if .Options.Get "update"}} value="{{.Data.Surname}}" {{end}} required>
|
|
<input type="text" name="Surname" class="form-control" id="teacher_surname" placeholder="Cognome" {{if .Options.Get "update"}} value="{{.Data.Surname}}" {{end}} required>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="form-group has-feedback">
|
|
|
|
|
|
+ <div class="form-group">
|
|
<label class="control-label has-feedback" for="teacher_hours">Numero di ore</label>
|
|
<label class="control-label has-feedback" for="teacher_hours">Numero di ore</label>
|
|
<input type="number" name="Hours" class="form-control" id="teacher_hours" {{if .Options.Get "update"}}value="{{.Data.Hours}}"{{else}}value="18"{{end}} required>
|
|
<input type="number" name="Hours" class="form-control" id="teacher_hours" {{if .Options.Get "update"}}value="{{.Data.Hours}}"{{else}}value="18"{{end}} required>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="form-group has-feedback">
|
|
|
|
- <label class="control-label" for="teacher_altemail">Email alternativa</label>
|
|
|
|
- <input type="email" name="AltEmail" class="form-control" id="teacher_altemail" placeholder="Email alternativa" {{if .Options.Get "update"}} value="{{.Data.AltEmail}}" {{end}}>
|
|
|
|
- <input type="checkbox" name="Regenerate" class="form-check-input" id="teacher_regenerate" {{if .Options.Get "update"}}{{if .Data.Regenerate}}checked{{end}}{{end}}>
|
|
|
|
- <label class="form-check-label has-feedback" for="teacher_mailsent">Rigenerare/inviare le credenziali</label>
|
|
|
|
|
|
+ <div class="form-row">
|
|
|
|
+ <div class="col">
|
|
|
|
+ <input type="email" name="AltEmail" class="form-control" id="teacher_altemail" placeholder="Email alternativa" {{if .Options.Get "update"}} value="{{.Data.AltEmail}}" {{end}}>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col">
|
|
|
|
+ <div class="form-check">
|
|
|
|
+ <input type="checkbox" name="Regenerate" class="form-check-input" id="teacher_regenerate" {{if .Options.Get "update"}}{{if .Data.Regenerate}}checked{{end}}{{end}}>
|
|
|
|
+ <label class="form-check-label has-feedback" for="teacher_regenerate">Rigenerare/inviare le credenziali</label>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="form-row">
|
|
|
|
+ <div class="col">
|
|
|
|
+ <label class="control-label" for="teacher_date_from">In servizio dal</label>
|
|
|
|
+ <input type="date" name="DateFrom" class="form-control" id="teacher_date_from" {{if .Options.Get "update"}} value="{{.Data.DateFrom}}" {{end}}>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col">
|
|
|
|
+ <label class="control-label" for="teacher_date_from">In servizio fino al</label>
|
|
|
|
+ <input type="date" name="DateTo" class="form-control" id="teacher_date_to" {{if .Options.Get "update"}} value="{{.Data.DateTo}}" {{end}}>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|