| |
| Line 200 |
Line 200 |
| 200 |
|
200 |
|
| 201 |
.box h1.title { |
201 |
.box h1.title { |
| 202 |
background: #a2bedc url('/images/box_top_bg.png') repeat-x top left; |
202 |
background: #a2bedc url('/images/box_top_bg.png') repeat-x top left; |
|
|
203 |
border-bottom: 1px #728eac solid; |
| 203 |
font-size: 120%; |
204 |
font-size: 120%; |
| 204 |
margin: 0; |
205 |
margin: 0; |
| 205 |
padding: 5px 10px; |
206 |
padding: 5px 10px; |
| |
| |
| Line 255 |
Line 256 |
| 255 |
display: inline; |
256 |
display: inline; |
| 256 |
} |
257 |
} |
| 257 |
|
258 |
|
|
|
259 |
|
|
|
260 |
/**************************************************************************** |
|
|
261 |
* Log In Form |
|
|
262 |
****************************************************************************/ |
|
|
263 |
BLABLUB |
|
|
264 |
padding: 4px; |
|
|
265 |
} |
|
|
266 |
|
|
|
267 |
|
|
|
268 |
/**************************************************************************** |
|
|
269 |
* Account page |
|
|
270 |
****************************************************************************/ |
| 258 |
.prefsbuttons { |
271 |
.prefsbuttons { |
| 259 |
padding: 8px; |
272 |
padding: 8px; |
| 260 |
background-color: #B6CCE3; |
273 |
background-color: #B6CCE3; |
| |
| |
| Line 3 |
Line 3 |
| 3 |
{% block title %}Log in{% endblock %} |
3 |
{% block title %}Log in{% endblock %} |
| 4 |
|
4 |
|
| 5 |
{% block content %} |
5 |
{% block content %} |
| 6 |
<div class="section"> |
6 |
{% box important %} |
| 7 |
<h1>Log in</h1> |
7 |
{% if BUILTIN_AUTH %} |
| 8 |
<div class="body"> |
8 |
<h1>New user?</h1> |
| 9 |
{% if error %} |
9 |
<p> |
| 10 |
{% errorbox %} |
10 |
If you don't yet have an account, you'll need to |
| 11 |
{{ error }} |
11 |
<a href="/account/register/">register</a> one. It will only take a |
| 12 |
{% enderrorbox %} |
12 |
minute. |
| 13 |
{% endif %} |
13 |
</p> |
| 14 |
<form method="post" action="."> |
14 |
{% else %} |
| 15 |
<table id="login_form"> |
15 |
<h1>Log in with your standard username and password</h1> |
| 16 |
<tr> |
16 |
<p> |
| 17 |
<td class="label"><label for="id_username">Username:</label></td> |
17 |
There's no need to register a new account. Your standard username and |
| 18 |
<td class="field"><input type="text" name="username" id="id_username" /></td> |
18 |
password should work fine. |
| 19 |
</tr> |
19 |
</p> |
| 20 |
<tr> |
20 |
{% endif %} |
| 21 |
<td class="label"><label for="id_password">Password:</label></td> |
21 |
{% endbox %} |
| 22 |
<td class="field"><input type="password" name="password" id="id_password" /></td> |
22 |
|
| 23 |
</tr> |
23 |
{% box loginform %} |
| 24 |
<tr> |
24 |
<form method="post" action="."> |
| 25 |
<td> </td> |
25 |
<h1 class="title">Log In</h1> |
| 26 |
<td class="field"><input type="submit" value="Log in" /></td> |
26 |
<div class="main"> |
| 27 |
</tr> |
27 |
{% if error %} |
| 28 |
</table> |
28 |
{% errorbox %} |
| 29 |
</form> |
29 |
{{ error }} |
|
|
30 |
{% enderrorbox %} |
|
|
31 |
{% endif %} |
|
|
32 |
<table> |
|
|
33 |
<tr> |
|
|
34 |
<td class="label"><label for="id_username">Username:</label></td> |
|
|
35 |
<td class="field"><input type="text" name="username" id="id_username" /></td> |
|
|
36 |
</tr> |
|
|
37 |
<tr> |
|
|
38 |
<td class="label"><label for="id_password">Password:</label></td> |
|
|
39 |
<td class="field"><input type="password" name="password" id="id_password" /></td> |
|
|
40 |
</tr> |
|
|
41 |
<tr> |
|
|
42 |
<td> </td> |
|
|
43 |
<td class="field"><input type="submit" value="Log in" /></td> |
|
|
44 |
</tr> |
|
|
45 |
</table> |
| 30 |
</div> |
46 |
</div> |
| 31 |
</div> |
47 |
</form> |
|
|
48 |
{% endbox %} |
|
|
49 |
|
| 32 |
{% endblock %} |
50 |
{% endblock %} |
| |
| |
| Line 114 |
Line 114 |
| 114 |
|
114 |
|
| 115 |
# Authentication and accounts |
115 |
# Authentication and accounts |
| 116 |
(r'^account/login/$', 'djblets.auth.views.login', |
116 |
(r'^account/login/$', 'djblets.auth.views.login', |
| 117 |
{'next_page': '/dashboard/'}), |
117 |
{'next_page': '/dashboard/', |
|
|
118 |
'extra_context': {'BUILTIN_AUTH': settings.BUILTIN_AUTH}}), |
| 118 |
(r'^account/logout/$', 'django.contrib.auth.views.logout', |
119 |
(r'^account/logout/$', 'django.contrib.auth.views.logout', |
| 119 |
{'next_page': settings.LOGIN_URL}), |
120 |
{'next_page': settings.LOGIN_URL}), |
| 120 |
(r'^account/preferences/$', 'reviewboard.accounts.views.user_preferences',), |
121 |
(r'^account/preferences/$', 'reviewboard.accounts.views.user_preferences',), |
| |
| |
| Line 125 |
Line 126 |
| 125 |
(r'^account/register/$', 'djblets.auth.views.register', |
126 |
(r'^account/register/$', 'djblets.auth.views.register', |
| 126 |
{'next_page': '/dashboard/'}), |
127 |
{'next_page': '/dashboard/'}), |
| 127 |
) |
128 |
) |
|
|
129 |
else: |
|
|
130 |
urlpatterns += patterns('', |
|
|
131 |
(r'^account/register/$', |
|
|
132 |
'django.views.generic.simple.redirect_to', |
|
|
133 |
{'url': '/account/login/'})) |
| 128 |
|
134 |
|
| 129 |
# Add static media if running in DEBUG mode |
135 |
# Add static media if running in DEBUG mode |
| 130 |
if settings.DEBUG: |
136 |
if settings.DEBUG: |
| |