ui: nice layout #18

Manually merged
johannes merged 13 commits from ui/enhance-layout into main 2023-07-10 11:37:13 +00:00
2 changed files with 14 additions and 3 deletions
Showing only changes of commit bfce76ca79 - Show all commits

View file

@ -12,7 +12,7 @@
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<div class="col-md-8 offset-md-2 col-sm-10 offset-sm-1 bg-secondary bg-gradient my-3 p-3 rounded" style="--bs-bg-opacity: .3;"> <div class="col-md-8 offset-md-2 col-sm-10 offset-sm-1 bg-secondary bg-gradient mt-3 mb-2 p-3 rounded" style="--bs-bg-opacity: .3;">
<h5 class="text-center m-1">Sprechstunden für Matheveranstaltungen an der TU Darmstadt</h5> <h5 class="text-center m-1">Sprechstunden für Matheveranstaltungen an der TU Darmstadt</h5>
<p class="text-center mb-0"> <p class="text-center mb-0">
<a href="/">Startseite</a> <a href="/">Startseite</a>
@ -23,7 +23,10 @@
</p> </p>
</div> </div>
{{block "content" .}}Du solltest dies nicht sehen.{{end}} <div id="content">
<h1 class="h3 m-1 mb-3">{{template "title" .}}</h1>
{{block "content" .}}Du solltest dies nicht sehen.{{end}}
</div>
</div> </div>
<footer class="container"> <footer class="container">

View file

@ -1,4 +1,12 @@
{{define "title"}}Übersicht{{end}} {{define "title"}}
Sprechstunden
{{- range $course := .Courses -}}
{{- if eq $course.Id $.SelectedCourse}} für {{$course.Name}}{{- end -}}
{{- end -}}
{{- range $room := .Rooms -}}
{{- if eq $room.Id $.SelectedRoom}} in Raum {{$room.Name}}{{- end -}}
{{- end -}}
{{end}}
{{define "content"}} {{define "content"}}
<form method="GET" action="/getByCourse"> <form method="GET" action="/getByCourse">