ajout de templates sur authentic2

This commit is contained in:
FontenaySousBois pseudo user 2014-12-18 09:56:24 +01:00
parent ef88d3c26c
commit 426fdcd85e
7 changed files with 273 additions and 48 deletions

View File

@ -0,0 +1,11 @@
{% load i18n %}
{% if can_change_password %}<h4>{% trans "Password" %}</h4>{% endif %}
<div>
{% if can_change_password %}
<p><a href="{% url 'auth_password_change' %}">{% trans "Change password" %}</a></p>
{% else %}
{% comment %} <p><a href="{% url 'authopenid_password_change' %}">{% trans "Set password" %}</a></p> {% endcomment %}
{% endif %}
</div>

View File

@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block title %}Connexion{% endblock %}
{% block content %}
{% for id, login_block in blocks.iteritems %}
{{ login_block.content|safe }}
{% endfor %}
{% endblock %}

View File

@ -0,0 +1,17 @@
{% load i18n %}
<h1>Connexion</h1>
<form method="post" action="">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" name="{{ submit_name }}" value="{% trans "Log in" %}"/>
{% if cancel %}
<input type="submit" name="cancel" value="{% trans 'Cancel' %}"/>
{% endif %}
</form>
{% if can_reset_password %}
<p>→ {% trans "Forgot password?" %} <a href="{% url 'auth_password_reset' %}">{% trans "Reset it!" %}</a></p>
{% endif %}
{% if registration_authorized %}
<p>→ {% trans "Not a member?" %} <a href="{% url 'registration_register' %}">{% trans "Register!" %}</a></p>
{% endif %}

View File

@ -1,20 +1,24 @@
{% load i18n static %}<!DOCTYPE html>
{% load sekizai_tags i18n static %}<!DOCTYPE html>
<html>
<head>
<title>{% block title %}User test{% endblock %} | fontenay-sous-bois.fr</title>
<title>Portail citoyen | fontenay-sous-bois.fr</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="{{ description }}">
<meta name="keywords" content="{{ keywords }}">
<meta name="robots" content="all">
<meta name="copyright" content="Ville de Fontenay-sous-bois, 2014. All rights reserved">
<link rel="stylesheet" type="text/css" href={% static "f-s-b/css/mainstyles.css" %} media="all">
<link rel="stylesheet" type="text/css" href={% static "f-s-b/css/entrouvert.css" %} media="all">
<link rel="shortcut icon" type="image/x-icon" href={% static "f-s-b/img/favicon.ico" %}>
<link rel="icon" type="image/x-icon" href={% static "f-s-b/css/favicon.ico" %}>
<link rel="apple-touch-icon" href={% static "f-s-b/css/img/favicon.ico" %}>
{% block extra_css %}
<link rel="stylesheet" type="text/css" href="{{ static_prefix }}{% static "f-s-b/css/mainstyles.css" %}" media="all">
<link rel="stylesheet" type="text/css" href="{{ static_prefix }}{% static "f-s-b/css/entrouvert.css" %}" media="all">
<link rel="stylesheet" type="text/css" href="{{ static_prefix }}{% static "f-s-b/css/fields.css" %}" />
<link rel="shortcut icon" type="image/x-icon" href="{{ static_prefix }}{% static "f-s-b/img/favicon.ico" %}">
<link rel="icon" type="image/x-icon" href="{{ static_prefix }}{% static "f-s-b/css/favicon.ico" %}">
<link rel="apple-touch-icon" href="{{ static_prefix }}{% static "f-s-b/css/img/favicon.ico" %}">
{% endblock %}
{% render_block "css" %}
{% block extra_scripts %}
<script src="{% static "cms/js/libs/jquery.min.js" %}"></script>
{% endblock %}
</head>
<body {% block bodyargs %}{% endblock %}>
@ -27,22 +31,34 @@
<div class="toplinks">
<h2 class="hide">Liens et informations complémentaires</h2>
{% block personnel %}
{% if request.user.is_authenticated %}
<ul class="links">
<li class="first">
<a href="#">Lien1</a>
<a href="{{ idp_url }}accounts/">{{ user.get_full_name }}</a>
</li>
<li>
<a href="#">Lien2</a>
<a href="{{ LOGOUT_URL }}">Déconnexion</a>
</li>
</ul>
{% else %}
<ul class="links">
<li class="first">
<a href="{{ idp_url }}accounts/register/">Créer mon compte</a>
</li>
<li>
<a href="{{ idp_url }}/login">Connexion</a>
</li>
</ul>
{% endif %}
{% endblock %}
</div><!--toplinks-->
<div class="clear"></div>
<div class="headerTopSearch">
<div class="logo">
<h1><a href="http://www.fontenay-sous-bois.fr"
target="_top" class="logo" accesskey="1">fontenay-sous-bois.fr</a></h1>
<h1><a href="{{ site_fontenay_url }}" target="_top" class="logo" accesskey="1">fontenay-sous-bois.fr</a></h1>
</div>
</div>
@ -56,18 +72,15 @@
<ul class="menuTop">
<li class="home">
<a href="#" target="_top"><span>fontenay-sous-bois.fr</span></a>
<a href="{{ portal_url }}" target="_top"><span>fontenay-sous-bois.fr</span></a>
</li>
<li class="menu1 level1"><a href="#">Actualités<br>Vidéos</a></li>
<li class="menu2 level1">Cadre<br>de vie</li>
<li class="menu3 level1">Culture<br>Sports</li>
<li class="menu4 level1">Économie<br>Emploi</li>
<li class="menu5 level1">Enfance<br> Jeunesse </li>
<li class="menu6 level1">État civil<br> Numérique </li>
<li class="menu7 level1">Pratique<br> Services en ligne </li>
<li class="menu8 level1">Solidarité<br> Santé </li>
<li class="menu9 level1">Démocratie locale<br> Vie municipale </li>
{% block rubriques %}
<li class="menu1 level1"><a href="{{ wcs_url }}">Démarches<br> en ligne</a></li>
<li class="menu3 level1"><a href="{{ idp_url }}accounts/">Mon compte</a></li>
<li class="menu2 level1"><a href="{{ portal_url }}famille">Ma famille</a></li>
<li class="menu4 level1"><a href="{{ wcs_url }}myspace/">Mes demandes</a></li>
<li class="menu2 level1"><a href="{{ portal_url }}factures">Mes factures</a></li>
{% endblock %}
</ul>
<div class="clear"></div>
@ -84,12 +97,12 @@
<h1 class="hide">Accueil : contenu</h1>
<div id="content">
{% block breadcrumb %}
<p id="ariane">Vous êtes ici&nbsp;:
<a href="/">Accueil</a>&nbsp;/
<a href="#">elem1</a>&nbsp;/
<a href="#">elem2</a>
<a href="{{ portal_url }}">Accueil</a>&nbsp;/
<span></span>
</p>
{% endblock %}
<br />
@ -102,24 +115,37 @@
</ul>
{% endif %}
{% endblock %}
{% block content %}
{% endblock %}
<div id="centre">
<div id="services">
{% block content %}
{% endblock %}
</div>
</div>
</div>
<div class="colright">
<div class="highlight menu">
{% if request.user.is_authenticated %}
<h2><a id="logout" href="{% url 'auth_logout' %}">{% trans "Logout" %}</a></h2>
{% block personnel_2 %}
{% if request.user.is_authenticated %}
<h2>{{ user.get_full_name }}</h2>
<div class="content">
<ul class="submenu">
<li class="first"><a href="{{ idp_url }}accounts/">Mon compte</a></li>
<li class=""><a href="{{ wcs_url }}myspace/">Mes démarches en cours</a></li>
<li class="last"><a href="{{ LOGOUT_URL }}">Déconnexion</a></li>
</ul>
</div>
{% else %}
<h2>Compte usager</h2>
<div class="content">
<ul class="submenu">
<li class="first"><a href="{{ idp_url }}/login">Connexion</a></li>
<li class=""><a href="{{ idp_url }}accounts/register/">Créer un compte</a></li>
<li class="last"><a href="{{ wcs_url }}">Démarches en ligne</a></li>
</ul>
</div>
{% endif %}
<h2>Menu</h2>
<div class="content">
<ul class="submenu">
<li class="first"><a href="#">submenu1</a></li>
<li class=""><a href="#">submenu2</a></li>
<li class="last"><a href="#">submenu3</a></li>
</ul>
</div>
{% endblock %}
</div>
</div>
@ -133,21 +159,23 @@
</div><!-- content -->
</div><!-- corpus-->
{% block footer %}
<div id="footerContainer">
<div id="footer">
<p>Hôtel de ville de Fontenay-sous-Bois
<span>4, Esplanade Louis Bayeurte 94125 Fontenay-sous-Bois CEDEX</span>
<span>01 49 74 74 74</span><img src={% static "f-s-b/img/logo_footer.gif" %} alt="logo_fsb"></p>
<span>01 49 74 74 74</span><img src="{{ static_prefix }}{% static "f-s-b/img/logo_footer.gif" %}" alt="logo_fsb"></p>
<hr>
<a href="http://www.ordi2-0.fr/"><img src={% static "f-s-b/img/Ordi_20.jpg" %} width="169" height="41" alt=""></a>
<a href="http://www.villes-sante.com/"><img src={% static "f-s-b/img/oms_footer.jpg" %} width="227" height="41" alt=""></a>
<a href="http://villesamiesdesenfants.com"><img src={% static "f-s-b/img/ville_amie_enfant_footer.jpg" %} width="225" height="41" alt=""></a>
<a href="http://www.fontenay-sous-bois.fr/etat-civil-numerique/ville-numerique/cinq-arobases/index.html"><img src={% static "f-s-b/img/ville_internet_footer.jpg" %} width="194" height="41" alt=""></a>
<a href="http://www.villes-et-villages-fleuris.com/"><img src={% static "f-s-b/img/3_fleurs_footer.jpg" %} width="161" height="41" alt=""></a>
<a href="http://www.ordi2-0.fr/"><img src="{{ static_prefix }}{% static "f-s-b/img/Ordi_20.jpg" %}" width="169" height="41" alt=""></a>
<a href="http://www.villes-sante.com/"><img src="{{ static_prefix }}{% static "f-s-b/img/oms_footer.jpg" %}" width="227" height="41" alt=""></a>
<a href="http://villesamiesdesenfants.com"><img src="{{ static_prefix }}{% static "f-s-b/img/ville_amie_enfant_footer.jpg" %}" width="225" height="41" alt=""></a>
<a href="{{ site_fontenay_url }}/etat-civil-numerique/ville-numerique/cinq-arobases/index.html"><img src="{{ static_prefix }}{% static "f-s-b/img/ville_internet_footer.jpg" %}" width="194" height="41" alt=""></a>
<a href="http://www.villes-et-villages-fleuris.com/"><img src="{{ static_prefix }}{% static "f-s-b/img/3_fleurs_footer.jpg" %}" width="161" height="41" alt=""></a>
<div class="clear"></div>
</div><!-- footer -->
{% endblock %}{# footer #}
<div class="clear"></div>
</div><!-- footerContainer -->
@ -155,5 +183,7 @@
<div id="overlay"></div>
{% render_block "js" %}
</body>
</html>

View File

@ -0,0 +1,64 @@
{% extends "base.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,53 @@
{% extends "base.html" %}
{% load i18n %}
{% block title %}
{% trans "Authentic" %}
{% endblock %}
{% block content %}
{% if account_management %}
<p>
<a href="{% url 'account_management' %}">{% trans "Account Management" %}</a>
</p>
{% endif %}
{% if authorized_services %}
<div id="login-actions">
<h2>{% trans "Services" %}</h2>
<ul>
{% for service in authorized_services %}
{% if service.actions %}
<li>{% if service.url %}<a href="{{ service.url }}">{% endif %}{{ service.name }}{% if service.url %}</a>{% endif %}
<div class="actions">
{% for action in service.actions %}
{% if action.0 == "template" %}
{% include action.1 %}
{% else %}
<form action="{{ action.2 }}" method="{{ action.1 }}">
{% if action.3 %}
{% for key, value in action.3 %}
<input type="hidden" name="{{ key }}" value="{{ value }}" />
{% endfor %}
{% endif %}
<input type="hidden" name="next" value="/"/>
<input type="submit" class="submit-link" value="{{ action.0 }}">
</form>
{% endif %}
{% endfor %}
</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
{% if user.is_staff %}
<p id="administration-link"><a href="/admin">{% trans "Administration" %}</a></p>
{% endif %}
{% endblock %}

View File

@ -0,0 +1,41 @@
{% extends "base.html" %}
{% load i18n %}
{% block title %}
{% trans "Logout" %}
{% endblock %}
{% block bodyargs %}
onload="window.iframe_count -= 1"
{% endblock %}
{% comment %}Initialize iframe coutndown {% endcomment %}
{% block extra_scripts %}
<script>
window.iframe_count = 1;
</script>
{% endblock %}
{% block content %}
<h1>{% trans message %}</h1>
<ul class="logout-list">
{% for fragment in logout_list %}
{{ fragment|safe }}
{% endfor %}
</ul>
<!-- Hack alert !!! block loading indefinitely by loading an inacessible IP -->
<script>
window.iframe_count += document.getElementsByTagName("iframe").length;
var refresh_launched = 0;
setInterval(function () {
if (iframe_count == 0) {
if (refresh_launched == 0) {
refresh_launched = 1;
setTimeout(function () { window.location = '{{ next_page }}' }, 300);
}
}
}, {{ redir_timeout }})
</script>
<div id="continue-link"><a href="{{ next_page }}">{% trans "Continue logout" %}</div>
{% endblock %}