AUTH#1318 Symlink + add images

This commit is contained in:
slothy 2015-09-10 16:27:37 +02:00
parent d80e5b054b
commit 322fdf05fe
38 changed files with 501 additions and 3 deletions

View File

@ -0,0 +1,12 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %} {% trans "Error: page not found" %} {% endblock %}
{% block content %}
<h2>{% trans "Error: page not found" %}</h2>
<p>{% trans "The page you requested has not been found on this server." %}
{% endblock %}

View File

@ -0,0 +1,30 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %} {% trans "Error: server error (500)" %} {% endblock %}
{% block content %}
<h2>{% trans "Server Error" %}</h2>
<p>{% trans "We're sorry but a server error has occurred." %}</p>
{% if request.logs %}
<h2>Logs</h2>
<table class='a2-log-table'>
{% for log in request.logs %}
<tr class="a2-log-line">
<td class="a2-log-time">{{ log.time|time:"H:i:s" }}</td>
<td class="a2-log-level">{{ log.level }}</td>
<td class="a2-log-message">{{ log.message }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if request.exception %}
<h2>Exception</h2>
<p>{{ request.exception }}</p>
{% endif %}
{% endblock %}

View File

@ -0,0 +1,10 @@
{% extends "admin/base.html" %}
{% load i18n %}
{% block title %}{{ title }} | {% trans 'Authentic site admin' %}{% endblock %}
{% block branding %}
<h1 id="site-name">{% trans 'Authentic administration' %}</h1>
{% endblock %}
{% block nav-global %}{% endblock %}

View File

@ -0,0 +1,45 @@
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block title %} {% trans "Logs" %} {% endblock %}
{% block nav-global %}{% endblock %}
{% block breadcrumbs %}<div class="breadcrumbs"><a href="/admin/">{% trans "Home" %}</a> > Admin_log_view</div>{% endblock %}
{% block content %}
<h2>{% trans "Logs page" %}</h2>
{% if not file %}
<p> There is no log for the moment.</p>
{% else %}
{% for log in logs.object_list %}
{% if "CRITICAL" in log %}
<p> <strong> {{ log }} </strong> </p>
{% else %}
{% if "ERROR" in log %}
<p> <strong> {{ log }} </strong> </p>
{% else %}
<p> {{ log }} </p>
{% endif %}
{% endif %}
{% endfor %}
<div class = "pagination">
<span class = "step-links">
{% if logs.has_previous %}
<a href = "?page={{ logs.previous_page_number }}">previous</a>
{% endif %}
<span class="current">
Page {{ logs.number }} of {{ logs.paginator.num_pages }}.
</span>
{% if logs.has_next %}
<a href="?page={{ logs.next_page_number }}">next</a>
{% endif %}
</span>
</div>
{% endif %}
{% endblock %}

View File

@ -0,0 +1,17 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block content %}
<div class="columns small-12 text-center greybox">
<h3>{% trans "Pour Continuer, identifiez-vous avec un seul compte" %}</h3>
</div>
<div class="columns small-12 loginbox">
{% if can_change_password %}<h4>{% trans "Password" %}</h4>{% endif %}
{% if can_change_password %}
<p><a href="{% url 'password_change' %}">{% trans "Change password" %}</a></p>
{% else %}
{% comment %} <p><a href="{% url 'authopenid_password_change' %}">{% trans "Set password" %}</a></p> {% endcomment %}
{% endif %}
</div>
{% endblock %}

View File

@ -0,0 +1,8 @@
{% load i18n %}
<html>
<body style="width: 90ex">
<p>{% blocktrans %}You created a new account on {{ site }}. To activate your account, please <a href="{{ registration_url }}">click here</a>{% endblocktrans %}
</p>
<p>{% blocktrans %}This link link is valid for {{ expiration_days }} days.{% endblocktrans %}</>
</body>
</html>

View File

@ -0,0 +1,6 @@
{% load i18n %}{% autoescape off %}{% blocktrans %}You created a new account on {{ site }}. to activate your account, please
click on the following link :{% endblocktrans %}
{{ registration_url }}
{% blocktrans %}This link link is valid for {{ expiration_days }} days.{% endblocktrans %}{% endautoescape %}

View File

@ -0,0 +1 @@
{% load i18n %}{% autoescape off %}{% trans "Account activation on" %} {{ site }}{% endautoescape %}

View File

@ -1,8 +1,9 @@
{% load i18n authentic2 %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
{% load i18n authentic2 staticfiles %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='//fonts.googleapis.com/css?family=Domine:400,700|Open+Sans:400,600,700,800|PT+Sans+Narrow:400,700' rel='stylesheet' type='text/css'>
{#<link rel="stylesheet" href="{{ STATIC_URL }}authentic2/css/style.css" />#}
<title>{% block title %}Authentic2 - {{ request.get_host }}{% endblock %}</title>
@ -30,7 +31,7 @@
<div class="columns small-12 titlebox text-center">
<a href="/">
{% block header %}
<img src="{{ STATIC_URL }}authentic2/images/solutions.png" alt="Les Echos Solutions" />
<img src="{% static 'authentic2/images/solutions.png' %}" alt="Les Echos Solutions" />
{% endblock %}
</a>
</div>
@ -64,8 +65,14 @@
</div>
</div>
{% endif %}
{% block content %}{% endblock %}
<div class="columns small-12 unpadded med_margins">
<div class="columns small-12 medium-6 unpadded">
<img src="{% static 'authentic2/images/les-echos-events.png' %}" />
</div>
<div class="columns small-12 medium-6 unpadded text-right">
<img src="{% static 'authentic2/images/les-echos-etudes.png' %}" />
</div>
</div>
<div id="footer">

View File

@ -0,0 +1,6 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block content %}
<a href="{{ url }}">{% trans "Continue" %}</a>
{% endblock %}

View File

@ -0,0 +1,4 @@
{% load i18n %}{% autoescape off %}{% blocktrans %}Hi {{ user }},
You have not logged since {{ threshold }} days. In {{ clean_threshold }} days your account
will be deleted.{% endblocktrans %}{% endautoescape %}

View File

@ -0,0 +1 @@
{% load i18n %}{% autoescape off %}{% blocktrans %}Alert: {{ user }} you have not logged since {{ threshold }}{% endblocktrans %}{% endautoescape %}

View File

@ -0,0 +1,3 @@
{% load i18n %}{% autoescape off %}{% blocktrans %}Hi {{ user }},
You have not logged since {{ threshold }} days so your account has been deleted.{% endblocktrans %}{% endautoescape %}

View File

@ -0,0 +1 @@
{% load i18n %}{% autoescape off %}{% blocktrans %}Notification: {{ user }}, your account has been deleted{% endblocktrans %}{% endautoescape %}

View File

@ -0,0 +1,9 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block bodyargs %}onload="setTimeout(function () { window.location='{{ next_page }}' }, {{ redir_timeout }})"{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
{{ msg }}
<p><a href="{{ back }}">{% trans "Back" %}</a></p>
{% endblock %}

View File

@ -0,0 +1,13 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %} {% trans "Error: authentication failure" %} {% endblock %}
{% block content %}
<h2>{% trans "Authentication failure" %}</h2>
<p>{% trans "The SSL authentication has failed" %}</p>
<a href="/">Back</a>
{% endblock %}

View File

@ -0,0 +1,64 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}
{% trans "Authentic - Account Management" %}
{% endblock %}
{% block content %}
<h2>{% trans "Account Management" %}</h2>
<h3>{% trans "Profile" %}</h3>
<div id="profile">
{% if profile %}
<dl>
{% for key, values in profile %}
<dt>{{ key|capfirst }}</dt>
<dd>{% if values|length == 1 %}{{ values.0 }}{% else %}
<ul>
{% for value in values %}
<li>{{ value }}</li>
{% endfor %}
</ul>
{% endif %}
</dd>
{% endfor %}
</dl>
{% endif %}
{% if allow_email_change %}
<p><a href="{% url 'email-change' %}">{% trans "Change email" %}</a></p>
{% endif %}
{% if allow_profile_edit %}
<p><a href="{% url 'profile_edit' %}">{% trans "Edit profile" %}</a></p>
{% endif %}
{% if allow_account_deletion %}
<p><a href="{% url 'delete_account' %}">{% trans "Delete profile" %}</a></p>
{% endif %}
</div>
<h3>{% trans "Credentials" %}</h3>
{% for html_block in frontends_block %}
{{ html_block|safe }}
{% endfor %}
{% if federation_management %}
<div id="federation-management">
<h3>{% trans "Federation management" %}
<ul>
{% for federation in federation_management %}
<li>
<form method="post" action="{{ federation.url }}">
{% csrf_token %}
<span class="name">{{ federation.name }}</span>
{% for key, value in federation.hidden_inputs.iteritems %}
<input type="hidden" name="{{ key }}" value="{{ value }}"/>
{% endfor %}
{% for button_name, button_label in federation.buttons %}
<button name="{{ button_name }}">{{ button_label }}</button>
{% endfor %}
</form>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
<p><a href="/">{% trans "Back" %}</a></p>
{% endblock %}

View File

@ -0,0 +1,39 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %} {% trans "Consent page for attribute propagation" %} {% endblock %}
{% block content %}
{% load i18n %}
<div id="consent">
<form method="post" action="">
{% csrf_token %}
<p>
{% trans "Choose attributes to send to " %} <strong>{{ provider_id }}</strong> ?
<ul>
{% for i, name, values in attributes %}
<li>
{% if allow_selection %}
<input type="checkbox" name="attribute_nb_{{ i }}" value="{{ i }}" checked="checked"/>
{% endif %}
{{ name }} : <strong>{% for v in values %}{{ v }} {% endfor %}</strong></li>
{% endfor %}
</ul>
</p>
<input type="hidden" name="next" value="{{ next }}" />
<input type="hidden" name="nonce" value="{{ nonce }}" />
{% if allow_selection %}
<input type="submit" name="accept" value="{% trans 'Send selected' %}"/>
{% else %}
<input type="submit" name="accept" value="{% trans 'Send all' %}"/>
{% endif %}
<input type="submit" name="refuse" value="{% trans 'Refuse all' %}"/>
</form>
</div>
{% endblock %}

View File

@ -0,0 +1,28 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %} {% trans "Consent page for federation" %} {% endblock %}
{% block content %}
{% load i18n %}
<div id="consent">
<p>
{% if provider_id %}
{% trans "Do you accept to federate your account with " %} <strong>{{ provider_id }}</strong> ?
{% else %}
{% trans "Do you accept to federate your account ?" %}
{% endif %}
{{ provider_id2 }}
</p>
<form method="post" action="">
{% csrf_token %}
<input type="hidden" name="next" value="{{ next }}" />
<input type="hidden" name="nonce" value="{{ nonce }}" />
<input type="submit" name="accept" value="{% trans 'Accept' %}"/>
<input type="submit" name="refuse" value="{% trans 'Refuse' %}"/>
</form>
</div>
{% endblock %}

View File

@ -0,0 +1,16 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}{% trans "Edit profile" %}{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
{{ form.as_p }}
{% if form.instance and form.instance.id %}
<input type="submit" value="{% trans "Modify" %}"/>
{% else %}
<input type="submit" value="{% trans "Create" %}"/>
{% endif %}
</form>
{% endblock %}

View File

@ -0,0 +1,13 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}{% trans "Email change" %}{% endblock %}
{% block content %}
<p>{% blocktrans with email=user.email %}Your current email is {{ email }}{% endblocktrans %}</p>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans "Validate" %}"/>
</form>
{% endblock %}

View File

@ -0,0 +1,17 @@
{% load i18n %}{% autoescape off %}{% blocktrans with name=user.get_short_name old_email=user.email %}Hi {{ name }} !
You asked for changing your email on {{ domain }} from:
{{ old_email }}
to:
{{ email }}
To validate this change please click on the following link:
{{ link }}
--
{{ domain }}
{% endblocktrans %}{% endautoescape %}

View File

@ -0,0 +1 @@
{% load i18n %}{% autoescape off %}{% blocktrans %}Change email on {{ domain }}{% endblocktrans %}{% endautoescape %}

View File

@ -0,0 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Close any popup enclosing us -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Redirect to {{ next }}</title>
</head>
<body>
<script type="text/javascript">
window.open('{{ next }}', '_top');
</script>
</body>

View File

@ -0,0 +1,22 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}
{% trans "Account activation" %}
{% endblock %}
{% block content %}
{% if account %}
<p>{% trans "Account successfully activated" %}</p>
<p><a href="{% url 'auth_login' %}">{% trans "Log in" %}</a></p>
{% else %}
<p>{% trans "Account activation failed" %}</p>
{% endif %}
{% endblock %}

View File

@ -0,0 +1,6 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block content %}
{% trans "Your account is now activated" %}
{% endblock %}

View File

@ -0,0 +1,8 @@
{% load i18n %}
<html>
<body style="width: 90ex">
<p>{% blocktrans %}You created a new account on {{ site }}. To activate your account, please <a href="{{ registration_url }}">click here</a>{% endblocktrans %}
</p>
<p>{% blocktrans %}This link link is valid for {{ expiration_days }} days.{% endblocktrans %}</>
</body>
</html>

View File

@ -0,0 +1,6 @@
{% load i18n %}
{% trans "Activate account" %}:
{{ registration_url }}
{% blocktrans %}Link is valid for {{ expiration_days }} days.{% endblocktrans %}

View File

@ -0,0 +1 @@
{% load i18n %}{% trans "Account activation on" %} {{ site }}

View File

@ -0,0 +1,16 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}
{% trans "Delete account" %}
{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
<p>{% trans "Delete my account and all my personal datas ?" %}</p>
<input type="submit" name="submit" value="{% trans "Yes" %}"/>
<input type="submit" name="cancel" value="{% trans "No" %}"/>
</form>
{% endblock %}

View File

@ -0,0 +1,11 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}
{% trans "Logging out" %}
{% endblock %}
{% block content %}
<p>{% trans "Logged out" %}</p>
<p><a href="/">{% trans "Back" %}</a></p>
{% endblock %}

View File

@ -0,0 +1,10 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}
{% trans "Changing password" %}
{% endblock %}
{% block content %}
<p>{% trans "Password changed" %}</p>
{% endblock %}

View File

@ -0,0 +1,6 @@
{% load i18n %}
{% blocktrans %}You requested reset of your password on {{ site_name }}, to proceed please
click on the following link{% endblocktrans %}:
{% block reset_link %}
{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}?next={{ request.GET.next|urlencode }}
{% endblock %}

View File

@ -0,0 +1,3 @@
{% load i18n %}{% autoescape off %}
{% blocktrans %}Password reset on {{ site_name }}{% endblocktrans %}
{% endautoescape %}

View File

@ -0,0 +1,10 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}
{% trans "Registration closed" %}
{% endblock %}
{% block content %}
<h1>{% trans "Registration closed" %}</h1>
{% endblock %}

View File

@ -0,0 +1,11 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}
{% trans "Successful registration" %}
{% endblock %}
{% block content %}
<p>{% trans "Thank you for registering. Activation email sent." %}</p>
<p><a href="/">{% trans "Back" %}</a></p>
{% endblock %}

View File

@ -0,0 +1,24 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}
{% trans "Registration" %}
{% endblock %}
{% load breadcrumbs %}
{% block breadcrumbs %}
{{ block.super }}
{% breadcrumb_url 'Register' %}
{% endblock %}
{% block content %}
<h2>{% trans "Registration" %}</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Submit' %}" />
</form>
{% endblock %}

View File

@ -0,0 +1 @@
../../authentic2/src/authentic2/src/authentic2/templates