myrdok123

register.html

Feb 17th, 2023
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml"
  3. xmlns:th="http://www.thymeleaf.org">
  4. <head th:include="~{fragment/commans::head}"></head>
  5. <body class="bg-secondary">
  6. <header th:include="~{fragment/commans::nav}">
  7. </header>
  8. <main role="main" class="bg-secondary">
  9. <div class="jumbotron">
  10. <div class="container text-light ">
  11. <h1 class="display-3 ">
  12. <strong class="bg-blur rounded border-left border-white pl-3 border-bottom">
  13. Register</strong></h1>
  14. </div>
  15. <div class="container bg-blur rounded p-5 mt-5 w-75">
  16. <form th:action="@{/users/register}" th:method="post" th:object="${userRegisterBindingModel}"
  17. class=" text-center text-light">
  18. <div class="form-group row">
  19. <label for="username" class="col-sm-2 col-form-label">Username</label>
  20. <div class="col-sm-10">
  21. <input
  22. th:field="*{username}"
  23. th:errorclass="is-invalid"
  24. type="text"
  25. class="form-control"
  26. id="username"
  27. aria-describedby="usernameHelpInline" placeholder="Username">
  28. <small id="usernameHelpInline" class="invalid-feedback bg-danger text-light rounded">
  29. Username length must be between 5 and 20 characters.
  30. </small>
  31. </div>
  32. </div>
  33. <div class="form-group row">
  34. <label for="firstName" class="col-sm-2 col-form-label">First name</label>
  35. <div class="col-sm-10">
  36. <input
  37. th:field="*{firstName}"
  38. type="text" class="form-control" id="firstName"
  39. aria-describedby="firstNameHelpInline" placeholder="First name">
  40. </div>
  41. </div>
  42. <div class="form-group row">
  43. <label for="lastName" class="col-sm-2 col-form-label">Last name</label>
  44. <div class="col-sm-10">
  45. <input
  46. th:field="*{lastName}"
  47. th:errorclass="is-invalid"
  48. type="text" class="form-control" id="lastName"
  49. aria-describedby="lastNameHelpInline" placeholder="Last name">
  50. <small id="lastNameHelpInline" class="invalid-feedback bg-danger text-light rounded">
  51. Last name length must be between 5 and 20 characters.
  52. </small>
  53. </div>
  54. </div>
  55. <div class="form-group row">
  56. <label for="email" class="col-sm-2 col-form-label">Email</label>
  57. <div class="col-sm-10">
  58. <input
  59. th:field="*{email}"
  60. th:errorclass="is-invalid"
  61. type="text" class="form-control" id="email"
  62. aria-describedby="emailHelpInline" placeholder="[email protected]">
  63. <small id="emailHelpInline" class="invalid-feedback bg-danger text-light rounded">
  64. Enter valid email address.
  65. </small>
  66. </div>
  67. </div>
  68. <div class="form-group row">
  69. <label for="password" class="col-sm-2 col-form-label">Password</label>
  70. <div class="col-sm-10">
  71. <input
  72. th:field="*{password}"
  73. th:errorclass="is-invalid"
  74. type="password" class="form-control" id="password"
  75. aria-describedby="passwordHelpInline" placeholder="Password">
  76. <small id="passwordHelpInline" class="invalid-feedback bg-danger text-light rounded">
  77. Password length must be more than 3 characters long.
  78. </small>
  79. </div>
  80. </div>
  81. <div class="form-group row">
  82. <label for="confirmPassword" class="col-sm-2 col-form-label">Confirm Password</label>
  83. <div class="col-sm-10">
  84. <input
  85. th:field="*{confirmPassword}"
  86. th:errorclass="is-invalid"
  87. type="password" class="form-control" id="confirmPassword"
  88. aria-describedby="confirmPasswordHelpInline" placeholder="Confirm Password">
  89. <small id="confirmPasswordHelpInline" class="invalid-feedback bg-danger text-light rounded">
  90. Password length must be more than 3 characters long.
  91. </small>
  92. </div>
  93. </div>
  94. <button type="submit" class="btn btn-info w-50">Register</button>
  95. </form>
  96. <hr class="bg-light">
  97. </div>
  98. </div>
  99. </main>
  100. <footer th:include="~{fragment/commans::footer}">
  101. </footer>
  102. </body>
  103. </html>
Advertisement
Add Comment
Please, Sign In to add comment