Projekt

Obecné

Profil

Stáhnout (2.07 KB) Statistiky
| Větev: | Tag: | Revize:
1
<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

    
5
<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

    
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
					<label for="loginUsername">Login name:</label>
18
				</td>
19
				<td>
20
					<input type="text" name="username" id="loginUsername">
21
				</td>
22
			</tr>
23
			<tr>
24
				<td>
25
					<label for="loginPassword">Password:</label>
26
				</td>
27
				<td>
28
					<input type="password" name="password" id="loginPassword">
29
				</td>
30
			</tr>
31
			<tr>
32
				<td></td>
33
				<td>
34
					<button type="submit" class="button">Login</button>
35
				</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
					<label for="registerName">Name:</label>
47
				</td>
48
				<td>
49
					<input type="text" name="name" id="registerName">
50
				</td>
51
			</tr>
52
			<tr>
53
				<td>
54
					<label for="registerEmail">E-mail:</label>
55
				</td>
56
				<td>
57
					<input type="text" name="email" id="registerEmail">
58
				</td>
59
			</tr>
60
			<tr>
61
				<td>
62
					<label for="registerUsername">Login name:</label>
63
				</td>
64
				<td>
65
					<input type="text" name="username" id="registerUsername">
66
				</td>
67
			</tr>
68
			<tr>
69
				<td>
70
					<label for="registerPassword">Password:</label>
71
				</td>
72
				<td>
73
					<input type="password" name="password" id="registerPassword">
74
				</td>
75
			</tr>
76
			<tr>
77
				<td>
78
					<label for="registerPasswordCheck">Password again:</label>
79
				</td>
80
				<td>
81
					<input type="password" name="passwordCheck" id="registerPasswordCheck">
82
				</td>
83
			</tr>
84
			<tr>
85
				<td></td>
86
				<td>
87
					<button type="submit" class="button">Register</button>
88
				</td>
89
			</tr>
90
		</table>
91
	</form>
92
</div>
(6-6/6)