0003-Move-all-idp-templates-to-authentic2-templates-refs-.patch
authentic2/idp/templates/idp/account_management.html | ||
---|---|---|
1 |
{% extends "base.html" %} |
|
2 |
{% load i18n %} |
|
3 | ||
4 |
{% block title %} |
|
5 |
{% trans "Authentic - Account Management" %} |
|
6 |
{% endblock %} |
|
7 | ||
8 | ||
9 |
{% block content %} |
|
10 |
<h2>{% trans "Account Management" %}</h2> |
|
11 |
<h3>{% trans "Profile" %}</h3> |
|
12 |
<div id="profile"> |
|
13 |
{% if profile %} |
|
14 |
<dl> |
|
15 |
{% for key, values in profile %} |
|
16 |
<dt>{{ key|capfirst }}</dt> |
|
17 |
<dd>{% if values|length == 1 %}{{ values.0 }}{% else %} |
|
18 |
<ul> |
|
19 |
{% for value in values %} |
|
20 |
<li>{{ value }}</li> |
|
21 |
{% endfor %} |
|
22 |
</ul> |
|
23 |
{% endif %} |
|
24 |
</dd> |
|
25 |
{% endfor %} |
|
26 |
</dl> |
|
27 |
{% endif %} |
|
28 |
{% if allow_email_change %} |
|
29 |
<p><a href="{% url 'email-change' %}">{% trans "Change email" %}</a></p> |
|
30 |
{% endif %} |
|
31 |
{% if allow_profile_edit %} |
|
32 |
<p><a href="{% url 'profile_edit' %}">{% trans "Edit profile" %}</a></p> |
|
33 |
{% endif %} |
|
34 |
{% if allow_account_deletion %} |
|
35 |
<p><a href="{% url 'delete_account' %}">{% trans "Delete profile" %}</a></p> |
|
36 |
{% endif %} |
|
37 |
</div> |
|
38 |
<h3>{% trans "Credentials" %}</h3> |
|
39 |
{% for html_block in frontends_block %} |
|
40 |
{{ html_block|safe }} |
|
41 |
{% endfor %} |
|
42 |
<p><a href="/">{% trans "Back" %}</a></p> |
|
43 |
{% endblock %} |
authentic2/idp/templates/idp/homepage.html | ||
---|---|---|
1 |
{% extends "base.html" %} |
|
2 |
{% load i18n %} |
|
3 | ||
4 |
{% block title %} |
|
5 |
{% trans "Authentic" %} |
|
6 |
{% endblock %} |
|
7 | ||
8 | ||
9 |
{% block content %} |
|
10 | ||
11 |
{% if account_management %} |
|
12 |
<p> |
|
13 |
<a href="{% url 'account_management' %}">{% trans "Account Management" %}</a> |
|
14 |
</p> |
|
15 |
{% endif %} |
|
16 | ||
17 | ||
18 |
{% if authorized_services %} |
|
19 |
<div id="login-actions"> |
|
20 |
<h2>{% trans "Services" %}</h2> |
|
21 |
<ul> |
|
22 |
{% for service in authorized_services %} |
|
23 |
{% if service.actions %} |
|
24 |
<li>{% if service.url %}<a href="{{ service.url }}">{% endif %}{{ service.name }}{% if service.url %}</a>{% endif %} |
|
25 |
<div class="actions"> |
|
26 |
{% for action in service.actions %} |
|
27 |
{% if action.0 == "template" %} |
|
28 |
{% include action.1 %} |
|
29 |
{% else %} |
|
30 |
<form action="{{ action.2 }}" method="{{ action.1 }}"> |
|
31 |
{% if action.3 %} |
|
32 |
{% for key, value in action.3 %} |
|
33 |
<input type="hidden" name="{{ key }}" value="{{ value }}" /> |
|
34 |
{% endfor %} |
|
35 |
{% endif %} |
|
36 |
<input type="hidden" name="next" value="/"/> |
|
37 |
<input type="submit" class="submit-link" value="{{ action.0 }}"> |
|
38 |
</form> |
|
39 |
{% endif %} |
|
40 |
{% endfor %} |
|
41 |
</div> |
|
42 |
</li> |
|
43 |
{% endif %} |
|
44 |
{% endfor %} |
|
45 |
</ul> |
|
46 |
</div> |
|
47 |
{% endif %} |
|
48 | ||
49 |
{% if user.is_staff %} |
|
50 |
<p id="administration-link"><a href="/admin">{% trans "Administration" %}</a></p> |
|
51 |
{% endif %} |
|
52 | ||
53 |
{% endblock %} |
authentic2/idp/templates/idp/logout.html | ||
---|---|---|
1 |
{% extends "base.html" %} |
|
2 |
{% load i18n %} |
|
3 | ||
4 |
{% block title %} |
|
5 |
{% trans "Logout" %} |
|
6 |
{% endblock %} |
|
7 |
{% block bodyargs %} |
|
8 |
onload="window.iframe_count -= 1" |
|
9 |
{% endblock %} |
|
10 | ||
11 |
{% comment %}Initialize iframe coutndown {% endcomment %} |
|
12 |
{% block extra_scripts %} |
|
13 |
<script> |
|
14 |
window.iframe_count = 1; |
|
15 |
</script> |
|
16 |
{% endblock %} |
|
17 | ||
18 |
{% block content %} |
|
19 |
<h1>{% trans message %}</h1> |
|
20 |
<ul class="logout-list"> |
|
21 |
{% for fragment in logout_list %} |
|
22 |
{{ fragment|safe }} |
|
23 |
{% endfor %} |
|
24 |
</ul> |
|
25 |
<!-- Hack alert !!! block loading indefinitely by loading an inacessible IP --> |
|
26 |
<script> |
|
27 |
window.iframe_count += document.getElementsByTagName("iframe").length; |
|
28 |
var refresh_launched = 0; |
|
29 |
setInterval(function () { |
|
30 |
if (iframe_count == 0) { |
|
31 |
if (refresh_launched == 0) { |
|
32 |
refresh_launched = 1; |
|
33 |
setTimeout(function () { window.location = '{{ next_page }}' }, 300); |
|
34 |
} |
|
35 |
} |
|
36 |
}, {{ redir_timeout }}) |
|
37 |
</script> |
|
38 | ||
39 |
<div id="continue-link"><a href="{{ next_page }}">{% trans "Continue logout" %}</div> |
|
40 | ||
41 |
{% endblock %} |
authentic2/idp/templates/interaction/consent_attributes.html | ||
---|---|---|
1 |
{% extends "base.html" %} |
|
2 |
{% load i18n %} |
|
3 | ||
4 |
{% block title %} {% trans "Consent page for attribute propagation" %} {% endblock %} |
|
5 | ||
6 |
{% block content %} |
|
7 | ||
8 | ||
9 |
{% load i18n %} |
|
10 |
<div id="consent"> |
|
11 |
<form method="post" action=""> |
|
12 |
{% csrf_token %} |
|
13 |
<p> |
|
14 |
{% trans "Choose attributes to send to " %} <strong>{{ provider_id }}</strong> ? |
|
15 | ||
16 |
<ul> |
|
17 |
{% for i, name, values in attributes %} |
|
18 |
<li> |
|
19 |
{% if allow_selection %} |
|
20 |
<input type="checkbox" name="attribute_nb_{{ i }}" value="{{ i }}" checked="checked"/> |
|
21 |
{% endif %} |
|
22 |
{{ name }} : <strong>{% for v in values %}{{ v }} {% endfor %}</strong></li> |
|
23 |
{% endfor %} |
|
24 |
</ul> |
|
25 | ||
26 |
</p> |
|
27 | ||
28 |
<input type="hidden" name="next" value="{{ next }}" /> |
|
29 |
<input type="hidden" name="nonce" value="{{ nonce }}" /> |
|
30 |
{% if allow_selection %} |
|
31 |
<input type="submit" name="accept" value="{% trans 'Send selected' %}"/> |
|
32 |
{% else %} |
|
33 |
<input type="submit" name="accept" value="{% trans 'Send all' %}"/> |
|
34 |
{% endif %} |
|
35 |
<input type="submit" name="refuse" value="{% trans 'Refuse all' %}"/> |
|
36 |
</form> |
|
37 |
</div> |
|
38 | ||
39 |
{% endblock %} |
authentic2/idp/templates/interaction/consent_federation.html | ||
---|---|---|
1 |
{% extends "base.html" %} |
|
2 |
{% load i18n %} |
|
3 | ||
4 |
{% block title %} {% trans "Consent page for federation" %} {% endblock %} |
|
5 | ||
6 |
{% block content %} |
|
7 | ||
8 | ||
9 |
{% load i18n %} |
|
10 |
<div id="consent"> |
|
11 |
<p> |
|
12 |
{% if provider_id %} |
|
13 |
{% trans "Do you accept to federate your account with " %} <strong>{{ provider_id }}</strong> ? |
|
14 |
{% else %} |
|
15 |
{% trans "Do you accept to federate your account ?" %} |
|
16 |
{% endif %} |
|
17 |
{{ provider_id2 }} |
|
18 |
</p> |
|
19 |
<form method="post" action=""> |
|
20 |
{% csrf_token %} |
|
21 |
<input type="hidden" name="next" value="{{ next }}" /> |
|
22 |
<input type="hidden" name="nonce" value="{{ nonce }}" /> |
|
23 |
<input type="submit" name="accept" value="{% trans 'Accept' %}"/> |
|
24 |
<input type="submit" name="refuse" value="{% trans 'Refuse' %}"/> |
|
25 |
</form> |
|
26 |
</div> |
|
27 | ||
28 |
{% endblock %} |
authentic2/templates/idp/account_management.html | ||
---|---|---|
1 |
{% extends "base.html" %} |
|
2 |
{% load i18n %} |
|
3 | ||
4 |
{% block title %} |
|
5 |
{% trans "Authentic - Account Management" %} |
|
6 |
{% endblock %} |
|
7 | ||
8 | ||
9 |
{% block content %} |
|
10 |
<h2>{% trans "Account Management" %}</h2> |
|
11 |
<h3>{% trans "Profile" %}</h3> |
|
12 |
<div id="profile"> |
|
13 |
{% if profile %} |
|
14 |
<dl> |
|
15 |
{% for key, values in profile %} |
|
16 |
<dt>{{ key|capfirst }}</dt> |
|
17 |
<dd>{% if values|length == 1 %}{{ values.0 }}{% else %} |
|
18 |
<ul> |
|
19 |
{% for value in values %} |
|
20 |
<li>{{ value }}</li> |
|
21 |
{% endfor %} |
|
22 |
</ul> |
|
23 |
{% endif %} |
|
24 |
</dd> |
|
25 |
{% endfor %} |
|
26 |
</dl> |
|
27 |
{% endif %} |
|
28 |
{% if allow_email_change %} |
|
29 |
<p><a href="{% url 'email-change' %}">{% trans "Change email" %}</a></p> |
|
30 |
{% endif %} |
|
31 |
{% if allow_profile_edit %} |
|
32 |
<p><a href="{% url 'profile_edit' %}">{% trans "Edit profile" %}</a></p> |
|
33 |
{% endif %} |
|
34 |
{% if allow_account_deletion %} |
|
35 |
<p><a href="{% url 'delete_account' %}">{% trans "Delete profile" %}</a></p> |
|
36 |
{% endif %} |
|
37 |
</div> |
|
38 |
<h3>{% trans "Credentials" %}</h3> |
|
39 |
{% for html_block in frontends_block %} |
|
40 |
{{ html_block|safe }} |
|
41 |
{% endfor %} |
|
42 |
<p><a href="/">{% trans "Back" %}</a></p> |
|
43 |
{% endblock %} |
authentic2/templates/idp/homepage.html | ||
---|---|---|
1 |
{% extends "base.html" %} |
|
2 |
{% load i18n %} |
|
3 | ||
4 |
{% block title %} |
|
5 |
{% trans "Authentic" %} |
|
6 |
{% endblock %} |
|
7 | ||
8 | ||
9 |
{% block content %} |
|
10 | ||
11 |
{% if account_management %} |
|
12 |
<p> |
|
13 |
<a href="{% url 'account_management' %}">{% trans "Account Management" %}</a> |
|
14 |
</p> |
|
15 |
{% endif %} |
|
16 | ||
17 | ||
18 |
{% if authorized_services %} |
|
19 |
<div id="login-actions"> |
|
20 |
<h2>{% trans "Services" %}</h2> |
|
21 |
<ul> |
|
22 |
{% for service in authorized_services %} |
|
23 |
{% if service.actions %} |
|
24 |
<li>{% if service.url %}<a href="{{ service.url }}">{% endif %}{{ service.name }}{% if service.url %}</a>{% endif %} |
|
25 |
<div class="actions"> |
|
26 |
{% for action in service.actions %} |
|
27 |
{% if action.0 == "template" %} |
|
28 |
{% include action.1 %} |
|
29 |
{% else %} |
|
30 |
<form action="{{ action.2 }}" method="{{ action.1 }}"> |
|
31 |
{% if action.3 %} |
|
32 |
{% for key, value in action.3 %} |
|
33 |
<input type="hidden" name="{{ key }}" value="{{ value }}" /> |
|
34 |
{% endfor %} |
|
35 |
{% endif %} |
|
36 |
<input type="hidden" name="next" value="/"/> |
|
37 |
<input type="submit" class="submit-link" value="{{ action.0 }}"> |
|
38 |
</form> |
|
39 |
{% endif %} |
|
40 |
{% endfor %} |
|
41 |
</div> |
|
42 |
</li> |
|
43 |
{% endif %} |
|
44 |
{% endfor %} |
|
45 |
</ul> |
|
46 |
</div> |
|
47 |
{% endif %} |
|
48 | ||
49 |
{% if user.is_staff %} |
|
50 |
<p id="administration-link"><a href="/admin">{% trans "Administration" %}</a></p> |
|
51 |
{% endif %} |
|
52 | ||
53 |
{% endblock %} |
authentic2/templates/idp/logout.html | ||
---|---|---|
1 |
{% extends "base.html" %} |
|
2 |
{% load i18n %} |
|
3 | ||
4 |
{% block title %} |
|
5 |
{% trans "Logout" %} |
|
6 |
{% endblock %} |
|
7 |
{% block bodyargs %} |
|
8 |
onload="window.iframe_count -= 1" |
|
9 |
{% endblock %} |
|
10 | ||
11 |
{% comment %}Initialize iframe coutndown {% endcomment %} |
|
12 |
{% block extra_scripts %} |
|
13 |
<script> |
|
14 |
window.iframe_count = 1; |
|
15 |
</script> |
|
16 |
{% endblock %} |
|
17 | ||
18 |
{% block content %} |
|
19 |
<h1>{% trans message %}</h1> |
|
20 |
<ul class="logout-list"> |
|
21 |
{% for fragment in logout_list %} |
|
22 |
{{ fragment|safe }} |
|
23 |
{% endfor %} |
|
24 |
</ul> |
|
25 |
<!-- Hack alert !!! block loading indefinitely by loading an inacessible IP --> |
|
26 |
<script> |
|
27 |
window.iframe_count += document.getElementsByTagName("iframe").length; |
|
28 |
var refresh_launched = 0; |
|
29 |
setInterval(function () { |
|
30 |
if (iframe_count == 0) { |
|
31 |
if (refresh_launched == 0) { |
|
32 |
refresh_launched = 1; |
|
33 |
setTimeout(function () { window.location = '{{ next_page }}' }, 300); |
|
34 |
} |
|
35 |
} |
|
36 |
}, {{ redir_timeout }}) |
|
37 |
</script> |
|
38 | ||
39 |
<div id="continue-link"><a href="{{ next_page }}">{% trans "Continue logout" %}</div> |
|
40 | ||
41 |
{% endblock %} |
authentic2/templates/interaction/consent_attributes.html | ||
---|---|---|
1 |
{% extends "base.html" %} |
|
2 |
{% load i18n %} |
|
3 | ||
4 |
{% block title %} {% trans "Consent page for attribute propagation" %} {% endblock %} |
|
5 | ||
6 |
{% block content %} |
|
7 | ||
8 | ||
9 |
{% load i18n %} |
|
10 |
<div id="consent"> |
|
11 |
<form method="post" action=""> |
|
12 |
{% csrf_token %} |
|
13 |
<p> |
|
14 |
{% trans "Choose attributes to send to " %} <strong>{{ provider_id }}</strong> ? |
|
15 | ||
16 |
<ul> |
|
17 |
{% for i, name, values in attributes %} |
|
18 |
<li> |
|
19 |
{% if allow_selection %} |
|
20 |
<input type="checkbox" name="attribute_nb_{{ i }}" value="{{ i }}" checked="checked"/> |
|
21 |
{% endif %} |
|
22 |
{{ name }} : <strong>{% for v in values %}{{ v }} {% endfor %}</strong></li> |
|
23 |
{% endfor %} |
|
24 |
</ul> |
|
25 | ||
26 |
</p> |
|
27 | ||
28 |
<input type="hidden" name="next" value="{{ next }}" /> |
|
29 |
<input type="hidden" name="nonce" value="{{ nonce }}" /> |
|
30 |
{% if allow_selection %} |
|
31 |
<input type="submit" name="accept" value="{% trans 'Send selected' %}"/> |
|
32 |
{% else %} |
|
33 |
<input type="submit" name="accept" value="{% trans 'Send all' %}"/> |
|
34 |
{% endif %} |
|
35 |
<input type="submit" name="refuse" value="{% trans 'Refuse all' %}"/> |
|
36 |
</form> |
|
37 |
</div> |
|
38 | ||
39 |
{% endblock %} |
authentic2/templates/interaction/consent_federation.html | ||
---|---|---|
1 |
{% extends "base.html" %} |
|
2 |
{% load i18n %} |
|
3 | ||
4 |
{% block title %} {% trans "Consent page for federation" %} {% endblock %} |
|
5 | ||
6 |
{% block content %} |
|
7 | ||
8 | ||
9 |
{% load i18n %} |
|
10 |
<div id="consent"> |
|
11 |
<p> |
|
12 |
{% if provider_id %} |
|
13 |
{% trans "Do you accept to federate your account with " %} <strong>{{ provider_id }}</strong> ? |
|
14 |
{% else %} |
|
15 |
{% trans "Do you accept to federate your account ?" %} |
|
16 |
{% endif %} |
|
17 |
{{ provider_id2 }} |
|
18 |
</p> |
|
19 |
<form method="post" action=""> |
|
20 |
{% csrf_token %} |
|
21 |
<input type="hidden" name="next" value="{{ next }}" /> |
|
22 |
<input type="hidden" name="nonce" value="{{ nonce }}" /> |
|
23 |
<input type="submit" name="accept" value="{% trans 'Accept' %}"/> |
|
24 |
<input type="submit" name="refuse" value="{% trans 'Refuse' %}"/> |
|
25 |
</form> |
|
26 |
</div> |
|
27 | ||
28 |
{% endblock %} |
|
0 |
- |