From 69b18c1fe1d7d876c86de850b716de396877ad9d Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sat, 20 Jun 2026 22:02:32 +0530 Subject: A list of users are shown. Added error pages. --- .../src/main/resources/templates/error.html | 12 +++++++++ .../src/main/resources/templates/error/403.html | 12 +++++++++ .../src/main/resources/templates/layout/main.html | 2 +- .../resources/templates/security/user-form.html | 22 ++++++++++++++++ .../main/resources/templates/security/users.html | 30 ++++++++++++++++++++++ 5 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 spring-boot/10-role-based-security/src/main/resources/templates/error.html create mode 100644 spring-boot/10-role-based-security/src/main/resources/templates/error/403.html create mode 100644 spring-boot/10-role-based-security/src/main/resources/templates/security/user-form.html create mode 100644 spring-boot/10-role-based-security/src/main/resources/templates/security/users.html (limited to 'spring-boot/10-role-based-security/src/main/resources/templates') diff --git a/spring-boot/10-role-based-security/src/main/resources/templates/error.html b/spring-boot/10-role-based-security/src/main/resources/templates/error.html new file mode 100644 index 0000000..ea5a329 --- /dev/null +++ b/spring-boot/10-role-based-security/src/main/resources/templates/error.html @@ -0,0 +1,12 @@ + + + + Error Occurred + + +

An error occurred!

+

Status: 500

+

Message: Error Message

+

Timestamp: Date

+ + \ No newline at end of file diff --git a/spring-boot/10-role-based-security/src/main/resources/templates/error/403.html b/spring-boot/10-role-based-security/src/main/resources/templates/error/403.html new file mode 100644 index 0000000..c1db2c0 --- /dev/null +++ b/spring-boot/10-role-based-security/src/main/resources/templates/error/403.html @@ -0,0 +1,12 @@ + + + + Error Occurred + + +

You have no permission!

+

Status: 500

+

Message: Error Message

+

Timestamp: Date

+ + \ No newline at end of file diff --git a/spring-boot/10-role-based-security/src/main/resources/templates/layout/main.html b/spring-boot/10-role-based-security/src/main/resources/templates/layout/main.html index df96fc5..0b20361 100644 --- a/spring-boot/10-role-based-security/src/main/resources/templates/layout/main.html +++ b/spring-boot/10-role-based-security/src/main/resources/templates/layout/main.html @@ -18,7 +18,7 @@ diff --git a/spring-boot/10-role-based-security/src/main/resources/templates/security/user-form.html b/spring-boot/10-role-based-security/src/main/resources/templates/security/user-form.html new file mode 100644 index 0000000..a27ae7d --- /dev/null +++ b/spring-boot/10-role-based-security/src/main/resources/templates/security/user-form.html @@ -0,0 +1,22 @@ + + + + +
+
+ + + +
+ + +
+
+ + +
+
+ + + \ No newline at end of file diff --git a/spring-boot/10-role-based-security/src/main/resources/templates/security/users.html b/spring-boot/10-role-based-security/src/main/resources/templates/security/users.html new file mode 100644 index 0000000..81752c8 --- /dev/null +++ b/spring-boot/10-role-based-security/src/main/resources/templates/security/users.html @@ -0,0 +1,30 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + +
IDUsernameDescriptionEdit
1UsernameUser descriptionEdit
+
+ + + \ No newline at end of file -- cgit v1.2.3