-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47ecd0c
commit d93e6ea
Showing
26 changed files
with
235 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#logo { | ||
height: 70px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorate="~{layout.html}" lang=""> | ||
<body> | ||
<section layout:fragment="content"> | ||
<div th:replace="~{fragments/internal-server-error}"></div> | ||
<div th:replace="~{fragments/not-found-error}"></div> | ||
<a href="/return" class="link-secondary">Zurück zur Startseite</a> | ||
</section> | ||
</body> | ||
</html> | ||
<!doctype html> | ||
<html | ||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorate="~{layout.html}" | ||
lang=""> | ||
<body> | ||
<section layout:fragment="content"> | ||
<div th:replace="~{fragments/internal-server-error}"></div> | ||
<div th:replace="~{fragments/not-found-error}"></div> | ||
<a href="/return" class="link-secondary">Zurück zur Startseite</a> | ||
</section> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
<a th:href="@{|/exams/download/${examFile.getSubjectName}/${examNumberForm.getExamNumber()}|}" th:text="${examFile.getSubjectName()}" class="link-primary"></a> | ||
<a | ||
th:href="@{|/exams/download/${examFile.getSubjectName}/${examNumberForm.getExamNumber()}|}" | ||
th:text="${examFile.getSubjectName()}" | ||
class="link-primary"></a> |
30 changes: 25 additions & 5 deletions
30
src/main/resources/templates/fragments/exam-number-input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
<form action="#" th:action="@{/search}" th:object="${examNumberForm}" method="post" class="was-validated "> | ||
<form | ||
action="#" | ||
th:action="@{/search}" | ||
th:object="${examNumberForm}" | ||
method="post" | ||
class="was-validated"> | ||
<label for="examNumber">Prüfungsnummer eingeben:</label> | ||
<span class="d-flex"> | ||
<input type="text" pattern="^\d+$" name="examNumber" id="examNumber" placeholder="20202" th:value="*{examNumber}" th:maxlength="5" class="form-control"> | ||
<button type="submit" id="submitButton" class="btn btn-outline-primary">Suchen</button> | ||
<input | ||
type="text" | ||
pattern="^\d+$" | ||
name="examNumber" | ||
id="examNumber" | ||
placeholder="20202" | ||
th:value="*{examNumber}" | ||
th:maxlength="5" | ||
class="form-control" /> | ||
<button type="submit" id="submitButton" class="btn btn-outline-primary"> | ||
Suchen | ||
</button> | ||
</span> | ||
|
||
<p th:if="${#fields.hasErrors('examNumber')}" th:errors="*{examNumber}" class="text-danger">Prüfungsnummer Error</p> | ||
</form> | ||
<p | ||
th:if="${#fields.hasErrors('examNumber')}" | ||
th:errors="*{examNumber}" | ||
class="text-danger"> | ||
Prüfungsnummer Error | ||
</p> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
<footer class="w-100 position-absolute z-1 bottom-0 bg-white"> | ||
<hr class="mt-0"> | ||
<hr class="mt-0" /> | ||
<div class="p-3 align-items-center justify-content-between d-flex"> | ||
<a href="https://www.swissuniversities.ch/" target="_blank"> | ||
<img alt="Swissuniversities logo" height="22px" th:src="@{images/swissuniversities.png}"> | ||
<img | ||
alt="Swissuniversities logo" | ||
height="22px" | ||
th:src="@{images/swissuniversities.png}" /> | ||
</a> | ||
<div class="d-flex justify-content-end gap-4"> | ||
<a class="link-primary" href="https://www.unilu.ch/impressum/" target="_blank">Impressum & Datenschutz</a> | ||
<span th:text="${'Version ' + @environment.getProperty('spring.application.version')}"></span> | ||
<a | ||
class="link-primary" | ||
href="https://www.unilu.ch/impressum/" | ||
target="_blank"> | ||
Impressum & Datenschutz | ||
</a> | ||
<span | ||
th:text="${'Version ' + @environment.getProperty('spring.application.version')}"></span> | ||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
<header class="d-flex p-2 pb-0 align-items-center justify-content-between"> | ||
<a href="/"> | ||
<img alt="image not found" class="m-4" id="logo" th:src="@{images/UNILU_Schriftzug_Standard_schwarz_DE.png}"> | ||
<img | ||
alt="image not found" | ||
class="m-4" | ||
id="logo" | ||
th:src="@{images/UNILU_Schriftzug_Standard_schwarz_DE.png}" /> | ||
</a> | ||
<div class="d-flex justify-content-end flex-column"> | ||
<p class="me-3 fs-3 text-end">Sven Studi</p><!--Todo wenn login funktioniert auf eingeloggten user ändern--> | ||
<p class="me-3 fs-3 text-end">Sven Studi</p> | ||
<!--Todo wenn login funktioniert auf eingeloggten user ändern--> | ||
<div class="me-3 d-flex gap-3 flex-row"> | ||
<a class="link-primary" th:href="@{/search}">Prüfungslaufnummer</a> | ||
<a class="link-primary" th:href="'#'">Kontakt</a><!--Todo wenn contact.html existiert--> | ||
<a class="link-primary" th:href="'#'">Logout</a> <!--Todo wenn login funktioniert--> | ||
<a class="link-primary" th:href="'#'">Kontakt</a> | ||
<!--Todo wenn contact.html existiert--> | ||
<a class="link-primary" th:href="'#'">Logout</a> | ||
<!--Todo wenn login funktioniert--> | ||
</div> | ||
</div> | ||
</header> | ||
<hr class="mt-0"> | ||
<hr class="mt-0" /> |
12 changes: 8 additions & 4 deletions
12
src/main/resources/templates/fragments/internal-server-error.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<div th:if="${session.get('errorModel') != null and session.get('errorModel').getError().equals('unknown')}"> | ||
<div | ||
th:if="${session.get('errorModel') != null and session.get('errorModel').getError().equals('unknown')}"> | ||
<h1>Ein unerwarteter Fehler ist aufgetreten.</h1> | ||
<p th:text="${session.get('errorModel').getErrorMessage()}"></p> | ||
<p>Kontaktiere | ||
<a class="link-secondary" href="mailto: [email protected]">[email protected].</a> | ||
<p> | ||
Kontaktiere | ||
<a class="link-secondary" href="mailto: [email protected]"> | ||
[email protected]. | ||
</a> | ||
</p> | ||
</div> | ||
</div> |
12 changes: 8 additions & 4 deletions
12
src/main/resources/templates/fragments/not-found-error.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<div th:if="${session.get('errorModel') == null or session.get('errorModel').getError() == '404'}"> | ||
<div | ||
th:if="${session.get('errorModel') == null or session.get('errorModel').getError() == '404'}"> | ||
<h1>Die gesuchte Seite wurde nicht gefunden.</h1> | ||
<p>Versuche eine Prüfung zu | ||
<p> | ||
Versuche eine Prüfung zu | ||
<a href="/search" class="link-secondary">suchen</a> | ||
oder gehe zurück zur <a href="/" class="link-secondary">Startseite</a>. | ||
oder gehe zurück zur | ||
<a href="/" class="link-secondary">Startseite</a> | ||
. | ||
</p> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorate="~{layout.html}" lang=""> | ||
<!doctype html> | ||
<html | ||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorate="~{layout.html}" | ||
lang=""> | ||
<body> | ||
<section layout:fragment="content"> | ||
<span class="display-4">Willkommen bei der Prüfungsabfrage der Uni Luzern</span> | ||
</section> | ||
<section layout:fragment="content"> | ||
<span class="display-4"> | ||
Willkommen bei der Prüfungsabfrage der Uni Luzern | ||
</span> | ||
</section> | ||
</body> | ||
</html> | ||
</html> |
Oops, something went wrong.