root / astakos / im / templates / index.html @ 64cd4730
History | View | Annotate | Download (1.8 kB)
1 |
{% extends 'base.html'%} |
---|---|
2 |
|
3 |
{% block title%} |
4 |
<h2>Welcome</h2> |
5 |
<p>Choose how to login. Or move on to <a href="admin">admin</a>.</p> |
6 |
{% endblock title%} |
7 |
|
8 |
{% block body%} |
9 |
<div class="row"> |
10 |
{% if "local" in im_modules %} |
11 |
<div class="span4"> |
12 |
<h4>Local account</h4> |
13 |
<form action="{% url astakos.im.target.local.login %}" method="post" class="form-stacked"> |
14 |
<fieldset>
|
15 |
<div class="clearfix"> |
16 |
<label for="username">Username:</label> |
17 |
<div class="input"> |
18 |
<input class="span3" id="user-username" name="username" type="text" /> |
19 |
</div>
|
20 |
</div>
|
21 |
<div class="clearfix"> |
22 |
<label for="password">Password:</label> |
23 |
<div class="input"> |
24 |
<input class="span3" id="user-password" name="password" type="password" /> |
25 |
</div>
|
26 |
</div>
|
27 |
</fieldset>
|
28 |
<div>
|
29 |
<a href="{% url astakos.im.views.register 'local' %}">Sign up</a> |
30 |
</div>
|
31 |
<div>
|
32 |
<a href="{% url astakos.im.views.reclaim_password %}">Forgot your password?</a> |
33 |
</div>
|
34 |
<br>
|
35 |
<div class=""> |
36 |
<input type="hidden" name="next" value="{{ next }}"> |
37 |
<button type="submit" class="btn primary">Go</button> |
38 |
</div>
|
39 |
</form>
|
40 |
</div>
|
41 |
{% endif %} |
42 |
{% if other_modules %} |
43 |
<div class="span8"> |
44 |
<h4>Other provider</h4> |
45 |
{% for o in other_modules %} |
46 |
<a href="/im/login/{{ o }}{% ifnotequal next "" %}?next={{ next|urlencode }}{% endifnotequal %}" alt="{{ o|title }}"><img src="/im/static/{{ o }}.png" width="120" height="120"></a> |
47 |
{% endfor %} |
48 |
</div>
|
49 |
{% endif %} |
50 |
</div>
|
51 |
{% endblock body%} |