remove alfortville theme (#39655)
Before Width: | Height: | Size: 2.1 MiB |
Before Width: | Height: | Size: 2.4 MiB |
|
@ -1,186 +0,0 @@
|
|||
.gru-content {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.gru-content a {
|
||||
color: $link-color;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.gru-content a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.gru-content p {
|
||||
margin: 1ex 0;
|
||||
}
|
||||
|
||||
div#nav {
|
||||
border-top: 1px solid #7F7F7F;
|
||||
text-align: center;
|
||||
max-width: none;
|
||||
}
|
||||
#nav ul {
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#nav ul ul {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#nav li {
|
||||
display: inline-block;
|
||||
margin-left: -1px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#nav li a {
|
||||
border: 1px solid #7F7F7F;
|
||||
border-width: 0 1px;
|
||||
padding: 15px;
|
||||
position: relative;
|
||||
transition: all 0.3s ease 0s;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#nav li a:hover {
|
||||
color: white;
|
||||
}
|
||||
|
||||
#nav {
|
||||
border-bottom: none;
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
#nav li a:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
transition: all 0.3s ease 0s;
|
||||
box-sizing: border-box;
|
||||
width: 0%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: #804697;
|
||||
}
|
||||
|
||||
#nav li a:hover:after {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#steps ol li .marker {
|
||||
padding-bottom: 0.5ex;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
div#rub_service,
|
||||
div.familyinfoscell {
|
||||
h2, h3, h4 {
|
||||
text-align: left;
|
||||
color: #333;
|
||||
background: none;
|
||||
font-family: "TradeGothicLT-BoldTwo", sans-serif;
|
||||
font-weight: 400;
|
||||
margin: 35px 0 1em 0;
|
||||
border-top: 2px solid #804697;
|
||||
padding-top: 15px;
|
||||
font-size: 28px;
|
||||
color: #8D59A1;
|
||||
}
|
||||
h3 {
|
||||
font-size: 20px;
|
||||
}
|
||||
h4 {
|
||||
font-size: 16px;
|
||||
border-top-width: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
div#rub_service > h2 {
|
||||
color: #333;
|
||||
font-family: "TradeGothicLT", sans-serif;
|
||||
font-size: 40px;
|
||||
border: 1px solid #CDCDCD;
|
||||
border-width: 1px 0;
|
||||
margin: 0 -30px 1ex -30px;
|
||||
padding: 1ex 0 0.6ex 1em;
|
||||
}
|
||||
|
||||
div#gauche + div#rub_service > h2 {
|
||||
margin-left: 0;
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
||||
div.workflow-message {
|
||||
@extend div.infonotice;
|
||||
font-size: 130%;
|
||||
&::before {
|
||||
top: 1ex;
|
||||
}
|
||||
& p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #804697;
|
||||
font-weight: bold;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div.familyinfoscell div#adults {
|
||||
width: 49%;
|
||||
float: left;
|
||||
margin-right: 1%;
|
||||
}
|
||||
|
||||
div.familyinfoscell div#children {
|
||||
width: 49%;
|
||||
float: right;
|
||||
}
|
||||
|
||||
|
||||
.foldable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.foldable:after {
|
||||
font-family: FontAwesome;
|
||||
content: "\f146";
|
||||
font-size: 80%;
|
||||
text-align: right;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.foldable.folded:after {
|
||||
content: "\f0fe";
|
||||
}
|
||||
|
||||
/* general responsiveness */
|
||||
|
||||
@media screen and (max-width: $mobile-limit) {
|
||||
body {
|
||||
width: 100% !important;
|
||||
min-width: auto !important;
|
||||
}
|
||||
.container {
|
||||
width: 100% !important;
|
||||
min-width: auto !important;
|
||||
}
|
||||
#footer .col-sm-6 {
|
||||
/* and that's why you use semantic classes */
|
||||
width: 100%;
|
||||
margin-bottom: 2em;
|
||||
.footer-box {
|
||||
width: 90%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
$body-background: white;
|
||||
$width: 950px;
|
||||
$mobile-limit: 800px;
|
||||
$font-size: 13px;
|
||||
$font-color: #333;
|
||||
$link-color: #D70B52;
|
||||
$font-family: sans-serif;
|
||||
$nav-background: transparent;
|
||||
$nav-color: #2A697C;
|
||||
$nav-active-color: transparent;
|
||||
$nav-menu-color: #3791DB;
|
||||
$border-radius: 0px;
|
||||
$button-background: #804697;
|
||||
$title-background: transparent; //#804697;
|
||||
$title-color: #8D59A1;
|
||||
$cell-border: 0 solid transparent;
|
||||
$nav-mobile-mode: none;
|
Before Width: | Height: | Size: 106 KiB |
|
@ -1,4 +0,0 @@
|
|||
div#header {
|
||||
background: linear-gradient(50deg, #512E63 0%, #804697 15%, #804697 39%, #242264 75%, #242264 100%);
|
||||
background-position: 0 0 !important;
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"label": "Alfortville",
|
||||
"variables": {
|
||||
"theme_color": "#804697"
|
||||
}
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
$(function() {
|
||||
$('div.buttons input').on('click', function() {
|
||||
$('body').append('<div id="page-transition"></div>');
|
||||
});
|
||||
|
||||
// wcs forms: spinner on submit
|
||||
$('form.quixote').on('submit', function() {
|
||||
var overlay = $('<div id="page-change-overlay"></div>').appendTo('body');
|
||||
overlay[0].offsetHeight;
|
||||
overlay.toggleClass('on');
|
||||
return true;
|
||||
});
|
||||
$(window).on('pageshow', function() {
|
||||
$('#page-change-overlay').remove();
|
||||
});
|
||||
$('form div.page h3:first-child').addClass('foldable folded');
|
||||
$('form div.page h3:first-child').filter(':first').removeClass('folded');
|
||||
$('form.quixote .foldable').click(function() {
|
||||
$(this).toggleClass('folded').next().toggle();
|
||||
});
|
||||
$('form.quixote .foldable.folded').next().hide();
|
||||
$('#summary .foldable, #evolution-log .foldable').removeClass('foldable');
|
||||
});
|
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 213 KiB |
|
@ -1,25 +0,0 @@
|
|||
@charset "UTF-8";
|
||||
|
||||
@import 'vars';
|
||||
@import '../includes/utils';
|
||||
@import '../includes/title';
|
||||
|
||||
%title {
|
||||
@extend %title;
|
||||
border-top: 2px solid #804697;
|
||||
font-size: 2rem;
|
||||
padding-left: 0;
|
||||
font-family: "TradeGothicLT-BoldTwo",sans-serif;
|
||||
}
|
||||
|
||||
@import '../includes/layout';
|
||||
@import '../includes/cells';
|
||||
@import '../includes/user-info';
|
||||
@import '../includes/jqueryui';
|
||||
@import '../includes/forms';
|
||||
@import '../includes/wcs';
|
||||
@import '../includes/misc';
|
||||
@import '../includes/a11y';
|
||||
@import '../includes/transitions/_twoballs';
|
||||
|
||||
@import 'custom';
|
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 227 KiB |
|
@ -1,47 +0,0 @@
|
|||
{% load i18n combo %}
|
||||
<h3>{{ person.title.text }} {{ person.text }}</h3>
|
||||
|
||||
{% if person.sas %}
|
||||
<p>
|
||||
L'ajout de cet adulte à votre dossier famille est en cours d'instruction par la
|
||||
ville.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<ul>
|
||||
{% if person.birthdate %}
|
||||
<li>Date de naissance : {{ person.birthdate|strptime:"%Y-%m-%d"|date:"d F Y" }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.address %}
|
||||
<li>Adresse : {{ person.address.full }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.email %}
|
||||
<li>{% trans "Email:" %} {{ person.email }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.cellphone %}
|
||||
<li>{% trans "Cellphone:" %} {{ person.cellphone }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.phone %}
|
||||
<li>{% trans "Phone:" %}{{ person.phone }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.profession %}
|
||||
<li>Profession : {{ person.profession }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.employer %}
|
||||
<li>Employeur : {{ person.employer }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.employer_phone %}
|
||||
<li>Téléphone de l'employeur : {{ person.employer_phone }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.employer_address.full %}
|
||||
<li>Ville de l'employeur : {{ person.employer_address.city.text }}</li>
|
||||
{% endif %}
|
||||
</ul>
|
|
@ -1,72 +0,0 @@
|
|||
{% load i18n combo %}
|
||||
<h1>{{ person.text }}
|
||||
<em>({% if person.sex == 'F' %}fille</em>{% elif person.sex == 'M' %}garçon{% endif %})</em>
|
||||
</h1>
|
||||
|
||||
{% if person.sas %}
|
||||
<p>
|
||||
Note : vous avez demandé à ce que cet enfant soit ajouté à votre dossier
|
||||
famille, cette demande est en cours d'instruction par la ville.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<ul>
|
||||
{% if person.birthdate %}
|
||||
<li>Date de naissance : {{ person.birthdate|strptime:"%Y-%m-%d"|date:"d F Y" }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.school.text %}
|
||||
<li>Établissement d'inscription : {{ person.school.text }}</li>
|
||||
<li>Niveau : {{ person.school.grade.text }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.email %}
|
||||
<li>{% trans "Email:" %} {{ person.email }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.cellphone %}
|
||||
<li>{% trans "Cellphone:" %}{{ person.cellphone }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.phone %}
|
||||
<li>{% trans "Phone:" %}{{ person.phone }}</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
<h2>Présences sur les 3 derniers mois (90 jours)</h2>
|
||||
|
||||
{% if person.plannings %}
|
||||
|
||||
<table class="invoices">
|
||||
<tbody>
|
||||
|
||||
{% for planning in person.plannings|dictsort:"date" %}
|
||||
|
||||
{% ifchanged planning.year planning.month %}
|
||||
<tr><td colspan="4"><h4>{{ planning.month|strptime:"%m"|date:"E" }} {{ planning.year }}</h4></td></tr>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Horaire prévu</th>
|
||||
<th>Horaire constaté</th>
|
||||
<th>Remarque</th>
|
||||
</tr>
|
||||
{% endifchanged %}
|
||||
|
||||
<tr>
|
||||
<td>{{ planning.date|strptime:"%Y-%m-%d"|date:"l j E"|lower }}</td>
|
||||
<td>{{ planning.expected_in }}→{{ planning.expected_out }}</td>
|
||||
<td>{% if not planning.absent %}
|
||||
<span style="color:{%if planning.differ %}orange{% else %}green{% endif %}">{{ planning.in }}→{{ planning.out }}</span>
|
||||
{% else %}<span style="color:red;">Absence</span>{% endif %}</td>
|
||||
<td>{{planning.message}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% else %}
|
||||
<p>Aucun planning disponible</p>
|
||||
{% endif %}
|
|
@ -1,40 +0,0 @@
|
|||
{% load i18n combo %}
|
||||
<h3>{{ person.text }}
|
||||
<em>({% if person.sex == 'F' %}fille</em>{% elif person.sex == 'M' %}garçon{% endif %})</em>
|
||||
</h3>
|
||||
|
||||
{% if person.sas %}
|
||||
<p>
|
||||
Note : vous avez demandé à ce que cet enfant soit ajouté à votre dossier
|
||||
famille, cette demande est en cours d'instruction par la ville.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<ul>
|
||||
{% if person.birthdate %}
|
||||
<li>Date de naissance : {{ person.birthdate|strptime:"%Y-%m-%d"|date:"d F Y" }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.school.text %}
|
||||
<li>Établissement d'inscription : {{ person.school.text }}</li>
|
||||
<li>Niveau : {{ person.school.grade.text }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.email %}
|
||||
<li>{% trans "Email:" %} {{ person.email }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.cellphone %}
|
||||
<li>{% trans "Cellphone:" %}{{ person.cellphone }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.phone %}
|
||||
<li>{% trans "Phone:" %}{{ person.phone }}</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
{% if not selected_user %}
|
||||
{% if not person.sas %}
|
||||
<a href="?child={{ person.id }}">Présences et absences de {{ person.text }}</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
|
@ -1,43 +0,0 @@
|
|||
{% load i18n combo %}
|
||||
<h3>{{ person.title.text }} {{ person.text }}</h3>
|
||||
|
||||
{% if person.sas %}
|
||||
<p>Vous avez demandé l'ajout de ce contact à votre dossier famille,
|
||||
cette demande est en cours d'instruction par la ville.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<ul>
|
||||
{% if person.birthdate %}
|
||||
<li>Date de naissance : {{ person.birthdate|strptime:"%Y-%m-%d"|date:"d F Y" }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.address %}
|
||||
<li>Adresse : {{ person.address.full }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.email %}
|
||||
<li>{% trans "Email:" %} {{ person.email }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.cellphone %}
|
||||
<li>{% trans "Cellphone:" %} {{ person.cellphone }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.phone %}
|
||||
<li>{% trans "Phone:" %} {{ person.phone }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if person.children %}
|
||||
<li>Contact pour {{ person.children|pluralize:"l'enfant,les enfants" }} :
|
||||
<ul>
|
||||
{% for child in person.children %}
|
||||
<li>{{ child.text }} <em>({{ child.link.text }})</em>
|
||||
{% if child.parental_authority %}[autorité parentale]{% endif %}
|
||||
{% if child.banned %}[INTERDICTION]{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
|
@ -1,160 +0,0 @@
|
|||
{% load i18n %}
|
||||
|
||||
{% if selected_user %}<!-- affichage portail agent -->{% endif %}
|
||||
|
||||
{% if not family or not family.data %}
|
||||
|
||||
{% if 'agent' in request.META.SERVER_NAME %}
|
||||
<h1>Pas de dossier famille lié à ce compte</h1>
|
||||
{% else %}
|
||||
|
||||
<h1>Accéder à mon dossier famille</h1>
|
||||
|
||||
<div id="adults">
|
||||
|
||||
<h2>Votre dossier famille existe déjà…</h2>
|
||||
|
||||
<p>
|
||||
Si vous avez déjà un enfant scolarisé ou inscrit en crèche sur Alfortville,
|
||||
<strong>votre dossier famille existe déjà</strong>. Vous avez dû recevoir vos
|
||||
<strong>codes famille</strong> par un courrier de la mairie.
|
||||
</p>
|
||||
|
||||
<p>Utilisez vos codes famille <a href="{% url 'family-link' %}" data-popup>en
|
||||
cliquant ici</a> pour associer votre dossier famille à votre compte Mon
|
||||
Alfortville et commencer vos démarches.</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<p>Vous n'avez pas vos codes famille ou vous les avez perdu ?</p>
|
||||
<p><a href="codes">Cliquez ici pour les recevoir</a> par courrier.</p>
|
||||
|
||||
</div>
|
||||
<div id="children">
|
||||
|
||||
<h2>Vous n'avez pas de dossier famille…</h2>
|
||||
<p>Vous êtes nouvel habitant d'Alfortville ?</p>
|
||||
<p>Vous venez d'avoir un premier enfant ?</p>
|
||||
<p>Aucun de vos enfants n'est inscrit dans une crèche, une école maternelle ou une école élémentaire ?</p>
|
||||
<p><a href="creation">Cliquez ici pour créer votre dossier famille.</a></p>
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
|
||||
{% with data=family.data %}
|
||||
|
||||
{% if request.GET.child %}
|
||||
|
||||
{### only one child ###}
|
||||
|
||||
{% for child in data.children %}
|
||||
{% if child.id == request.GET.child %}
|
||||
{% include 'family/child-full.html' with person=child %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<h2></h2>
|
||||
|
||||
<p>
|
||||
<a href="./">Retour au dossier complet</a>
|
||||
</p>
|
||||
|
||||
{% else %}
|
||||
|
||||
{### complete family ###}
|
||||
|
||||
{% if selected_user %}
|
||||
<h1>Dossier famille lié</h1>
|
||||
{% else %}
|
||||
<h1>Mon dossier famille</h1>
|
||||
{% endif %}
|
||||
|
||||
{% if data.sas %}
|
||||
{% if selected_user %}
|
||||
<p style="background: red;">
|
||||
<strong >Attention : dossier famille en attente de validation, uniquement stocké
|
||||
temporairement dans le SAS du système Publik, n'existe pas encore dans le
|
||||
logiciel famille</strong>
|
||||
</p>
|
||||
{% else %}
|
||||
<p>
|
||||
<strong>Note : les informations ci-dessous n'ont pas encore été validées
|
||||
par la ville. Il s'agit ici d'une vision de votre <em>demande</em> de création
|
||||
dossier famille, dont l'instruction est en cours.</strong>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<div id="adults">
|
||||
<h2>{% trans "Adults" %}</h2>
|
||||
<ul>
|
||||
{% for adult in data.adults %}
|
||||
<li>{% include 'family/adult.html' with person=adult %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<h2>{% trans "Contacts" %}</h2>
|
||||
{% if data.contacts %}
|
||||
<ul>
|
||||
{% for contact in data.contacts %}
|
||||
<li>{% include 'family/contact.html' with person=contact %}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>Aucun contact n'est déclaré dans ce dossier famille</p>
|
||||
{% endif %}
|
||||
|
||||
<h2>Administratif</h2>
|
||||
<ul>
|
||||
<li>Adresse du foyer : {{ data.address.full }}</li>
|
||||
<li>Situation : {{ data.informations.situation.text }}</li>
|
||||
<li>Allocataire :
|
||||
{{ data.informations.allowance_adult.text|default:'(inconnu)' }}
|
||||
— numéro {{ data.informations.allowance_number|default:'(inconnu)' }}
|
||||
— régime {{ data.informations.regime.text|default:'(inconnu)' }}
|
||||
</li>
|
||||
{% if data.informations.allowance_aeeh == '1' %}
|
||||
<li>Allocation d'éducation de l'enfant handicapé (AEEH)</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
{% if not selected_user %}
|
||||
{% if not data.sas %}
|
||||
<h2>Ne plus être relié à cette famille</h2>
|
||||
<p>
|
||||
<a class="button" href="{% url 'family-unlink' %}" data-popup>Ne plus
|
||||
relier mon compte usager à ce dossier famille.</a>
|
||||
Attention cette action est définitive, vous devrez disposer de vos codes
|
||||
famille pour vous relier à nouveau, sinon il vous faudra contacter le Pôle
|
||||
Relation Usagers.
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<div id="children">
|
||||
<h2>{% trans "Children" %}</h2>
|
||||
<ul>
|
||||
{% for child in data.children %}
|
||||
<li>
|
||||
{% include 'family/child.html' with person=child kind='child' %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<p>
|
||||
<h2></h2>
|
||||
{% if not selected_user %}
|
||||
<a href="child">Ajouter un nouvel enfant dans ma famille</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% endif %}{### /complete family ###}
|
||||
|
||||
{% endwith %}
|
||||
|
||||
{% endif %}
|
|
@ -1,15 +0,0 @@
|
|||
{% load i18n %}
|
||||
<div id="content" class="gru-content">
|
||||
<div id="appbar">
|
||||
<h2>{% trans "Link to a family" %}</h2>
|
||||
<form method="post" action='{% url "family-link" %}'>
|
||||
<ul class="family_link">
|
||||
{% csrf_token %}
|
||||
{{ form.as_ul }}
|
||||
</ul>
|
||||
<div class="buttons">
|
||||
<button class="submit-button">{% trans "Send" %}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
|
@ -1,11 +0,0 @@
|
|||
{% load i18n %}
|
||||
|
||||
<div id="content" class="gru-content">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{% trans "Unlink your personal account from this family account?" %}
|
||||
<div class="buttons">
|
||||
<button class="delete-button">{% trans 'Unlink' %}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
|
@ -1,122 +0,0 @@
|
|||
#! /usr/bin/env python
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import re
|
||||
import sys
|
||||
|
||||
FILENAME = 'tmp.html'
|
||||
|
||||
if os.path.exists(FILENAME):
|
||||
os.unlink(FILENAME)
|
||||
|
||||
URL = 'https://www.alfortville.fr/?page=gru'
|
||||
subprocess.call(['wget', '--quiet', '-O', FILENAME, '--convert-links', URL])
|
||||
content = '{% load gadjo i18n static combo %}' + open(FILENAME).read().strip()
|
||||
if len(content) < 500:
|
||||
sys.exit(0)
|
||||
|
||||
# replace action of "subscribe newsletter" form
|
||||
content = content.replace('action="tmp.html"', 'action="https://www.alfortville.fr/"')
|
||||
|
||||
# remove tmp.html that have been added to anchor links
|
||||
content = content.replace('tmp.html#', '#')
|
||||
|
||||
content = content.replace('</head>',
|
||||
'<title>{% firstof global_title "Mon Alfortville" %} {% block title %}{% endblock %}</title>\n</head>')
|
||||
|
||||
content = content.replace('</head>',
|
||||
'''
|
||||
{% if meta_robots %}
|
||||
<meta name="robots" content="{{ meta_robots }}" />
|
||||
{% elif environment_label %}
|
||||
<meta name="robots" content="noindex, nofollow, noarchive, nosnippet, notranslate, noimageindex" />
|
||||
{% endif %}
|
||||
|
||||
{% block extra_top_head %}
|
||||
{% endblock %}
|
||||
{{ media }}
|
||||
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static 'alfortville/style.css' %}?{% start_timestamp %}">
|
||||
{% block extra_css %}
|
||||
{% endblock %}
|
||||
{% block extra_scripts %}
|
||||
{% endblock %}
|
||||
</head>''')
|
||||
|
||||
content = content.replace('<body class="touch-ok">',
|
||||
r'<body {% block bodyargs %}class="touch-ok {% block bodyclasses %}{% endblock %}" {% block bodyattrs %}{% endblock %}{% endblock %}>')
|
||||
|
||||
content = content.replace('>Compte citoyen<', '>{{ site_title }}<')
|
||||
|
||||
content = content.replace('<div class="gru-content">',
|
||||
'''
|
||||
<nav>
|
||||
<div id="nav" class="gru-nav togglable">
|
||||
{% block menu %}
|
||||
<ul>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="gru-content" id="content">
|
||||
{% block messages %}
|
||||
{% if messages %}
|
||||
<div id="messages" class="messages-login">
|
||||
<ul class="messages">
|
||||
{% for message in messages %}
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
<div style="clear: both;"></div>
|
||||
''')
|
||||
|
||||
content = re.sub('<p>Contenu.*', '', content)
|
||||
|
||||
# remove breadcrumb
|
||||
content = re.sub(r'<ol class="breadcrumb.*?ol>', '', content, flags=re.DOTALL)
|
||||
|
||||
# remove search box
|
||||
content = re.sub(r'.*item-search-wp.*', '', content)
|
||||
|
||||
# remove favorites
|
||||
content = re.sub(r'.*Mes favoris.*', '', content)
|
||||
|
||||
# remove copy of jquery
|
||||
content = re.sub('<script src=.*jquery.min.js.*', '', content)
|
||||
|
||||
# remove scripts from end of page
|
||||
content = re.sub(r'<script>.*/script>', '', content, flags=re.DOTALL)
|
||||
|
||||
# remove search scripts that requires to be run on spip
|
||||
content = re.sub(r'.*liveSearch.*', '', content)
|
||||
content = re.sub(r'<!-- Plugin ICDC de recherche.*?/script>', '', content,
|
||||
flags=re.DOTALL)
|
||||
|
||||
# remove call to google maps
|
||||
content = re.sub(r'<script.*maps.google.*script>', '', content)
|
||||
|
||||
content = re.sub('(<a.*href=")(.*?")(.*Se connecter</a>)',
|
||||
r'''{% skeleton_extra_placeholder first-user-link %}
|
||||
{% if user.is_authenticated %}<span class="connected-user">{{user.first_name}} {{user.last_name}}</span>
|
||||
{% else %}
|
||||
<span class="login">\1{% url 'auth_login' %}" class="login-link"\3</span>
|
||||
{% endif %}
|
||||
{% end_skeleton_extra_placeholder %}''', content)
|
||||
|
||||
content = re.sub('(<a.*href=")(.*?)"(.*er un compte</a>)',
|
||||
r'''{% skeleton_extra_placeholder second-user-link %}
|
||||
{% if user.is_authenticated %}
|
||||
\1{% url 'auth_logout' %}" class="account-link">Se déconnecter</a>
|
||||
{% else %}
|
||||
<span class="register">\1{% url 'auth_login' %}"\3</span>
|
||||
{% endif %}
|
||||
{% end_skeleton_extra_placeholder %}''', content)
|
||||
|
||||
open('theme.html', 'w').write(content)
|
|
@ -1,40 +0,0 @@
|
|||
{% extends theme_base %}
|
||||
{% load static %}
|
||||
|
||||
{% block extra-top-head %}
|
||||
{{script|safe}}
|
||||
<script src="{% static 'dataview.js' %}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block first-user-link %}
|
||||
{% if session_user %}
|
||||
<span class="connected-user">{{session_user_display_name}}</span>
|
||||
{% else %}
|
||||
<span class="login"><a href="{{root_url}}login/" class="login-link">Se connecter</a></span>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block second-user-link %}
|
||||
{% if session_user %}
|
||||
<a href="{{root_url}}logout/" class="account-link">Se déconnecter</a>
|
||||
{% else %}
|
||||
<span class="register"><a href="{{root_url}}register/" class="p-like-c fw-light hover-a wh-a">Créer un compte</a></span>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block placeholder-content %}
|
||||
{% block content %}
|
||||
{% if gauche %}
|
||||
<div id="gauche">
|
||||
{{ gauche|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div id="{{bigdiv|default:'rub_service'}}" class="{% if gauche %}has-sidebox{% endif %}">
|
||||
{% if title %}<h2>{{ title }}</h2>{% endif %}
|
||||
{% block body %}
|
||||
{{ body|safe }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock %}
|