1
Files
lecture-professional-softwa…/src/main/resources/templates/search.html
2020-04-17 21:28:21 +02:00

55 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="de" xmlns:th="http://www.thymeleaf.org" th:replace="~{mopslayout :: html(
name='Gruppenbildung',
title='Suchen',
headcontent=~{fragments/general :: headcontent('search')},
navigation=~{fragments/general :: nav('search')},
bodycontent=~{:: bodycontent})}">
<body>
<!--/*@thymesVar id="LECTURE" type="mops.gruppen2.domain.model.group.Type"*/-->
<!--/*@thymesVar id="PUBLIC" type="mops.gruppen2.domain.model.group.Type"*/-->
<main th:fragment="bodycontent">
<div class="container-fluid">
<h1>Suchen</h1>
<!--Suchfilter-->
<div class="content top overflow-hidden">
<form method="post" th:action="@{/gruppen2/search/string}">
<div class="d-flex flex-row flex-wrap mr-n2 mt-n2">
<div class="input-group mr-2 mt-2 flex-grow-1" style="flex-basis: 75%;">
<div class="input-group-prepend" style="max-width: 50%;">
<span class="input-group-text text-monospace overflow-hidden"
style="text-overflow: ellipsis">Suchbegriff:</span>
</div>
<input class="form-control" required minlength="1" name="string" type="text">
</div>
<button class="btn btn-primary mr-2 mt-2 flex-grow-1" type="submit">Suchen
</button>
</div>
</form>
<div class="d-flex flex-row flex-wrap mt-1 mr-n2">
<a class="btn btn-info mt-2 mr-2 flex-grow-1" th:href="@{/gruppen2/search/all}">
Alle Anzeigen</a>
<a class="btn btn-info mt-2 mr-2 flex-grow-1"
th:href="@{/gruppen2/search/type/{type}(type=${LECTURE})}">Vorlesungen</a>
<a class="btn btn-info mt-2 mr-2 flex-grow-1"
th:href="@{/gruppen2/search/type/{type}(type=${PUBLIC})}">Öffentliche Gruppen</a>
</div>
</div>
<!--Ergebnisliste-->
<div class="content" th:each="group: ${groups}"
th:insert="fragments/groups :: groupcontentlink"></div>
</div>
</main>
</body>
</html>