source: src/main/resources/templates/register.html@ 533c366

Last change on this file since 533c366 was 533c366, checked in by milamihajlovska <mila.mihajlovska01@…>, 23 months ago

login and register html

  • Property mode set to 100644
File size: 2.1 KB
Line 
1<div class="container">
2 <h1 th:if="${hasError}" th:text="${error}"></h1>
3</div>
4<div class="container">
5 <form class="form-signin mt-xl-5" method="post" action="/register">
6 <h2 class="form-signin-heading">Register</h2>
7 <p>
8 <label for="username" class="sr-only">Username</label>
9 <input type="text" id="username" name="username" class="form-control" placeholder="Username" required=""
10 autofocus="">
11 </p>
12 <p>
13 <label for="password" class="sr-only">Password</label>
14 <input type="password" id="password" name="password" class="form-control" placeholder="Password"
15 required="">
16 </p>
17 <p>
18 <label for="repeatedPassword" class="sr-only">Repeat Password</label>
19 <input type="password" id="repeatedPassword" name="repeatedPassword" class="form-control"
20 placeholder="Repeat Password" required="">
21 </p>
22 <p>
23 <label for="first_name" class="sr-only">First Name</label>
24 <input type="text" id="first_name" name="first_name" class="form-control" placeholder="First Name" required="" autofocus="">
25 </p>
26 <p>
27 <label for="last_name" class="sr-only">Last Name</label>
28 <input type="text" id="last_name" name="last_name" class="form-control" placeholder="Last Name" required=""
29 autofocus="">
30 </p>
31 <p>
32 <div class="form-check form-check-inline">
33 <input class="form-check-input" name="role" type="radio" id="ROLE_ADMIN" value="ROLE_ADMIN">
34 <label class="form-check-label" for="ROLE_ADMIN">ROLE_ADMIN</label>
35 </div>
36 <div class="form-check form-check-inline">
37 <input class="form-check-input" name="role" type="radio" id="ROLE_USER" value="ROLE_USER">
38 <label class="form-check-label" for="ROLE_USER">ROLE_USER</label>
39 </div>
40 </p>
41 <button class="btn btn-lg btn-primary btn-block" type="submit">Sign up</button>
42 </form>
43 <a href="/login" class="btn btn-block btn-light">Already have an account? Login here!</a>
44</div>
Note: See TracBrowser for help on using the repository browser.