root / astakos / im / templates / signup.html @ a196eb7e
History | View | Annotate | Download (2.1 kB)
1 |
{% extends "base.html" %} |
---|---|
2 |
|
3 |
{% block title%} |
4 |
<h1>Welcome</h1> |
5 |
<p>Choose how to signup.</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.views.signup %}" method="post" class="form-stacked">{% csrf_token %} |
14 |
{{ local_form.as_p }} |
15 |
<br>
|
16 |
<div class=""> |
17 |
<input type="hidden" name="next" value="{{ next }}"> |
18 |
<input type="hidden" name="code" value="{{ code }}"> |
19 |
<input type="hidden" name="provider" value="local"> |
20 |
<button type="submit" class="btn primary">Go</button> |
21 |
</div>
|
22 |
</form>
|
23 |
</div>
|
24 |
{% endif %} |
25 |
<div class="span4"> |
26 |
{% if 'twitter' in im_modules %} |
27 |
<img src="/im/static/twitter.png" width="120" height="120"> |
28 |
<form action="{% url astakos.im.views.signup %}" method="post" class="form-stacked">{% csrf_token %} |
29 |
{{ twitter_form.as_p }} |
30 |
<br>
|
31 |
<div class=""> |
32 |
<input type="hidden" name="next" value="{{ next }}"> |
33 |
<input type="hidden" name="code" value="{{ code }}"> |
34 |
<input type="hidden" name="provider" value="twitter"> |
35 |
<input type="submit" value="Signup with Twitter"/> |
36 |
</div>
|
37 |
</form>
|
38 |
{% endif %} |
39 |
</div>
|
40 |
<div class="span4"> |
41 |
{% if 'shibboleth' in im_modules %} |
42 |
<img src="/im/static/shibboleth.png" width="120" height="120"> |
43 |
<form action="{% url astakos.im.target.shibboleth.login %}" method="post" class="form-stacked">{% csrf_token %} |
44 |
<br>
|
45 |
<div class=""> |
46 |
<input type="hidden" name="next" value="{{ next }}"> |
47 |
<input type="hidden" name="code" value="{{ code }}"> |
48 |
<input type="hidden" name="provider" value="shibboleth"> |
49 |
<input type="submit" value="Sign up with Shibboleth"/> |
50 |
</div>
|
51 |
</form>
|
52 |
{% endif %} |
53 |
</div>
|
54 |
</div>
|
55 |
{% endblock body%} |