root / snf-astakos-app / astakos / im / templates / im / signup.html @ 0c5f437e
History | View | Annotate | Download (2.2 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 |
<div class="centered"> |
9 |
|
10 |
{% if third_party_token %} |
11 |
<img class="pic" src="{{ IM_STATIC_URL }}images/mailbox.png" /> |
12 |
{% else %} |
13 |
<img class="pic" src="{{ IM_STATIC_URL }}images/ringer1.png" /> |
14 |
{% endif %} |
15 |
</div>
|
16 |
{% endblock body.left %} |
17 |
|
18 |
{% block body.right %} |
19 |
<h2>
|
20 |
<span class="title">{% trans "SIGN UP" %}</span> |
21 |
<span class="header-actions"><a href="{% url login %}">{% trans "Sign in" %}</a></span> |
22 |
|
23 |
</h2>
|
24 |
{% if not third_party_token and not signup_form.errors %} |
25 |
|
26 |
<p>{% trans "Choose one of the following sign up methods." %}</p> |
27 |
|
28 |
<div class="extralogin"> |
29 |
{% for provider_obj in auth_providers %} |
30 |
{% if provider_obj.get_create_policy %} |
31 |
{% if provider_obj.module == 'local' %} |
32 |
<a href="#" class="submit standalone {{ provider_obj.module }}-provider" id="signup-classic">CLASSIC</a> |
33 |
{% if "local" in im_modules %} |
34 |
{% include "im/auth/signup_form.html" %} |
35 |
{% endif %} |
36 |
{% else %} |
37 |
{% if provider_obj.module == 'shibboleth' %} |
38 |
<a href="{% provider_login_url provider_obj %}" class="submit standalone">ACADEMIC</a> |
39 |
{% else %} |
40 |
<a href="{% provider_login_url provider_obj %}" title="{{ provider_obj.get_title_msg }}" class="icons"> |
41 |
<img src=" {{ provider_obj.get_module_icon }}" alt="{{ provider_obj.get_title_msg }}"> |
42 |
</a>
|
43 |
{% endif %} |
44 |
{% endif %} |
45 |
{% endif %} |
46 |
{% endfor %} |
47 |
</div>
|
48 |
{% else %} |
49 |
|
50 |
{% if third_party_token %} |
51 |
<p>Hello, it seems this is the first time you try to access the service.
|
52 |
Please provide us with the following information to complete your |
53 |
registration process. <br><br></p> |
54 |
{% endif %} |
55 |
|
56 |
{% include "im/auth/signup_form.html" %} |
57 |
{% endif %} |
58 |
<script>
|
59 |
$(document).ready(function(){
|
60 |
$("#signup-classic").click(function(e){
|
61 |
e.preventDefault();
|
62 |
$(this).siblings('.form-stacked').slideToggle();
|
63 |
pic = $(this).parents('.rt').siblings('.lt').find('img.pic');
|
64 |
var src = (pic.attr('src') === '{{ IM_STATIC_URL }}images/ringer1.png')
|
65 |
? '{{ IM_STATIC_URL }}images/ringer2.png'
|
66 |
: '{{ IM_STATIC_URL }}images/ringer1.png';
|
67 |
pic.attr('src', src);
|
68 |
})
|
69 |
});
|
70 |
</script>
|
71 |
{% endblock %} |