Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / signup.html @ 9d20fe23

History | View | Annotate | Download (2.1 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
{% comment %}{% include "im/services_description.html" %}{% endcomment %}
17
{% endblock body.left %}
18

    
19
{% block body.right %}
20
<h2>{% trans "SIGN UP" %}</h2>
21
{% if not third_party_token and not signup_form.errors %}
22
 
23
<p>{% trans "Choose one of the following sign up methods." %}</p>
24
 
25
<div class="extralogin">
26
{% for provider_obj in auth_providers %}
27
        {% if provider_obj.get_create_policy %}
28
                {% if provider_obj.module == 'local' %}
29
                        <a href="#" class="submit standalone" id="signup-classic">CLASSIC</a>
30
            {% if "local" in im_modules %}
31
            {% include "im/auth/signup_form.html" %}
32
                    {% endif %}
33
                {% else %}
34
                        {% if provider_obj.module == 'shibboleth' %}
35
                                <a href="{% provider_login_url provider_obj %}" class="submit standalone">ACADEMIC</a>
36
                        {% else %}
37
                        <a href="{% provider_login_url provider_obj %}" title="{{ provider_obj.get_title_msg }}" class="icons">
38
                                <img src=" {{ provider_obj.get_module_icon }}" alt="{{ provider_obj.get_title_msg }}">
39
                        </a>
40
                        {% endif %}
41
                {% endif %}
42
         {% endif %}
43
    {% endfor %}
44
</div>
45
{% else %}
46

    
47
{% if third_party_token %}
48
<p>Hello, it seems this is the first time you try to access the service.
49
Please provide us with the following information to complete your
50
registration process. <br><br></p>
51
{% endif %}
52

    
53
{% include "im/auth/signup_form.html" %}
54
{% endif %}
55
<script>
56
$(document).ready(function(){
57
    $("#signup-classic").click(function(e){
58
        e.preventDefault();
59
        $(this).siblings('.form-stacked').slideToggle();
60
            pic = $(this).parents('.rt').siblings('.lt').find('img.pic');
61
            var src = (pic.attr('src') === '{{ IM_STATIC_URL }}images/ringer1.png')
62
            ? '{{ IM_STATIC_URL }}images/ringer2.png'
63
            : '{{ IM_STATIC_URL }}images/ringer1.png';
64
        pic.attr('src', src);
65
    })
66
});    
67
</script>    
68
{% endblock %}