Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 14917d37

Přidáno uživatelem Jan Čarnogurský před asi 4 roky(ů)

re #7921 added template for login page

Zobrazit rozdíly:

src/main/webapp/WEB-INF/templates/login.html
1
<!DOCTYPE html>
2

  
3
<html xmlns:th="http://www.thymeleaf.org" lang="cs">
4
	<head>
5
		<title>PIA Login</title>
6
	</head>
7
	<body>
8
		<h1>Login</h1>
9
		
1
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"><head>
2
	<meta charset="utf-8">
3
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
4
	<meta name="description" content="">
5
	<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
6
	<meta name="generator" content="Jekyll v3.8.6">
7
	<title>Log in</title>
8
	<link rel="canonical" href="https://getbootstrap.com/docs/4.4/examples/album/">
9

  
10
	<!-- Bootstrap core CSS -->
11
	<link href="css/bootstrap.min.css" rel="stylesheet">
12

  
13
	<link href="css/bootstrap-select.min.css" rel="stylesheet">
14
	<link href="css/fontawesome.min.css" rel="stylesheet">
15
	<link href="css/style.css" rel="stylesheet">
16

  
17
	<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
18
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
19
</head>
20
<body>
21

  
22
<main role="main">
23

  
24
	<div class="container">
25
		<h1>
26
			Přihlášení
27
		</h1>
28
	</div>
29

  
30
	<div class="container box ">
31

  
10 32
		<p th:if="${param.error}" class="error">Wrong user or password!</p>
11
		
12
		<form th:action="@{/login}" method="post">
13
			<div>
14
				<label for="username">Username: </label><input type="text" name="username" id="username" />
15
			</div>
16
			<div>
17
				<label for="password">Password: </label><input type="password" name="password" id="password" />
18
			</div>
19
			<div>
20
				<input type="submit" value="Login" />
21
			</div>
33

  
34
		<form th:action="@{/login}" method="post"
35
							xmlns:th="http://www.w3.org/1999/xhtml">
36
			<table>
37
				<tr>
38
					<td>Přihlašovací jméno:</td>
39
					<td><input type="text" class="form-control"/></td>
40
				</tr>
41
				<tr>
42
					<td>Heslo:</td>
43
					<td><input type="password" class="form-control"/></td>
44
				</tr>
45
				<tr>
46
					<td><button class="btn-primary btn" type="submit">Přihlásit</button></td>
47
				</tr>
48
			</table>
22 49
		</form>
23
	</body>
24
</html>
50
	</div>
51

  
52

  
53
</main>
54

  
55
<footer class="text-muted">
56
	<div class="container">
57

  
58
	</div>
59
</footer>
60

  
61
</body>
62
</html>

Také k dispozici: Unified diff