source: Prototype Application/Paw5/src/main/resources/templates/login.html@ d7eaf88

main
Last change on this file since d7eaf88 was d7eaf88, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 16 months ago

fix thymeleaf links

This was the problem that was causing model attributes to not be recognized in the templates. It should be xmlns:th="http://thymeleaf.org" not xmlns:th="http://www.thymeleaf.org" so without the www part.

  • Property mode set to 100644
File size: 2.7 KB
Line 
1<!DOCTYPE html>
2<html lang="en" xmlns:th="http://thymeleaf.org">
3<head>
4 <meta charset="UTF-8">
5 <title>Title</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
11</head>
12<body xmlns:th="http://www.thymeleaf.org">
13<header>
14 <nav class="navbar navbar-expand-md navbar-dark bg-dark">
15 <div class="container">
16 <a class="navbar-brand" href="/home">Paw 5</a>
17 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
18 aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
19 <span class="navbar-toggler-icon"></span>
20 </button>
21
22 <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault">
23 <ul class="navbar-nav m-auto">
24 <li class="nav-item m-auto">
25 <a class="nav-link active" href="/home/aboutUs">About us</a>
26 </li>
27 <li class="nav-item m-auto">
28 <a class="nav-link active" href="/login">Login</a>
29 </li>
30 <li class="nav-item m-auto">
31 <a class="nav-link active" href="/register">Register</a>
32 </li>
33 </ul>
34 </div>
35 </div>
36 </nav>
37</header>
38<div>
39
40 <form method="post" action="/login">
41 <h1>Login</h1>
42 <label for="email">Username:</label>
43 <input type="text" id="email" name="email"><br><br>
44
45 <label for="password">Password:</label>
46 <input type="password" id="password" name="password"><br><br>
47
48 <input id="button" type="submit" value="Submit">
49
50 </form>
51 <a href="/register" class="btn btn-block btn-light">Register here</a>
52</div>
53<style>
54 body{
55 color: #212121;
56 }
57 form{
58 background-color: lightgray;
59 text-align: center;
60 padding: 20px;
61 border-radius: 20px;
62 width: 60%;
63 margin-left: 300px;
64 }
65 body{
66 font-family: Montserrat,serif;
67 }
68 #button{
69 background-color: #212121;
70 color: azure;
71 border: none;
72 height: 40px;
73 width: 80px;
74 border-radius: 20px;
75 }
76</style>
77</body>
78</html>
Note: See TracBrowser for help on using the repository browser.