Statistics
| Branch: | Tag: | Revision:

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

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
{% 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
 
22
<p>{% trans "Choose one of the following sign up methods." %}</p>
23
 
24
<div class="extralogin">
25
{% for provider_obj in auth_providers %}
26
        {% if provider_obj.is_available_for_create %}
27
                {% if provider_obj.module == 'local' %}
28
                        <a href="#" class="submit standalone" id="signup-classic">CLASSIC</a>
29
            {% if "local" in im_modules %}
30
            {% include "im/auth/signup_form.html" %}
31
                    {% endif %}
32
                {% else %}
33
                        {% if provider_obj.module == 'shibboleth' %}
34
                                <a href="{% provider_login_url provider_obj %}" class="submit standalone">ACADEMIC</a>
35
                        {% else %}
36
                        <a href="{% provider_login_url provider_obj %}" title="{{ provider_obj.get_title_display }}" class="icons">
37
                                <img src=" {{ provider_obj.get_icon_url_display }}" alt="{{ provider_obj.get_title_display }}">
38
                        </a>
39
                        {% endif %}
40
                {% endif %}
41
         {% endif %}
42
    {% endfor %}
43
</div>
44
{% else %}
45

    
46
<p>Hello, it seems this is the first time you try to <br>access the service.
47
Please provide us with the<br> following information to complete your
48
registration process. <br><br></p>
49

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