root / snf-astakos-app / astakos / im / templates / im / signup.html @ 835e2ee3
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.is_available_for_create %} |
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_display }}" class="icons"> |
38 |
<img src=" {{ provider_obj.get_icon_url_display }}" alt="{{ provider_obj.get_title_display }}"> |
39 |
</a>
|
40 |
{% endif %} |
41 |
{% endif %} |
42 |
{% endif %} |
43 |
{% endfor %} |
44 |
</div>
|
45 |
{% else %} |
46 |
|
47 |
<p>Hello, it seems this is the first time you try to <br>taccess the service. |
48 |
Please provide us with the<br> following information to complete your
|
49 |
registration process. <br><br></p> |
50 |
|
51 |
{% include "im/auth/signup_form.html" %} |
52 |
{% endif %} |
53 |
<script>
|
54 |
$(document).ready(function(){
|
55 |
$("#signup-classic").click(function(e){
|
56 |
e.preventDefault();
|
57 |
$(this).siblings('.form-stacked').slideToggle();
|
58 |
pic = $(this).parents('.rt').siblings('.lt').find('img.pic');
|
59 |
var src = (pic.attr('src') === '{{ IM_STATIC_URL }}images/ringer1.png')
|
60 |
? '{{ IM_STATIC_URL }}images/ringer2.png'
|
61 |
: '{{ IM_STATIC_URL }}images/ringer1.png';
|
62 |
pic.attr('src', src);
|
63 |
})
|
64 |
});
|
65 |
</script>
|
66 |
{% endblock %} |