root / snf-astakos-app / astakos / im / templates / im / signup.html @ 8a084e9f
History | View | Annotate | Download (1.6 kB)
1 |
{% extends 'im/base_two_cols.html' %} |
---|---|
2 |
{% load astakos_tags i18n %} |
3 |
{% block page.title %} |
4 |
{% trans "Signup" %} |
5 |
{% endblock %} |
6 |
|
7 |
{% block body.left %} |
8 |
|
9 |
{% if third_party_token %} |
10 |
<img class="pic" src="{{ IM_STATIC_URL }}images/mailbox.png" /> |
11 |
{% else %} |
12 |
<img class="pic" src="{{ IM_STATIC_URL }}images/pictures/accounts_3.png" /> |
13 |
{% endif %} |
14 |
|
15 |
{% comment %}{% include "im/services_description.html" %}{% endcomment %} |
16 |
{% endblock body.left %} |
17 |
|
18 |
{% block body.right %} |
19 |
<h2>{% trans "SIGN UP" %}</h2> |
20 |
{% if not third_party_token and not signup_form.errors %} |
21 |
<p>{% trans "Choose one of the following sign up methods." %}</p> |
22 |
<div class="extralogin"> |
23 |
{% for provider in auth_providers %} |
24 |
{% if provider.is_available_for_create %} |
25 |
{% if provider.module == 'local' %} |
26 |
<a href="#" class="submit standalone" id="signup-classic">CLASSIC</a> |
27 |
{% if "local" in im_modules %} |
28 |
{% include "im/auth/signup_form.html" %} |
29 |
{% endif %} |
30 |
{% else %} |
31 |
{% if provider.module == 'shibboleth' %} |
32 |
<a href="{% provider_login_url provider %}" class="submit standalone">ACADEMIC</a> |
33 |
{% else %} |
34 |
<a href="{% provider_login_url provider %}" title="{{ provider.get_title_display }}" class="icons"> |
35 |
<img src=" {{ provider.get_icon_url_display }}" alt="{{ provider.get_title_display }}"> |
36 |
</a>
|
37 |
{% endif %} |
38 |
{% endif %} |
39 |
{% endif %} |
40 |
{% endfor %} |
41 |
</div>
|
42 |
{% else %} |
43 |
{% include "im/auth/signup_form.html" %} |
44 |
{% endif %} |
45 |
<script>
|
46 |
$(document).ready(function(){
|
47 |
$("#signup-classic").click(function(e){
|
48 |
e.preventDefault();
|
49 |
$(this).siblings('.form-stacked').slideToggle();
|
50 |
})
|
51 |
});
|
52 |
</script>
|
53 |
{% endblock %} |