ui: style deletion form
Had forgotten this page before...
This commit is contained in:
parent
2c8528d743
commit
c21f42975b
1 changed files with 26 additions and 14 deletions
|
@ -1,19 +1,31 @@
|
||||||
{{define "title"}}Sprechstunde löschen{{end}}
|
{{define "title"}}Sprechstunde löschen{{end}}
|
||||||
|
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
{{.Error}}
|
<div class="col-md-8 offset-md-2">
|
||||||
|
{{ if .Error }}
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
<strong>Fehler:</strong> {{.Error}}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
Willst du die Sprechstunde<br>
|
<p>
|
||||||
{{printf "%02d" .OfficeHour.Date.Hour}}:{{printf "%02d" .OfficeHour.Date.Minute}} - {{printf "%02d" .OfficeHour.EndDate.Hour}}:{{printf "%02d" .OfficeHour.EndDate.Minute}}<br>
|
Willst du die Sprechstunde<br>
|
||||||
{{if eq .OfficeHour.Date.Week 1}}in ungeraden Vorlesungswochen<br>{{end}}{{if eq .OfficeHour.Date.Week 2}}in geraden Vorlesungswochen<br>{{end}}
|
{{printf "%02d" .OfficeHour.Date.Hour}}:{{printf "%02d" .OfficeHour.Date.Minute}} - {{printf "%02d" .OfficeHour.EndDate.Hour}}:{{printf "%02d" .OfficeHour.EndDate.Minute}}<br>
|
||||||
{{.OfficeHour.Course.Name}}<br>
|
{{if eq .OfficeHour.Date.Week 1}}in ungeraden Vorlesungswochen<br>{{end}}{{if eq .OfficeHour.Date.Week 2}}in geraden Vorlesungswochen<br>{{end}}
|
||||||
{{.OfficeHour.Tutor.Name}}<br>
|
{{.OfficeHour.Course.Name}}<br>
|
||||||
{{.OfficeHour.Room.Name}}<br>
|
{{.OfficeHour.Tutor.Name}}<br>
|
||||||
wirklich löschen? Bitte bestätige dies durch Angabe der Mailadresse, mit der die Sprechstunde angelegt wurde: <br>
|
{{.OfficeHour.Room.Name}}<br>
|
||||||
<form method="POST" action="deleteOfficeHour">
|
wirklich löschen? Bitte bestätige dies durch Angabe der Mailadresse, mit der die Sprechstunde angelegt wurde:
|
||||||
<input type="hidden" name="id" value="{{.OfficeHour.Id}}">
|
</p>
|
||||||
<label for="email">Email-Adresse</label>:
|
<form method="POST" action="deleteOfficeHour">
|
||||||
<input name="email" id="email" type="email" size="50" required><br>
|
<input type="hidden" name="id" value="{{.OfficeHour.Id}}">
|
||||||
<input type="submit">
|
<div class="input-group">
|
||||||
</form>
|
<div class="form-floating">
|
||||||
|
<input class="form-control required" name="email" id="email" type="email" size="50" required placeholder="">
|
||||||
|
<label for="email">Email-Adresse</label>
|
||||||
|
</div>
|
||||||
|
<button class="btn btn-outline-primary" type="submit">Bestätigen</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in a new issue