This commit is contained in:
BrittanyBi
2019-04-03 20:14:54 -06:00
parent 2a4adcbd08
commit 6f70785387
7 changed files with 157 additions and 49 deletions
+11 -2
View File
@@ -7,21 +7,28 @@
<title>User Creation</title>
</head>
<body>
<form method="post" action="">
<form method="post" action="" enctype="utf8">
<label>Username:
<input type="text" name="username"/>
<p th:each="error: ${#fields.errors('userName')}"
th:text="${error}">Validation error</p>
</label>
<br>
<label>Password:
<input type="text" name="password"/>
<input type="text" name="password" th:field="*{matchingPassword}"/>
<p th:each="error : ${#fields.errors('password')}"
th:text="${error}">Validation error</p>
</label>
<br>
<label>Confirm Password:
<input type="text" name="confirmPassword"/>
</label>
<br>
<label>Email Address:
<input type="text" name="emailAddress"/>
<p th:each="error : ${#fields.errors('email')}"
th:text="${error}">Validation error</p>
</label>
<br>
<label>First Name:
@@ -34,6 +41,8 @@
<br>
<label>I agree to the terms and conditions.
<input type="checkbox" name="agreedToTerms"/>
<p th:each="error : ${#fields.errors('terms')}"
th:text="${error}">Validation error</p>
</label>
<br>
<input type="submit" value="Save">