blob: e09add7c455984fd4f1e16f5abe3fd488eb09ed9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>builddb</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
<div class="container py-5">
<div class="row">
<div class="col-lg-6 mx-auto rounded border p-4">
<h2 class="text-center mb-4">Register</h2>
<hr />
<form method="post" th:object="${registerDto}">
<input type="hidden" th:name="${_csrf.parameterName}"
th:value="${_csrf.token}" />
<div class="row mb-3">
<label for="firstname" class="col-sm-4 col-form-label">First Name*</label>
<div class="col-sm-8">
<input id="firstname" class="form-control" th:field="${registerDto.firstName}" >
<p th:if="${#fields.hasErrors('firstName')}"
th:errorclass="text-danger"
th:errors="${registerDto.firstName}" ></p>
</div>
</div>
<div class="row mb-3">
<label for="lastname" class="col-sm-4 col-form-label">Last Name*</label>
<div class="col-sm-8">
<input id="lastname" class="form-control" th:field="${registerDto.lastName}" >
<p th:if="${#fields.hasErrors('lastName')}"
th:errorclass="text-danger"
th:errors="${registerDto.lastName}" ></p>
</div>
</div>
<div class="row mb-3">
<label for="email" class="col-sm-4 col-form-label">Email*</label>
<div class="col-sm-8">
<input id="email" class="form-control" th:field="${registerDto.email}" >
<p th:if="${#fields.hasErrors('email')}"
th:errorclass="text-danger"
th:errors="${registerDto.email}" ></p>
</div>
</div>
<div class="row mb-3">
<label for="phone" class="col-sm-4 col-form-label">Phone</label>
<div class="col-sm-8">
<input id="phone" class="form-control" th:field="${registerDto.phone}" >
<p th:if="${#fields.hasErrors('phone')}"
th:errorclass="text-danger"
th:errors="${registerDto.phone}" ></p>
</div>
</div>
<div class="row mb-3">
<label for="address" class="col-sm-4 col-form-label">Address</label>
<div class="col-sm-8">
<input id="address" class="form-control" th:field="${registerDto.address}" >
<p th:if="${#fields.hasErrors('address')}"
th:errorclass="text-danger"
th:errors="${registerDto.address}" ></p>
</div>
</div>
<div class="row mb-3">
<label for="password" class="col-sm-4 col-form-label">Password*</label>
<div class="col-sm-8">
<input id="password" class="form-control" type="password"
th:field="${registerDto.password}" >
<p th:if="${#fields.hasErrors('password')}"
th:errorclass="text-danger"
th:errors="${registerDto.password}" ></p>
</div>
</div>
<div class="row mb-3">
<label for="confirmpassword" class="col-sm-4 col-form-label">Confirm Password*</label>
<div class="col-sm-8">
<input id="confirmpassword" class="form-control" type="password"
th:field="${registerDto.confirmPassword}" >
<p th:if="${#fields.hasErrors('confirmPassword')}"
th:errorclass="text-danger"
th:errors="${registerDto.confirmPassword}" ></p>
</div>
</div>
<div class="row mb-3">
<div class="offset-sm-4 col-sm-4 d-grid">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
<div class="col-sm-4 d-grid">
<a href="/" class="btn btn-outline-primary">Cancel</a>
</div>
</div>
</form>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>
|