summaryrefslogtreecommitdiff
path: root/src/main/resources/templates
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2024-03-04 13:17:57 +0100
committerPaul-Christian Volkmer2024-03-04 13:17:57 +0100
commitb2016df8527cd53e6065f2d12636ff76e9a7c3b0 (patch)
treea2ccb0411d53b2148ad2184030e2b18b7d5757ea /src/main/resources/templates
parentb332f3c5ff706bd3ef792365583a162e79a66a3e (diff)
style: fix some style issued
Diffstat (limited to 'src/main/resources/templates')
-rw-r--r--src/main/resources/templates/configs/tokens.html2
-rw-r--r--src/main/resources/templates/fragments.html2
-rw-r--r--src/main/resources/templates/login.html3
3 files changed, 4 insertions, 3 deletions
diff --git a/src/main/resources/templates/configs/tokens.html b/src/main/resources/templates/configs/tokens.html
index e707fbf..15c70f0 100644
--- a/src/main/resources/templates/configs/tokens.html
+++ b/src/main/resources/templates/configs/tokens.html
@@ -32,7 +32,7 @@
<div class="token-form">
<form th:hx-post="@{/configs/tokens}" hx-target="#tokens">
<input placeholder="Token-Name" name="name" required />
- <button>Token Erstellen</button>
+ <button class="btn">Token Erstellen</button>
</form>
</div>
</div>
diff --git a/src/main/resources/templates/fragments.html b/src/main/resources/templates/fragments.html
index 467a483..b1ce737 100644
--- a/src/main/resources/templates/fragments.html
+++ b/src/main/resources/templates/fragments.html
@@ -25,7 +25,7 @@
<li class="login" sec:authorize="isAuthenticated()">
<span>
<div class="user-icon">
- <img th:src="@{user.svg}" alt="User-Image">
+ <img th:src="@{/user.svg}" alt="User-Image">
<span sec:authorize="hasRole('ADMIN')" class="user-role admin">Admin</span>
<span sec:authorize="hasRole('USER')" class="user-role user">User</span>
<span sec:authorize="hasRole('GUEST')" class="user-role guest">Guest</span>
diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html
index 75a3681..e07bb53 100644
--- a/src/main/resources/templates/login.html
+++ b/src/main/resources/templates/login.html
@@ -9,6 +9,7 @@
<div th:replace="~{fragments.html :: nav}"></div>
<main>
<div class="login-form">
+ <img th:src="@{/user.svg}" alt="user-logo" />
<h2 class="centered">Anmelden</h2>
<div class="centered notification error" th:if="${param.error}">Anmeldung nicht erfolgreich</div>
<div class="centered notification notice" th:if="${param.expired}">Sitzung abgelaufen oder von einem Administrator beendet.</div>
@@ -16,7 +17,7 @@
<form method="post" th:action="@{/login}">
<input type="text" id="username" name="username" class="form-control" placeholder="Username" required="" autofocus="" />
<input type="password" id="password" name="password" class="form-control" placeholder="Password" required="" />
- <button type="submit">Anmelden</button>
+ <button class="btn" type="submit">Anmelden</button>
<hr th:if="${not oidcLogins.isEmpty()}" />
<a th:each="oidcLogin : ${oidcLogins}" class="btn" th:href="@{/oauth2/authorization/{provider}(provider=${oidcLogin.component1()})}">OIDC Login - [[ ${oidcLogin.component2()} ]]</a>
</form>