1

make tag-search safe

This commit is contained in:
Christoph
2020-04-17 17:36:24 +02:00
parent 9b58abdab2
commit 0d79467e0b
4 changed files with 58 additions and 23 deletions

View File

@ -8,6 +8,9 @@
<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">
@ -15,7 +18,7 @@
<!--Suchfilter-->
<div class="content top">
<form method="post" th:action="@{/gruppen2/search}">
<form method="post" th:action="@{/gruppen2/search/string}">
<div class="row mb-3">
<div class="input-group col mr-2">
<div class="input-group-prepend">
@ -29,22 +32,15 @@
</form>
<div class="row">
<form method="post" th:action="@{/gruppen2/search}">
<input type="hidden" name="string" value="">
<button class="btn btn-info" type="submit">Alle Anzeigen</button>
</form>
<a class="btn btn-info" th:href="@{/gruppen2/search/all}">Alle Anzeigen</a>
<!--spacer-->
<span class="col"></span>
<form method="post" th:action="@{/gruppen2/search}">
<input type="hidden" name="string" value="LECTURE">
<button class="btn btn-info mr-2" type="submit">Vorlesungen</button>
</form>
<form method="post" th:action="@{/gruppen2/search}">
<input type="hidden" name="string" value="PUBLIC">
<button class="btn btn-info" type="submit">Öffentliche Gruppen</button>
</form>
<a class="btn btn-info mr-2"
th:href="@{/gruppen2/search/type/{type}(type=${LECTURE})}">Vorlesungen</a>
<a class="btn btn-info" type="submit"
th:href="@{/gruppen2/search/type/{type}(type=${PUBLIC})}">Öffentliche Gruppen</a>
</div>
</div>