ui: nice layout #18
1 changed files with 31 additions and 17 deletions
|
@ -10,24 +10,38 @@ Sprechstunden
|
|||
|
||||
{{define "content"}}
|
||||
<form method="GET" action="/getByCourse">
|
||||
<label for="veranstaltung">Veranstaltung: </label>
|
||||
<select name="veranstaltung" id="veranstaltung" size="1" onchange="document.forms[0].submit()">
|
||||
<option value="">Alle</option>
|
||||
<div class="input-group mb-3">
|
||||
<div class="form-floating col-lg-8">
|
||||
<select class="form-control form-select" name="veranstaltung" id="veranstaltung" size="1" onchange="document.forms[0].submit()">
|
||||
<option value="">–– auswählen ––</option>
|
||||
{{range $course := .Courses}}
|
||||
<option value="{{$course.Id}}"{{if eq $course.Id $.SelectedCourse}} selected{{end}}>{{$course.Name}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
<input type="submit" value="Auswählen">
|
||||
<label for="veranstaltung">Veranstaltung</label>
|
||||
</div>
|
||||
<noscript>
|
||||
<button class="btn btn-sm btn-outline-secondary col-lg-4" type="submit">Los!</button>
|
||||
</noscript>
|
||||
</div>
|
||||
</form>
|
||||
<form method="GET" action="/getByRoom">
|
||||
<label for="raum">Raum: </label>
|
||||
<select name="raum" id="raum" size="1" onchange="document.forms[1].submit()">
|
||||
<option value="">Alle</option>
|
||||
<div class="input-group mb-3">
|
||||
<div class="form-floating">
|
||||
<select class="form-control form-select" name="raum" id="raum" size="1" onchange="document.forms[1].submit()">
|
||||
<option value="">–– auswählen ––</option>
|
||||
{{range $room := .Rooms}}
|
||||
<option value="{{$room.Id}}"{{if eq $room.Id $.SelectedRoom}} selected{{end}}>{{$room.Name}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
<input type="submit" value="Auswählen">
|
||||
<label for="raum">Raum</label>
|
||||
</div>
|
||||
<noscript>
|
||||
<button class="btn btn-outline-secondary col-lg-4" type="submit">Los!</button>
|
||||
</noscript>
|
||||
</div>
|
||||
</form>
|
||||
<div id="timetable" style="overflow-x: scroll;">
|
||||
{{.Timetable}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
|
Loading…
Reference in a new issue