summaryrefslogtreecommitdiff
path: root/spring-boot/07-thymeleaf-common-theme/src/main/resources/templates/contact/result.html
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-06-13 17:27:05 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-06-13 17:27:05 +0530
commitfa880db84ec4507010a4d29b7cb0308f82553834 (patch)
treeb68bc07e241384d2d045bb3f585c9cb3b82b691c /spring-boot/07-thymeleaf-common-theme/src/main/resources/templates/contact/result.html
parent5ce49a5f1aa9455ebf59c3cbd856043508ca7902 (diff)
Added sample project 07-thymeleaf-common-theme
Diffstat (limited to 'spring-boot/07-thymeleaf-common-theme/src/main/resources/templates/contact/result.html')
-rw-r--r--spring-boot/07-thymeleaf-common-theme/src/main/resources/templates/contact/result.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/spring-boot/07-thymeleaf-common-theme/src/main/resources/templates/contact/result.html b/spring-boot/07-thymeleaf-common-theme/src/main/resources/templates/contact/result.html
new file mode 100644
index 0000000..d1bda9a
--- /dev/null
+++ b/spring-boot/07-thymeleaf-common-theme/src/main/resources/templates/contact/result.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML>
+<html xmlns:th="http://www.thymeleaf.org" th:replace="~{layout/main :: layout(title='Contact Us', content=~{::main})}">
+
+<body>
+ <main>
+ <p>We received your message.</p>
+
+ <p th:text="'Thank you ' + ${contactForm.name} + '.'" />
+
+ <a th:href="@{/contact}">Try again</a>
+ </main>
+</body>
+
+</html> \ No newline at end of file