Skip to content

Commit 7ee8b6d

Browse files
committed
work
1 parent 152e356 commit 7ee8b6d

File tree

1 file changed

+39
-21
lines changed

1 file changed

+39
-21
lines changed

src/main/resources/templates/user/resetPassword/resetPasswordConfirmed.html

Lines changed: 39 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,51 @@ <h1>
1818
</div>
1919

2020
<div th:fragment="mytwcontent">
21-
<div class="card card-body">
2221
<form th:action="@{/user/resetPassword/confirm/{confirmId}(confirmId=${confirmId})}" th:object="${userAccountForm}" method="post">
2322
<input type="hidden" th:field="*{userFullname}" />
2423
<input type="hidden" th:field="*{userEmail}" />
25-
<div class="form-group form-control-lg">
26-
<label th:for="${#ids.next('userPassword')}" class="control-label">
27-
<span th:utext="#{user.registerConfirmed.userPassword}">Password</span>
28-
</label>
29-
<input type="password" th:field="*{userPassword}" class="form-control" />
30-
<div>
31-
<div th:each="err : ${#fields.errors('userPassword')}" th:text="${err}" class="alert alert-danger" >
32-
</div>
33-
</div>
24+
<div class="card">
25+
<div class="card-header">
26+
<span th:utext="#{user.registerConfirmed.h1}">Register as new User</span>
3427
</div>
35-
<div class="form-group form-control-lg">
36-
<label th:for="${#ids.next('userPasswordConfirmation')}" class="control-label">
37-
<span th:utext="#{user.registerConfirmed.userPasswordConfirmation}">Password again</span>
38-
</label>
39-
<input type="password" th:field="*{userPasswordConfirmation}" class="form-control" />
40-
<div>
41-
<div th:each="err : ${#fields.errors('userPasswordConfirmation')}" th:text="${err}" class="alert alert-danger" >
42-
</div>
28+
<div class="card-body">
29+
<div class="form-row">
30+
<div class="col-md-12 mb-12">
31+
<div class="form-group form-control-lg">
32+
<label th:for="${#ids.next('userPassword')}" class="control-label">
33+
<span th:utext="#{user.registerConfirmed.userPassword}">Password</span>
34+
</label>
35+
<input type="password" th:field="*{userPassword}" class="form-control" />
36+
<div>
37+
<div th:each="err : ${#fields.errors('userPassword')}" th:text="${err}" class="alert alert-danger" >
38+
</div>
39+
</div>
40+
</div>
41+
</div>
42+
</div>
43+
<div class="form-row">
44+
<div class="col-md-12 mb-12">
45+
<div class="form-group form-control-lg">
46+
<label th:for="${#ids.next('userPasswordConfirmation')}" class="control-label">
47+
<span th:utext="#{user.registerConfirmed.userPasswordConfirmation}">Password again</span>
48+
</label>
49+
<input type="password" th:field="*{userPasswordConfirmation}" class="form-control" />
50+
<div>
51+
<div th:each="err : ${#fields.errors('userPasswordConfirmation')}" th:text="${err}" class="alert alert-danger" >
52+
</div>
53+
</div>
54+
</div>
4355
</div>
56+
</div>
4457
</div>
45-
<button id="saveNewPassword" type="submit" class="btn btn-primary">
46-
<span th:utext="#{user.resetPasswordConfirmed.button}">Save New Password</span>
47-
</button>
58+
<div class="card-footer">
59+
<div class="form-row">
60+
<button id="saveNewPassword" type="submit" class="btn btn-primary">
61+
<span th:utext="#{user.resetPasswordConfirmed.button}">Save New Password</span>
62+
</button>
63+
</div>
64+
</div>
65+
</div>
4866
</form>
4967
</div>
5068
</div>

0 commit comments

Comments
 (0)