mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-08-16 10:23:02 +00:00
feature: add Page Controller pattern (#2202)
* feat: create page controller * add test * add documentation * fix: delete img file * fix: modify App, SignupMode, UserController, pom.xml, and Readme * fix: modify MVC files on page controller * fix: modify readme file
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title> Signup </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<H1>Sign Up</H1>
|
||||
<form action="#" th:action="@{/signup}" method="post" th:object="${signup}">
|
||||
<div style="margin:20px">
|
||||
<label>Name</label>
|
||||
<input type="text" id="name" name="name"/>
|
||||
</div>
|
||||
<div style="margin:20px">
|
||||
<label>Email</label>
|
||||
<input type="text" id="email" name="email"/>
|
||||
</div>
|
||||
<div style="margin:20px">
|
||||
<label>password</label>
|
||||
<input type="password" id="password" name="password"/>
|
||||
</div>
|
||||
<div style="margin:20px">
|
||||
<input type="submit" value="Signup">
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title> User </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Your Information</h1>
|
||||
<p>Name: <span th:text="${name}"></span></p>
|
||||
<p>Email: <span th:text="${email}"></span></p>
|
||||
</body>
|
||||
Reference in New Issue
Block a user