1 |
0ac9b68b
|
Pavel Fidranský
|
<c:if test="${isLoggedIn}">
|
2 |
|
|
<div class="login_box">
|
3 |
|
|
${user.username} <a href="api/log-out" id="logoutButton">Log out</a>
|
4 |
|
|
</div>
|
5 |
|
|
</c:if>
|
6 |
|
|
|
7 |
|
|
<c:if test="${!isLoggedIn}">
|
8 |
|
|
<div class="login_box">
|
9 |
|
|
<button id="toggleLoginPopupButton">Log in</a>
|
10 |
|
|
<button id="toggleRegisterPopupButton">Register</a>
|
11 |
|
|
</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 |
|
|
<button type="submit">Login</button>
|
39 |
|
|
</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 |
|
|
<input type="text" name="user_name" id="user_name">
|
54 |
|
|
</td>
|
55 |
|
|
</tr>
|
56 |
|
|
<tr>
|
57 |
|
|
<td>
|
58 |
|
|
E-mail:
|
59 |
|
|
</td>
|
60 |
|
|
<td>
|
61 |
|
|
<input type="text" name="user_email" id="user_email">
|
62 |
|
|
</td>
|
63 |
|
|
</tr>
|
64 |
|
|
<tr>
|
65 |
|
|
<td>
|
66 |
|
|
Login name:
|
67 |
|
|
</td>
|
68 |
|
|
<td>
|
69 |
|
|
<input type="text" name="user_nick" id="user_nick">
|
70 |
|
|
</td>
|
71 |
|
|
</tr>
|
72 |
|
|
<tr>
|
73 |
|
|
<td>
|
74 |
|
|
Password:
|
75 |
|
|
</td>
|
76 |
|
|
<td>
|
77 |
|
|
<input type="password" name="user_password" id="user_password">
|
78 |
|
|
</td>
|
79 |
|
|
</tr>
|
80 |
|
|
<tr>
|
81 |
|
|
<td>
|
82 |
|
|
Password again:
|
83 |
|
|
</td>
|
84 |
|
|
<td>
|
85 |
|
|
<input type="password" name="user_password_2" id="user_password_2">
|
86 |
|
|
</td>
|
87 |
|
|
</tr>
|
88 |
|
|
<tr>
|
89 |
|
|
<td></td>
|
90 |
|
|
<td>
|
91 |
|
|
<button type="submit">Register</button>
|
92 |
|
|
</td>
|
93 |
|
|
</tr>
|
94 |
|
|
</table>
|
95 |
|
|
</form>
|
96 |
|
|
</div>
|