source: src/main/resources/templates/register.html@ 3965aed

Last change on this file since 3965aed was 3965aed, checked in by lepaSi <86915414+lepaSi@…>, 9 months ago

Init

  • Property mode set to 100644
File size: 2.7 KB
Line 
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <title>Register</title>
6 <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
7 <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
8 <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
9 <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
10 <script>
11 $(document).ready(function(){
12 $('#Role').change(function(){
13 $("#SALON").prop('disabled', (i, v) => !v);
14 });
15 });
16 </script>
17 <style>
18 body{
19 background: #FFDAB9;
20
21 font-family: "Comic Sans MS", cursive;
22 }
23 </style>
24</head>
25<body>
26<div class="container">
27 <h1 th:if="${hasError}" th:text="${error}"></h1>
28</div>
29<div class="container">
30 <form class="form-signin mt-xl-5" method="post" th:action="@{/register}" th:object="${user}">
31 <h2 class="form-signin-heading">Register</h2>
32 <p>
33 <label for="Role" class="sr-only">Surname</label>
34 <select th:field="*{role}" id="Role">
35 <option th:value="'KLIENT'" th:text="KLIENT"></option>
36 <option th:value="'VRABOTEN'" th:text="VRABOTEN"></option>
37 </select>
38 </p>
39 <p>
40 <label for="EMBG">EMBG</label>
41 <input type="number" th:field="*{EMBG}" id="EMBG" name="EMBG" class="form-control" placeholder="EMBG" required="" autofocus="">
42 </p>
43 <p id="toHide">
44 <label for="imeK">IME</label>
45 <input type="text" th:field="*{imeK}" id="imeK" name="imeK" class="form-control" placeholder="ime" required=""
46 autofocus="">
47 </p>
48 <p id="toHide2">
49 <label for="ADRESA">ADRESA</label>
50 <input type="text" id="ADRESA" th:field="*{adresaK}" name="adresaK" class="form-control" placeholder="adresa" required=""
51 autofocus="">
52 </p>
53 <p id="toHide3">
54 <label for="Salon" >Idis</label>
55 <input type="number" id="SALON" th:field="*{idis}" name="idis" class="form-control" placeholder="idis" required="" disabled
56 autofocus="">
57 </p>
58 <button class="btn btn-lg btn-primary btn-block" type="submit">Sign up</button>
59 </form>
60 <a href="/login" class="btn btn-block btn-light">Already have an account? Login here!</a>
61</div>
62
63</body>
64</html>
Note: See TracBrowser for help on using the repository browser.