Projekt

Obecné

Profil

Stáhnout (1.69 KB) Statistiky
| Větev: | Tag: | Revize:
1 0ac9b68b Pavel Fidranský
<c:if test="${isLoggedIn}">
2 60bada5b Pavel Fidranský
	<div class="user-menu">
3
		${user.username} <a href="api/log-out" class="button" id="logoutButton">Log out</a>
4 0ac9b68b Pavel Fidranský
	</div>
5
</c:if>
6
7
<c:if test="${!isLoggedIn}">
8 60bada5b Pavel Fidranský
	<div class="user-menu">
9
		<button class="button" id="toggleLoginPopupButton">Log in</a>
10
		<button class="button" id="toggleRegisterPopupButton">Register</a>
11 0ac9b68b Pavel Fidranský
	</div>
12
</c:if>
13
14
<div class="login_popup hidden" id="loginPopup">
15
	<form action="api/log-in" method="post" name="loginForm">
16
		<div class="err_msg"></div>
17
		<div class="not_msg"></div>
18
		<table>
19
			<tr>
20
				<td>
21
					Login name:
22
				</td>
23
				<td>
24
					<input type="text" name="username">
25
				</td>
26
			</tr>
27
			<tr>
28
				<td>
29
					Password:
30
				</td>
31
				<td>
32
					<input type="password" name="password">
33
				</td>
34
			</tr>
35
			<tr>
36
				<td></td>
37
				<td>
38 60bada5b Pavel Fidranský
					<button type="submit" class="button">Login</button>
39 0ac9b68b Pavel Fidranský
				</td>
40
			</tr>
41
		</table>
42
	</form>
43
</div>
44
45
<div class="register_popup hidden" id="registerPopup">
46
	<form action="api/register" method="post" name="registerForm">
47
		<table>	  		
48
			<tr>
49
				<td>
50
					Name:
51
				</td>
52
				<td>
53 60bada5b Pavel Fidranský
					<input type="text" name="name">
54 0ac9b68b Pavel Fidranský
				</td>
55
			</tr>
56
			<tr>
57
				<td>
58
					E-mail:
59
				</td>
60
				<td>
61 60bada5b Pavel Fidranský
					<input type="text" name="email">
62 0ac9b68b Pavel Fidranský
				</td>
63
			</tr>
64
			<tr>
65
				<td>
66
					Login name:
67
				</td>
68
				<td>
69 60bada5b Pavel Fidranský
					<input type="text" name="username">
70 0ac9b68b Pavel Fidranský
				</td>
71
			</tr>
72
			<tr>
73
				<td>
74
					Password:
75
				</td>
76
				<td>
77 60bada5b Pavel Fidranský
					<input type="password" name="password">
78 0ac9b68b Pavel Fidranský
				</td>
79
			</tr>
80
			<tr>
81
				<td>
82
					Password again:
83
				</td>
84
				<td>
85 60bada5b Pavel Fidranský
					<input type="password" name="passwordCheck">
86 0ac9b68b Pavel Fidranský
				</td>
87
			</tr>
88
			<tr>
89
				<td></td>
90
				<td>
91 60bada5b Pavel Fidranský
					<button type="submit" class="button">Register</button>
92 0ac9b68b Pavel Fidranský
				</td>
93
			</tr>
94
		</table>
95
	</form>
96
</div>