-add docs
[astakos] / astakos / im / templates / index.html
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         <p>Don't have an account? <a href="{% url astakos.im.views.signup %}">Sign up</a>.</p>
7 {% endblock title%}
8     
9 {% block body%}
10     <div class="row">
11     {% if "local" in im_modules %}
12       <div class="span4">
13         <h4>Local account</h4>
14         <form action="{% url astakos.im.target.local.login %}" method="post" class="form-stacked">{% csrf_token %}
15           {{ form.as_p }}
16          <div>
17             <a href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a>
18          </div>
19          <br>
20           <div class="">
21             <input type="hidden" name="next" value="{{ next }}">
22             <button type="submit" class="btn primary">Go</button>
23           </div>
24         </form>
25       </div>
26     {% endif %}
27       <div class="span8">
28         {% for o in im_modules %}
29             {% if o != 'local' %}
30                 <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>
31             {% endif %}
32         {% endfor %}
33       </div>
34     </div>
35 {% endblock body%}