summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/configs
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2024-03-05 10:27:27 +0100
committerGitHub2024-03-05 10:27:27 +0100
commit69d796dab46cf17069057ed2177174200039135e (patch)
tree60369bf8c4cd718fc127a1aa31e7edfffb7a3ab9 /src/main/resources/templates/configs
parentb1a83510a67496b1d3a6874e345f292815995468 (diff)
parent4bfe7dc69861c47b752f1f6d415f504d5518a03d (diff)
Merge pull request #52 from CCC-MF/issue_51
Darstellung und Aufteilung der Konfigurationsseite verbessern
Diffstat (limited to 'src/main/resources/templates/configs')
-rw-r--r--src/main/resources/templates/configs/tokens.html9
-rw-r--r--src/main/resources/templates/configs/userroles.html5
2 files changed, 6 insertions, 8 deletions
diff --git a/src/main/resources/templates/configs/tokens.html b/src/main/resources/templates/configs/tokens.html
index 15c70f0..0e245b0 100644
--- a/src/main/resources/templates/configs/tokens.html
+++ b/src/main/resources/templates/configs/tokens.html
@@ -7,19 +7,20 @@
<h2><span>✅</span> Tokens</h2>
<div class="border">
<div th:if="${tokens.isEmpty()}">Noch keine Tokens vorhanden.</div>
- <table th:if="${not tokens.isEmpty()}">
+ <table th:if="${not tokens.isEmpty()}" class="config-table">
<thead>
<tr>
<th>Name</th>
<th>Erstellt</th>
- <th></th>
</tr>
</thead>
<tbody>
<tr th:each="token : ${tokens}">
<td>[[ ${token.name} ]]</td>
- <td><time th:datetime="${token.createdAt}">[[ ${token.createdAt} ]]</time></td>
- <td><button class="btn btn-red" th:hx-delete="@{/configs/tokens/{id}(id=${token.id})}" hx-target="#tokens">Löschen</button></td>
+ <td>
+ <time th:datetime="${token.createdAt}">[[ ${token.createdAt} ]]</time>
+ <button class="btn btn-red" th:hx-delete="@{/configs/tokens/{id}(id=${token.id})}" hx-target="#tokens">Löschen</button>
+ </td>
</tr>
</tbody>
</table>
diff --git a/src/main/resources/templates/configs/userroles.html b/src/main/resources/templates/configs/userroles.html
index f5e4586..e5b9c6d 100644
--- a/src/main/resources/templates/configs/userroles.html
+++ b/src/main/resources/templates/configs/userroles.html
@@ -7,12 +7,11 @@
<h2><span>✅</span> Benutzerberechtigungen</h2>
<div class="border">
<div th:if="${userRoles.isEmpty()}">Noch keine Benutzerberechtigungen vorhanden.</div>
- <table th:if="${not userRoles.isEmpty()}">
+ <table th:if="${not userRoles.isEmpty()}" class="config-table">
<thead>
<tr>
<th>Benutzername</th>
<th>Rolle</th>
- <th></th>
</tr>
</thead>
<tbody>
@@ -29,8 +28,6 @@
<button class="btn btn-blue" th:disabled="${#authorization.authentication.getName() == userRole.username}">Übernehmen</button>
</form>
</div>
- </td>
- <td>
<button class="btn btn-red" th:hx-delete="@{/configs/userroles/{id}(id=${userRole.id})}" hx-target="#userroles" th:disabled="${#authorization.authentication.getName() == userRole.username}">Löschen</button>
</td>
</tr>