Projekt

Obecné

Profil

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