misc: apply djhtml (#69422)

This commit is contained in:
Valentin Deniaud 2022-09-29 12:12:11 +02:00
parent 464b6dd0de
commit 26c2382615
655 changed files with 15079 additions and 15079 deletions

View File

@ -1,54 +1,54 @@
<ul id="grid--list01">
<h2 class="hidden">Liste de sous-éléments</h2>
<li class="grid-item"><a href="#">
<div class="item-visu" style="background-image: url(http://placehold.it/700x700);"></div>
<div class="item-content">
<div class="item-date">07/10/2017</div>
<h3 class="item-title">Titre de l'évenement sur deux très grandes lignes</h3>
<div class="item-description">Description de l'évènement assez bref pour pas que ça dépasse sinon ça serait dommage</div>
<div class="item-categories">Vernissage, concert, débat ...</div>
</div>
<div class="item-infos">
<div class="item-geoloc">
<i class="fa fa-map-marker"></i>
<span class="text">Lieu de l'évènement ou de l'article en question</span>
</div>
<div class="item-misc">
Infos en vrac
</div>
</div>
</a></li>
<li class="grid-item"><a href="#">
<div class="item-visu" style="background-image: url(http://placehold.it/700x700);"></div>
<div class="item-content">
<div class="item-date">13/10 au 20/10/2017</div>
<h3 class="item-title">Titre court</h3>
<div class="item-categories">Vernissage, concert, débat ...</div>
</div>
<div class="item-infos">
<div class="item-geoloc">
<i class="fa fa-map-marker"></i>
<span class="text">Lieu de l'évènement</span>
</div>
<div class="item-misc">
Infos en vrac
</div>
</div>
</a></li>
<li class="grid-item"><a href="#">
<div class="item-visu" style="background-image: url(http://placehold.it/700x700);"></div>
<div class="item-content">
<div class="item-date">13/10 au 20/10/2017</div>
<h3 class="item-title">Pas de catégorie mais un chapeau</h3>
</div>
<div class="item-infos">
<div class="item-geoloc">
<i class="fa fa-map-marker"></i>
<span class="text">Lieu de l'évènement</span>
</div>
<div class="item-misc">
Infos en vrac
</div>
</div>
</a></li>
<h2 class="hidden">Liste de sous-éléments</h2>
<li class="grid-item"><a href="#">
<div class="item-visu" style="background-image: url(http://placehold.it/700x700);"></div>
<div class="item-content">
<div class="item-date">07/10/2017</div>
<h3 class="item-title">Titre de l'évenement sur deux très grandes lignes</h3>
<div class="item-description">Description de l'évènement assez bref pour pas que ça dépasse sinon ça serait dommage</div>
<div class="item-categories">Vernissage, concert, débat ...</div>
</div>
<div class="item-infos">
<div class="item-geoloc">
<i class="fa fa-map-marker"></i>
<span class="text">Lieu de l'évènement ou de l'article en question</span>
</div>
<div class="item-misc">
Infos en vrac
</div>
</div>
</a></li>
<li class="grid-item"><a href="#">
<div class="item-visu" style="background-image: url(http://placehold.it/700x700);"></div>
<div class="item-content">
<div class="item-date">13/10 au 20/10/2017</div>
<h3 class="item-title">Titre court</h3>
<div class="item-categories">Vernissage, concert, débat ...</div>
</div>
<div class="item-infos">
<div class="item-geoloc">
<i class="fa fa-map-marker"></i>
<span class="text">Lieu de l'évènement</span>
</div>
<div class="item-misc">
Infos en vrac
</div>
</div>
</a></li>
<li class="grid-item"><a href="#">
<div class="item-visu" style="background-image: url(http://placehold.it/700x700);"></div>
<div class="item-content">
<div class="item-date">13/10 au 20/10/2017</div>
<h3 class="item-title">Pas de catégorie mais un chapeau</h3>
</div>
<div class="item-infos">
<div class="item-geoloc">
<i class="fa fa-map-marker"></i>
<span class="text">Lieu de l'évènement</span>
</div>
<div class="item-misc">
Infos en vrac
</div>
</div>
</a></li>
</ul>

View File

@ -1,8 +1,8 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour {{ full_name }},</p>
<p>Bonjour {{ full_name }},</p>
<p>Votre compte sur le site {{site}} a été supprimé.</p>
<p>Toutes les données associées seront supprimées aujourdhui.</p>
<p>Vous ne pouvez dès à présent plus vous connecter.</p>
<p>Votre compte sur le site {{site}} a été supprimé.</p>
<p>Toutes les données associées seront supprimées aujourdhui.</p>
<p>Vous ne pouvez dès à présent plus vous connecter.</p>
{% endblock %}

View File

@ -1,10 +1,10 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour,</p>
<p>Pour valider la demande de suppression de votre compte, veuillez cliquer sur le bouton suivant :</p>
{% include "emails/button-link.html" with url=deletion_url label="Supprimer mon compte" %}
<p>
Toutes les données associées seront supprimées.
Vous ne pouvez dorénavant plus vous connecter.
</p>
<p>Bonjour,</p>
<p>Pour valider la demande de suppression de votre compte, veuillez cliquer sur le bouton suivant :</p>
{% include "emails/button-link.html" with url=deletion_url label="Supprimer mon compte" %}
<p>
Toutes les données associées seront supprimées.
Vous ne pouvez dorénavant plus vous connecter.
</p>
{% endblock %}

View File

@ -5,85 +5,85 @@
{% block extra-body-class %}{{ block.super }} account-page{% endblock %}
{% block content %}
<div class="column profile">
{% block profile-pre %}{% endblock %}
<div class="block" id="a2-profile">
{% block profile-top %}{% endblock %}
{% block profile-data-title %}
<h2>Données du compte</h2>
{% endblock %}
{% block profile-data %}
<div id="profile">
{% if attributes %}
{% for attribute in attributes %}
<div class="field">
<span class="label">{{ attribute.attribute.label|capfirst }}</span>
<div class="value">
{% if attribute.values|length == 0 %}<span class="nodata">(non spécifié)</span>
{% elif attribute.values|length == 1 %}{{ attribute.values.0 }}{% else %}
<ul>
{% for value in attribute.values %}
<li>{{ value }}</li>
<div class="column profile">
{% block profile-pre %}{% endblock %}
<div class="block" id="a2-profile">
{% block profile-top %}{% endblock %}
{% block profile-data-title %}
<h2>Données du compte</h2>
{% endblock %}
{% block profile-data %}
<div id="profile">
{% if attributes %}
{% for attribute in attributes %}
<div class="field">
<span class="label">{{ attribute.attribute.label|capfirst }}</span>
<div class="value">
{% if attribute.values|length == 0 %}<span class="nodata">(non spécifié)</span>
{% elif attribute.values|length == 1 %}{{ attribute.values.0 }}{% else %}
<ul>
{% for value in attribute.values %}
<li>{{ value }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endfor %}
</ul>
{% endif %}
{% if LAST_LOGIN %}
<div class="field">
<span class="label">Dernière connexion</span>
<span class="value">{{ LAST_LOGIN }}</span>
</div>
{% endif %}
</div>
</div>
{% endfor %}
{% endif %}
{% if LAST_LOGIN %}
<div class="field">
<span class="label">Dernière connexion</span>
<span class="value">{{ LAST_LOGIN }}</span>
</div>
{% endif %}
</div>
{% endblock %}
{% block profile-bottom %}{% endblock %}
</div>
{% block profile-post %}{% endblock %}
</div>
<div class="column account-management">
{% block account-management-pre %}{% endblock %}
<div class="block" id="account-management">
{% block account-management-top %}{% endblock %}
{% block account-management-title %}
<h2>Gestion du compte</h2>
{% endblock %}
{% block account-management-actions %}
<ul class="account-management">
{% block account-management-top-actions %}
{% endblock %}
{% if allow_email_change %}
<li class="email-change"><a href="{% url 'email-change' %}">Modifier le courriel associé</a></li>
{% endif %}
{{ frontends_block_by_id.password.content|safe }}
{% if profile_edit_url %}
<li class="profile-edit"><a href="{{ profile_edit_url }}">Modifier les données du compte</a></li>
{% elif allow_profile_edit %}
<li class="profile-edit"><a href="{% url 'profile_edit' %}">Modifier les données du compte</a></li>
{% endif %}
{% if allow_authorization_management %}
<li><a href="{% url 'consents' %}">Gérer les autorisations daccès</a></li>
{% endif %}
{% if allow_account_deletion %}
<li class="account-delete"><a href="{% url 'delete_account' %}">Supprimer le compte</a></li>
{% endif %}
{% block account-management-bottom-actions %}
{% endblock %}
</ul>
{% endblock %}
</div>
{% block account-management-other-blocks %}
{% for id, block in frontends_block_by_id.items %}
{% if id != "password" %}
<div class="block" id="account-management-{{ id }}">
<h2>{{ block.name }}</h2>
{{ block.content|safe }}
{% block profile-bottom %}{% endblock %}
</div>
{% endif %}
{% endfor %}
{% endblock %}
{% block account-management-post %}{% endblock %}
</div>
{% block profile-post %}{% endblock %}
</div>
<div class="column account-management">
{% block account-management-pre %}{% endblock %}
<div class="block" id="account-management">
{% block account-management-top %}{% endblock %}
{% block account-management-title %}
<h2>Gestion du compte</h2>
{% endblock %}
{% block account-management-actions %}
<ul class="account-management">
{% block account-management-top-actions %}
{% endblock %}
{% if allow_email_change %}
<li class="email-change"><a href="{% url 'email-change' %}">Modifier le courriel associé</a></li>
{% endif %}
{{ frontends_block_by_id.password.content|safe }}
{% if profile_edit_url %}
<li class="profile-edit"><a href="{{ profile_edit_url }}">Modifier les données du compte</a></li>
{% elif allow_profile_edit %}
<li class="profile-edit"><a href="{% url 'profile_edit' %}">Modifier les données du compte</a></li>
{% endif %}
{% if allow_authorization_management %}
<li><a href="{% url 'consents' %}">Gérer les autorisations daccès</a></li>
{% endif %}
{% if allow_account_deletion %}
<li class="account-delete"><a href="{% url 'delete_account' %}">Supprimer le compte</a></li>
{% endif %}
{% block account-management-bottom-actions %}
{% endblock %}
</ul>
{% endblock %}
</div>
{% block account-management-other-blocks %}
{% for id, block in frontends_block_by_id.items %}
{% if id != "password" %}
<div class="block" id="account-management-{{ id }}">
<h2>{{ block.name }}</h2>
{{ block.content|safe }}
</div>
{% endif %}
{% endfor %}
{% endblock %}
{% block account-management-post %}{% endblock %}
</div>
{% endblock %}

View File

@ -1,30 +1,30 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour,</p>
<p>Bonjour,</p>
<p>
À votre demande, un compte vient de vous être créé :
</p>
<p>
À votre demande, un compte vient de vous être créé :
</p>
<ul>
{% if user.username %}<li>Identifiant : {{ user.username }}</li>{% endif %}
<li>Courriel : {{ user.email }}</li>
<li>Prénom : {{ user.first_name }}</li>
<li>Nom : {{ user.last_name }}</li>
</ul>
<ul>
{% if user.username %}<li>Identifiant : {{ user.username }}</li>{% endif %}
<li>Courriel : {{ user.email }}</li>
<li>Prénom : {{ user.first_name }}</li>
<li>Nom : {{ user.last_name }}</li>
</ul>
<p>
Pour choisir un mot de passe et accéder à votre compte, veuillez cliquer
sur le bouton suivant :
</p>
<p>
Pour choisir un mot de passe et accéder à votre compte, veuillez cliquer
sur le bouton suivant :
</p>
{% include "emails/button-link.html" with url=reset_url label="Accéder au compte" %}
{% include "emails/button-link.html" with url=reset_url label="Accéder au compte" %}
<p>
{% if expiration_days == 1 %}
Attention, cette action nest valide que durant 24 heures.
{% else %}
Attention, cette action nest valide que durant {{ expiration_days }} jours.
{% endif %}
</p>
<p>
{% if expiration_days == 1 %}
Attention, cette action nest valide que durant 24 heures.
{% else %}
Attention, cette action nest valide que durant {{ expiration_days }} jours.
{% endif %}
</p>
{% endblock %}

View File

@ -1,13 +1,13 @@
{% extends "authentic2/base.html" %}
{% block placeholder-content %}
{% block a2-block-pre %}{% endblock %}
<div class="a2-block">
{% block form-title %}
{% if view.title %}<h2>{{ view.title }}</h2>{% endif %}
{% endblock %}
{% block content %}
{% endblock %}
</div>
{% block a2-block-post %}{% endblock %}
{% block a2-block-pre %}{% endblock %}
<div class="a2-block">
{% block form-title %}
{% if view.title %}<h2>{{ view.title }}</h2>{% endif %}
{% endblock %}
{% block content %}
{% endblock %}
</div>
{% block a2-block-post %}{% endblock %}
{% endblock %}

View File

@ -3,8 +3,8 @@
{% block extra-body-class %}{{ block.super }} authentic-page{% endblock %}
{% block extra-body-args %}
{% block bodyargs %}
{% endblock %}
{% block bodyargs %}
{% endblock %}
{% endblock %}
{% block placeholder-content %}
@ -13,15 +13,15 @@
{% endblock %}
{% 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 %}
{% 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 extra-top-head %}

View File

@ -1,16 +1,16 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour,</p>
<p>Bonjour,</p>
<p>
Vous avez demandé à changer ladresse électronique de votre compte
de {{ old_email }} à {{ email }}.
</p>
<p>
Vous avez demandé à changer ladresse électronique de votre compte
de {{ old_email }} à {{ email }}.
</p>
<p>
Pour valider ce changement, veuillez cliquer sur le bouton suivant :
</p>
<p>
Pour valider ce changement, veuillez cliquer sur le bouton suivant :
</p>
{% include "emails/button-link.html" with url=link label="Valider le changement" %}
{% include "emails/button-link.html" with url=link label="Valider le changement" %}
{% endblock %}

View File

@ -7,9 +7,9 @@
</div>
{% if only_info %}
<script>
window.setTimeout(function () {
document.getElementById('a2-continue').click();
}, 3000);
window.setTimeout(function () {
document.getElementById('a2-continue').click();
}, 3000);
</script>
{% endif %}
{% endblock %}

View File

@ -8,34 +8,34 @@
{% endblock %}
{% block title %}
{% trans "Login" %}
{% trans "Login" %}
{% endblock %}
{% block menu %}
{% endblock %}
{% block content %}
{% include "authentic2/service_info_fragment.html" %}
{% include "authentic2/service_info_fragment.html" %}
{% block login-pre %}{% endblock %}
<div id="login-page" class="clearfix methods{{ blocks|length }}">
{% block login-top %}{% endblock %}
{% block login-pre %}{% endblock %}
<div id="login-page" class="clearfix methods{{ blocks|length }}">
{% block login-top %}{% endblock %}
{% block login-blocks %}
{% for id, login_block in blocks.items %}
<div class="block block-{% firstof login_block.authenticator.type login_block.authenticator.id %} block-{{id}}">
{% if blocks|length == 1 %}
<h2>Connexion</h2>
{% endif %}
<div {% if login_block.extra_css_class %} class="{{ login_block.extra_css_class }}"{% endif %}>
{{ login_block.content|safe }}
</div>
</div>
{% endfor %}
{% endblock %}
{% block login-blocks %}
{% for id, login_block in blocks.items %}
<div class="block block-{% firstof login_block.authenticator.type login_block.authenticator.id %} block-{{id}}">
{% if blocks|length == 1 %}
<h2>Connexion</h2>
{% endif %}
<div {% if login_block.extra_css_class %} class="{{ login_block.extra_css_class }}"{% endif %}>
{{ login_block.content|safe }}
</div>
</div>
{% endfor %}
{% endblock %}
{% block login-bottom %}{% endblock %}
</div>
{% block login-post %}{% endblock %}
{% block login-bottom %}{% endblock %}
</div>
{% block login-post %}{% endblock %}
{% endblock %}

View File

@ -2,12 +2,12 @@
{% load i18n %}
{% block registration %}
{% block registration-password-form-pre %}
<h2>{% trans "Registration" %}</h2>
<p>
Après validation de votre adresse électronique, il vous sera envoyé un courriel
pour ouvrir votre compte.
</p>
{% endblock %}
{{ block.super }}
{% block registration-password-form-pre %}
<h2>{% trans "Registration" %}</h2>
<p>
Après validation de votre adresse électronique, il vous sera envoyé un courriel
pour ouvrir votre compte.
</p>
{% endblock %}
{{ block.super }}
{% endblock %}

View File

@ -1,17 +1,17 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour,</p>
<p>Bonjour,</p>
<p>
Votre mot de passe est désormais : <b>{{ new_password }}</b>
</p>
<p>
Votre mot de passe est désormais : <b>{{ new_password }}</b>
</p>
<p>
Pour rappel, votre identifiant de connexion est : <b>{% firstof user.username user.email %}</b>
</p>
<p>
Pour rappel, votre identifiant de connexion est : <b>{% firstof user.username user.email %}</b>
</p>
{% if portal_user_url %}
{% include "emails/button-link.html" with url=portal_user_url label="Accéder au site" %}
{% endif %}
{% if portal_user_url %}
{% include "emails/button-link.html" with url=portal_user_url label="Accéder au site" %}
{% endif %}
{% endblock %}

View File

@ -1,27 +1,27 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour,</p>
<p>Bonjour,</p>
<p>
À votre demande, un compte vient de vous être créé :
</p>
<p>
À votre demande, un compte vient de vous être créé :
</p>
<ul>
{% if user.username %}<li>Identifiant : {{ user.username }}</li>{% endif %}
<li>Courriel : {{ user.email }}</li>
<li>Prénom : {{ user.first_name }}</li>
<li>Nom : {{ user.last_name }}</li>
</ul>
<ul>
{% if user.username %}<li>Identifiant : {{ user.username }}</li>{% endif %}
<li>Courriel : {{ user.email }}</li>
<li>Prénom : {{ user.first_name }}</li>
<li>Nom : {{ user.last_name }}</li>
</ul>
{% if new_password %}
<p>
Votre mot de passe est : {{ new_password }}
</p>
{% endif %}
{% if new_password %}
<p>
Votre mot de passe est : {{ new_password }}
</p>
{% endif %}
{% if portal_user_url %}
{% include "emails/button-link.html" with url=portal_user_url label="Accéder au site" %}
{% endif %}
{% if portal_user_url %}
{% include "emails/button-link.html" with url=portal_user_url label="Accéder au site" %}
{% endif %}
{% endblock %}

View File

@ -1,34 +1,34 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour,</p>
<p>Bonjour,</p>
<p>
Un administrateur a demandé le changement de votre adresse de
{{ user.email }} en {{ email }}.
</p>
<p>
Un administrateur a demandé le changement de votre adresse de
{{ user.email }} en {{ email }}.
</p>
{% if email_is_not_unique %}
<p>
Cependant cette adresse est déjà liée à un autre compte.
</p>
{% if email_is_not_unique %}
<p>
Cependant cette adresse est déjà liée à un autre compte.
</p>
<p>
Vous pouvez récupérer un accès à ce compte en utilisant le bouton suivant :
</p>
<p>
Vous pouvez récupérer un accès à ce compte en utilisant le bouton suivant :
</p>
{% include "emails/button-link.html" with url=password_reset_url label="Mot de passe oublié" %}
{% include "emails/button-link.html" with url=password_reset_url label="Mot de passe oublié" %}
{% else %}
<p>
Pour valider ce changement veuillez cliquer sur le bouton suivant :
</p>
{% else %}
<p>
Pour valider ce changement veuillez cliquer sur le bouton suivant :
</p>
{% include "emails/button-link.html" with url=link label="Valider ladresse" %}
{% include "emails/button-link.html" with url=link label="Valider ladresse" %}
<p>
Attention, cette action est uniquement valide pendant {{ token_lifetime }}.
</p>
{% endif %}
<p>
Attention, cette action est uniquement valide pendant {{ token_lifetime }}.
</p>
{% endif %}
{% endblock %}

View File

@ -1,16 +1,16 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour,</p>
<p>Bonjour,</p>
<p>
Vous avez changé le mot de passe de votre compte.
</p>
<p>
Vous avez changé le mot de passe de votre compte.
</p>
{% block warn_if_not_requested %}
<p>
Si vous naviez pas demandé le changement de votre mot de passe, vous pouvez
contacter léquipe « {% firstof global_title site_name site "Compte Citoyen" %} ».
</p>
{% endblock %}
{% block warn_if_not_requested %}
<p>
Si vous naviez pas demandé le changement de votre mot de passe, vous pouvez
contacter léquipe « {% firstof global_title site_name site "Compte Citoyen" %} ».
</p>
{% endblock %}
{% endblock %}

View File

@ -1,29 +1,29 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour,</p>
<p>Bonjour,</p>
<p>
Vous avez oublié votre mot de passe ?
</p>
<p>
Vous avez oublié votre mot de passe ?
</p>
<p>
Pour récupérer l'accès à votre compte, veuillez cliquer sur le bouton suivant :
</p>
<p>
Pour récupérer l'accès à votre compte, veuillez cliquer sur le bouton suivant :
</p>
{% include "emails/button-link.html" with url=reset_url label="Choisir un nouveau mot de passe" %}
{% include "emails/button-link.html" with url=reset_url label="Choisir un nouveau mot de passe" %}
<p>
Si vous nêtes pas à lorigine de cette demande, vous pouvez lignorer.
</p>
<p>
Si vous nêtes pas à lorigine de cette demande, vous pouvez lignorer.
</p>
<p>
{% if expiration_days == 1 %}
Attention, sans validation de votre part dans les 24 heures,
votre demande sera annulée.
{% else %}
Attention, sans validation de votre part dans les {{expiration_days}} jours,
votre demande sera annulée.
{% endif %}
</p>
<p>
{% if expiration_days == 1 %}
Attention, sans validation de votre part dans les 24 heures,
votre demande sera annulée.
{% else %}
Attention, sans validation de votre part dans les {{expiration_days}} jours,
votre demande sera annulée.
{% endif %}
</p>
{% endblock %}

View File

@ -1,17 +1,17 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Bonjour {{ user.get_full_name }},</p>
<p>Bonjour {{ user.get_full_name }},</p>
<p>
Votre compte a été créé. Pour vous connecter, utilisez les informations suivantes :
</p>
<p>
Votre compte a été créé. Pour vous connecter, utilisez les informations suivantes :
</p>
<ul>
<li>{% if user.email %}Courriel : {{ user.email }}{% else %}Identifiant : {{ user.username }}{% endif %}</li>
{% if user.has_usable_password %}
<li>Mot de passe : celui que vous venez de choisir lors de linscription.</li>
{% endif %}
</ul>
<ul>
<li>{% if user.email %}Courriel : {{ user.email }}{% else %}Identifiant : {{ user.username }}{% endif %}</li>
{% if user.has_usable_password %}
<li>Mot de passe : celui que vous venez de choisir lors de linscription.</li>
{% endif %}
</ul>
{% include "emails/button-link.html" with url=login_url label="Me connecter maintenant" %}
{% include "emails/button-link.html" with url=login_url label="Me connecter maintenant" %}
{% endblock %}

View File

@ -2,12 +2,12 @@
{% load humanize %}
{% block content %}
<p>Bonjour {{ user.get_full_name }},</p>
<p>Bonjour {{ user.get_full_name }},</p>
<p>Votre dernière connexion date d{{ user.last_login|naturaltime }}.</p>
<p>Pour conserver votre compte, il vous suffit de vous connecter avant {{ days_to_deletion }} jours.</p>
<p>Votre dernière connexion date d{{ user.last_login|naturaltime }}.</p>
<p>Pour conserver votre compte, il vous suffit de vous connecter avant {{ days_to_deletion }} jours.</p>
{% include "emails/button-link.html" with url=login_url label="Me connecter maintenant" %}
{% include "emails/button-link.html" with url=login_url label="Me connecter maintenant" %}
<p>Dans le cas contraire, il sera supprimé passé ce délai.</p>
<p>Dans le cas contraire, il sera supprimé passé ce délai.</p>
{% endblock %}

View File

@ -2,7 +2,7 @@
{% load humanize %}
{% block content %}
<p>Bonjour {{ user.get_full_name }},</p>
<p>Bonjour {{ user.get_full_name }},</p>
<p>Votre dernière connexion date d{{ user.last_login|naturaltime }}, votre compte a donc été supprimé.</p>
<p>Votre dernière connexion date d{{ user.last_login|naturaltime }}, votre compte a donc été supprimé.</p>
{% endblock %}

View File

@ -1,5 +1,5 @@
{% extends "authentic2_idp_oidc/authorization.html" %}
{% block a2-block-pre %}
{% include "authentic2/service_info_fragment.html" %}
{% include "authentic2/service_info_fragment.html" %}
{% endblock %}

View File

@ -1,12 +1,12 @@
{% load i18n beid %}
<div id="login-beid">
<p>
Si vous êtes déjà inscrit, vous pouvez aussi vous connecter grâce à votre carte
didentité électronique. Mettez-la dans son lecteur et cliquez sur le bouton
ci-dessous.
</p>
<form id='beid_login' action='{% beid_url request %}{% url "beid_signin" %}'>
<button name="{{ submit_name }}">{% trans "Log in" %}</button>
</form>
<p>
Si vous êtes déjà inscrit, vous pouvez aussi vous connecter grâce à votre carte
didentité électronique. Mettez-la dans son lecteur et cliquez sur le bouton
ci-dessous.
</p>
<form id='beid_login' action='{% beid_url request %}{% url "beid_signin" %}'>
<button name="{{ submit_name }}">{% trans "Log in" %}</button>
</form>
</div>

View File

@ -5,30 +5,30 @@
<div class="a2-beid-certificate-profile-body">
<ul class="a2-beid-certificate-list">
{% for certificate in certificates %}
<li class="a2-ssl-certificate-item">
<form action="{% url "delete_beid" certificate_pk=certificate.pk %}"
method="post">
{% csrf_token %}
<p class="a2-ssl-certificate-dn">
<dl class="a2-ssl-certificate-dn-parts">
{% for k, v in certificate.explode_subject_dn %}
<dt class="a2-ssl-certificate-dn-part-name">{{ k }}</dt>
<dd class="a2-ssl-certificate-dn-part-value">{{ v }}</dd>
{% endfor %}
</dl>
</p>
<button class="submit-button a2-ssl-certificate-submit-button">{% trans "Delete" %}</button>
</form>
</p>
{% endfor %}
{% for certificate in certificates %}
<li class="a2-ssl-certificate-item">
<form action="{% url "delete_beid" certificate_pk=certificate.pk %}"
method="post">
{% csrf_token %}
<p class="a2-ssl-certificate-dn">
<dl class="a2-ssl-certificate-dn-parts">
{% for k, v in certificate.explode_subject_dn %}
<dt class="a2-ssl-certificate-dn-part-name">{{ k }}</dt>
<dd class="a2-ssl-certificate-dn-part-value">{{ v }}</dd>
{% endfor %}
</dl>
</p>
<button class="submit-button a2-ssl-certificate-submit-button">{% trans "Delete" %}</button>
</form>
</p>
{% endfor %}
</ul>
{% if not certificates %}
<form action="{% beid_url request %}{% url "add_beid" %}" method="get">
<p>
Si vous disposez dune carte didentité électronique, vous pouvez lenregistrer
ici pour pouvoir ensuite vous connecter à votre compte en lutilisant.
</p>
<form action="{% beid_url request %}{% url "add_beid" %}" method="get">
<p>
Si vous disposez dune carte didentité électronique, vous pouvez lenregistrer
ici pour pouvoir ensuite vous connecter à votre compte en lutilisant.
</p>
<input type="hidden" name="next" value="{% url "account_management" %}" />
<button class="submit-button a2-ssl-certificate-submit-button">Enregistrer ma carte</button>
</form>

View File

@ -1,81 +1,81 @@
{% load assets %}
<div class="carrousel-content">
{% for menuitem in menuitems %}
<input type="radio" name="carrousel-{{cell.id}}"
class="carrousel-radio-{{forloop.counter}}"
id="carrousel-{{cell.id}}-{{forloop.counter}}"
{% if forloop.first %}checked{% endif %}>
<div class="slide">
{% block carrousel-item %}
<div class="carrousel-item"
{% for menuitem in menuitems %}
<input type="radio" name="carrousel-{{cell.id}}"
class="carrousel-radio-{{forloop.counter}}"
id="carrousel-{{cell.id}}-{{forloop.counter}}"
{% if forloop.first %}checked{% endif %}>
<div class="slide">
{% block carrousel-item %}
<div class="carrousel-item"
style="background-image: url({% asset_url menuitem.page.picture size="1000" crop="center" %})">
<div class="carrousel-item-content">
{% block carrousel-item-content %}
<a href="{{menuitem.page.get_online_url}}">
<strong class="carrousel-item-title">{{ menuitem.page.title }}</strong>
{% if menuitem.page.description %}<p class="carrousel-item-description">{{ menuitem.page.description }}</p>{% endif %}
</a>
{% endblock %}
</div>
</div>
{% endblock %}
</div>
{% endfor %}
<a class="carrousel-previous"></a>
{% block carrousel-navigation %}
<div class="carrousel-nav">
{% for menuitem in menuitems %}
<label class="carrousel-label-{{forloop.counter}}" for="carrousel-{{cell.id}}-{{forloop.counter}}"></label>
{% endfor %}
</div>
{% endblock %}
<a class="carrousel-next"></a>
<div class="carrousel-item-content">
{% block carrousel-item-content %}
<a href="{{menuitem.page.get_online_url}}">
<strong class="carrousel-item-title">{{ menuitem.page.title }}</strong>
{% if menuitem.page.description %}<p class="carrousel-item-description">{{ menuitem.page.description }}</p>{% endif %}
</a>
{% endblock %}
</div>
</div>
{% endblock %}
</div>
{% endfor %}
<a class="carrousel-previous"></a>
{% block carrousel-navigation %}
<div class="carrousel-nav">
{% for menuitem in menuitems %}
<label class="carrousel-label-{{forloop.counter}}" for="carrousel-{{cell.id}}-{{forloop.counter}}"></label>
{% endfor %}
</div>
{% endblock %}
<a class="carrousel-next"></a>
</div>
<script>
$(function() {
function next() {
if ($('.carrousel-content input:checked ~ input').length) {
$('.carrousel-content input:checked ~ input').first().click();
} else {
$('.carrousel-content input').first().click();
$(function() {
function next() {
if ($('.carrousel-content input:checked ~ input').length) {
$('.carrousel-content input:checked ~ input').first().click();
} else {
$('.carrousel-content input').first().click();
}
}
}
function previous() {
if ($('.carrousel-content input ~ input:checked').length) {
$('.carrousel-content input:checked').prev().prev().click();
} else {
$('.carrousel-content input').last().click();
function previous() {
if ($('.carrousel-content input ~ input:checked').length) {
$('.carrousel-content input:checked').prev().prev().click();
} else {
$('.carrousel-content input').last().click();
}
}
}
var timeout_id = setInterval(next, 5000);
$('.carrousel-content label').on('click', function() {
clearInterval(timeout_id);
});
$('a.carrousel-previous').on('click', function() {
clearInterval(timeout_id);
previous();
});
$('a.carrousel-next').on('click', function() {
clearInterval(timeout_id);
next();
});
var touch_start = null;
$('.carrousel-item').on('touchstart', function(ev) {
touch_start = ev.originalEvent.touches[0].pageX;
});
$('.carrousel-item').on('touchend', function(ev) {
var touch_end = ev.originalEvent.changedTouches[0].pageX;
var diff = touch_start - touch_end;
touch_start = null;
clearInterval(timeout_id);
var width = $('body').width();
if (diff*2 > width) {
var timeout_id = setInterval(next, 5000);
$('.carrousel-content label').on('click', function() {
clearInterval(timeout_id);
});
$('a.carrousel-previous').on('click', function() {
clearInterval(timeout_id);
previous();
}
if (diff*2 < -width) {
});
$('a.carrousel-next').on('click', function() {
clearInterval(timeout_id);
next();
}
});
var touch_start = null;
$('.carrousel-item').on('touchstart', function(ev) {
touch_start = ev.originalEvent.touches[0].pageX;
});
$('.carrousel-item').on('touchend', function(ev) {
var touch_end = ev.originalEvent.changedTouches[0].pageX;
var diff = touch_start - touch_end;
touch_start = null;
clearInterval(timeout_id);
var width = $('body').width();
if (diff*2 > width) {
previous();
}
if (diff*2 < -width) {
next();
}
});
});
});
</script>

View File

@ -2,13 +2,13 @@
<h2>Votre contact APA</h2>
<p class="centre-autonomie"><strong>{{ individu.apa.centreAutonomie|default:"Aucun" }}</strong></p>
{% with inst=dossier.suivi.instructeur %}
{% if inst %}
<p class="contact-info">
{% if inst.prenom or inst.nom %}
<span class="name">{{ inst.civilite|default:"" }} {{ inst.prenom|default:"" }} {{ inst.nom|default:"" }}</span><br />
{% if inst %}
<p class="contact-info">
{% if inst.prenom or inst.nom %}
<span class="name">{{ inst.civilite|default:"" }} {{ inst.prenom|default:"" }} {{ inst.nom|default:"" }}</span><br />
{% endif %}
{% if inst.telephone %}<span class="phone">{{ inst.telephone }}</span><br />{% endif %}
{% if inst.mail %}<span class="email">{{ inst.mail }}</span>{% endif %}
</p>
{% endif %}
{% if inst.telephone %}<span class="phone">{{ inst.telephone }}</span><br />{% endif %}
{% if inst.mail %}<span class="email">{{ inst.mail }}</span>{% endif %}
</p>
{% endif %}
{% endwith %}

View File

@ -8,14 +8,14 @@
{% for dossier in json.data.demandeAsg %}
<div class="apa-dossier">
<h3>{{ dossier.demande.type }} ({{ dossier.demande.nature }})</h3>
<ul>
<li>Aide attribuée le {{ dossier.suivi.dateDecision|parse_date|date:"j F Y" }}</li>
<li>Début des droits : {{ dossier.droit.dateDebut|parse_date|date:"j F Y" }}</li>
<li>Fin des droits : {{ dossier.droit.dateFin|parse_date|date:"j F Y" }}</li>
</ul>
<p><a href="apa-droits/?user_id={{ user_id }}&detail_id={{ forloop.counter }}">
→ consulter le dossier</a></p>
<h3>{{ dossier.demande.type }} ({{ dossier.demande.nature }})</h3>
<ul>
<li>Aide attribuée le {{ dossier.suivi.dateDecision|parse_date|date:"j F Y" }}</li>
<li>Début des droits : {{ dossier.droit.dateDebut|parse_date|date:"j F Y" }}</li>
<li>Fin des droits : {{ dossier.droit.dateFin|parse_date|date:"j F Y" }}</li>
</ul>
<p><a href="apa-droits/?user_id={{ user_id }}&detail_id={{ forloop.counter }}">
→ consulter le dossier</a></p>
</div>
{% empty %}
@ -31,101 +31,101 @@
<div>
{% with individu=user_info.data.individu %}
<div class="grid-2-3 individu">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p><span class="label">Numéro classothèque :</span> {{ individu.apa.classotheque }}</p>
</div>
{% endwith %}
{% for dossier in json.data.demandeAsg %}
{% if forloop.counter|floatformat == detail_id %}
<div class="grid-2-3 dossier">
<h3>
Demande {{ dossier.demande.type }} / {{ dossier.demande.nature }}
</h3>
<p>
Votre dossier a été déposé le <b>{{ dossier.complementDossier.dateDepot|parse_date|date:"j F Y" }}</b>
{% if dossier.complementDossier.dateArrivee %}/ arrivé le {{ dossier.complementDossier.dateArrivee|parse_date|date:"j F Y" }}{% endif %}
</p>
<p>
Votre dossier est complet depuis le <b>{{ dossier.complementDossier.dateDossierComplet|parse_date|date:"j F Y" }}</b>
</p>
<p>
Vos droits sont valables du <b>{{ dossier.droit.dateDebut|parse_date|date:"j F Y" }}</b> au
<b>{{ dossier.droit.dateFin|parse_date|date:"j F Y" }}</b>
</p>
<p>
Votre taux de participation est de <b>{{ dossier.bilan.pourcentageTM|floatformat:"2" }} %</b>
</p>
<p>
Votre degré de dépendance est le suivant : <b>GIR {{ dossier.gir.gir }}</b>
{# (évalué le {{ dossier.gir.dateEvaluation|parse_date|date:"j F Y" }} / {{dossier.gir.type}}) #}
</p>
<p>
<b>Décision</b> : Accepté le {{ dossier.suivi.dateDecision|parse_date|date:"j F Y" }}<br />
</p>
</div> <!-- grid-2-3 -->
<div class="grid-1-3 contact">
{% include "combo/json/apa-contact.html" with individu=user_info.data.individu dossier=dossier %}
{% with individu=user_info.data.individu %}
<div class="grid-2-3 individu">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p><span class="label">Numéro classothèque :</span> {{ individu.apa.classotheque }}</p>
</div>
{% endwith %}
<table class="pk-data-table pk-table-headers pk-table-zebra">
<thead>
<tr>
{% for column in columns|default:"periode prestation quantite montant participation versement destinataire"|split %}
{% if column == "periode" %}<th>Période</th>
{% elif column == "prestation" %}<th>Prestation</th>
{% elif column == "quantite" %}<th>Quantité</th>
{% elif column == "montant" %}<th>Montant accordé</th>
{% elif column == "participation" %}<th>Participation du bénéficiaire</th>
{% elif column == "versement" %}<th>Versement</th>
{% elif column == "mode" %}<th>Mode de règlement</th>
{% elif column == "destinataire" %}<th>Destinataire du paiement</th>
{% endif %}
{% endfor %}
</tr>
</thead>
<tbody>
{% for presta in dossier.prestationAccordeeAsg %}
<tr>
{% for column in columns|default:"periode prestation quantite montant participation versement destinataire"|split %}
{% if column == "periode" %}
<td>
{% if presta.periode.dateEffet %}{% if presta.periode.dateFin %}du {%endif %}{{ presta.periode.dateEffet|parse_date|date:"j/n/Y" }}{% endif %}
{% if presta.periode.dateFin %}{% if not presta.periode.dateEffet %}jusqu{% endif %}au {{ presta.periode.dateFin|parse_date|date:"j/n/Y" }}{% endif %}
</td>
{% elif column == "prestation" %}
<td nowrap>{{ presta.prestation }}{% if presta.tiers.type %}<br/>({{ presta.tiers.type }}){% endif %}</td>
{% elif column == "quantite" %}
<td>{{ presta.quantite|default:"non renseigné" }}</td>
{% elif column == "montant" %}
<td>{{ presta.montant.accorde|default:"0"|floatformat:2 }} €</td>
{% elif column == "participation" %}
<td>{{ presta.montant.participation|default:"0"|floatformat:2 }} €</td>
{% elif column == "versement" %}
<td>{{ presta.montant.verse|default:"0"|floatformat:2 }} €</td>
{% elif column == "mode" %}
<td>{{ presta.attributaire.tiersComptable.modeReglement|default:"non renseigné" }}</td>
{% elif column == "destinataire" %}
<td>{{ presta.attributaire.identite|default:"non renseigné" }}
{% if presta.attributaire.type %}({{ presta.attributaire.type }}){% endif %}</td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% for dossier in json.data.demandeAsg %}
{% if forloop.counter|floatformat == detail_id %}
{% endif %}
{% endfor %}
<div class="grid-2-3 dossier">
<h3>
Demande {{ dossier.demande.type }} / {{ dossier.demande.nature }}
</h3>
<p>
Votre dossier a été déposé le <b>{{ dossier.complementDossier.dateDepot|parse_date|date:"j F Y" }}</b>
{% if dossier.complementDossier.dateArrivee %}/ arrivé le {{ dossier.complementDossier.dateArrivee|parse_date|date:"j F Y" }}{% endif %}
</p>
<p>
Votre dossier est complet depuis le <b>{{ dossier.complementDossier.dateDossierComplet|parse_date|date:"j F Y" }}</b>
</p>
<p>
Vos droits sont valables du <b>{{ dossier.droit.dateDebut|parse_date|date:"j F Y" }}</b> au
<b>{{ dossier.droit.dateFin|parse_date|date:"j F Y" }}</b>
</p>
<p>
Votre taux de participation est de <b>{{ dossier.bilan.pourcentageTM|floatformat:"2" }} %</b>
</p>
<p>
Votre degré de dépendance est le suivant : <b>GIR {{ dossier.gir.gir }}</b>
{# (évalué le {{ dossier.gir.dateEvaluation|parse_date|date:"j F Y" }} / {{dossier.gir.type}}) #}
</p>
<p>
<b>Décision</b> : Accepté le {{ dossier.suivi.dateDecision|parse_date|date:"j F Y" }}<br />
</p>
</div> <!-- grid-2-3 -->
<div class="grid-1-3 contact">
{% include "combo/json/apa-contact.html" with individu=user_info.data.individu dossier=dossier %}
</div>
<table class="pk-data-table pk-table-headers pk-table-zebra">
<thead>
<tr>
{% for column in columns|default:"periode prestation quantite montant participation versement destinataire"|split %}
{% if column == "periode" %}<th>Période</th>
{% elif column == "prestation" %}<th>Prestation</th>
{% elif column == "quantite" %}<th>Quantité</th>
{% elif column == "montant" %}<th>Montant accordé</th>
{% elif column == "participation" %}<th>Participation du bénéficiaire</th>
{% elif column == "versement" %}<th>Versement</th>
{% elif column == "mode" %}<th>Mode de règlement</th>
{% elif column == "destinataire" %}<th>Destinataire du paiement</th>
{% endif %}
{% endfor %}
</tr>
</thead>
<tbody>
{% for presta in dossier.prestationAccordeeAsg %}
<tr>
{% for column in columns|default:"periode prestation quantite montant participation versement destinataire"|split %}
{% if column == "periode" %}
<td>
{% if presta.periode.dateEffet %}{% if presta.periode.dateFin %}du {%endif %}{{ presta.periode.dateEffet|parse_date|date:"j/n/Y" }}{% endif %}
{% if presta.periode.dateFin %}{% if not presta.periode.dateEffet %}jusqu{% endif %}au {{ presta.periode.dateFin|parse_date|date:"j/n/Y" }}{% endif %}
</td>
{% elif column == "prestation" %}
<td nowrap>{{ presta.prestation }}{% if presta.tiers.type %}<br/>({{ presta.tiers.type }}){% endif %}</td>
{% elif column == "quantite" %}
<td>{{ presta.quantite|default:"non renseigné" }}</td>
{% elif column == "montant" %}
<td>{{ presta.montant.accorde|default:"0"|floatformat:2 }} €</td>
{% elif column == "participation" %}
<td>{{ presta.montant.participation|default:"0"|floatformat:2 }} €</td>
{% elif column == "versement" %}
<td>{{ presta.montant.verse|default:"0"|floatformat:2 }} €</td>
{% elif column == "mode" %}
<td>{{ presta.attributaire.tiersComptable.modeReglement|default:"non renseigné" }}</td>
{% elif column == "destinataire" %}
<td>{{ presta.attributaire.identite|default:"non renseigné" }}
{% if presta.attributaire.type %}({{ presta.attributaire.type }}){% endif %}</td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endfor %}
</div>
{% endif %}

View File

@ -8,36 +8,36 @@
{% for dossier in json.data.demandeAsg %}
<div class="apa-dossier">
<h3>{{ dossier.demande.type }} ({{ dossier.demande.nature }})</h3>
<ul>
{% if dossier.complementDossier.dateArrivee %}
<li>Date darrivée : {{ dossier.complementDossier.dateArrivee|parse_date|date:"j F Y" }}</li>
{% endif %}
{% if dossier.complementDossier.dateDossierComplet %}
<li>Date de dossier complet : {{ dossier.complementDossier.dateDossierComplet|parse_date|date:"j F Y" }}</li>
{% endif %}
<h3>{{ dossier.demande.type }} ({{ dossier.demande.nature }})</h3>
<ul>
{% if dossier.complementDossier.dateArrivee %}
<li>Date darrivée : {{ dossier.complementDossier.dateArrivee|parse_date|date:"j F Y" }}</li>
{% endif %}
{% if dossier.complementDossier.dateDossierComplet %}
<li>Date de dossier complet : {{ dossier.complementDossier.dateDossierComplet|parse_date|date:"j F Y" }}</li>
{% endif %}
{% if dossier.visite.date %}
<li><strong>
Visite le {{ dossier.visite.date|parse_date|date:"j F Y" }} à {{ dossier.visite.heure|strptime:"%H%M"|date:"H:i" }}
</strong></li>
{% endif %}
{% if dossier.visite.date %}
<li><strong>
Visite le {{ dossier.visite.date|parse_date|date:"j F Y" }} à {{ dossier.visite.heure|strptime:"%H%M"|date:"H:i" }}
</strong></li>
{% endif %}
<li>Décision : {{ dossier.suivi.decision }}
{% if dossier.suivi.date %}
(le {{ dossier.suivi.decision|parse_date|date:"j F Y" }})
{% endif %}
</li>
<li>Décision : {{ dossier.suivi.decision }}
{% if dossier.suivi.date %}
(le {{ dossier.suivi.decision|parse_date|date:"j F Y" }})
{% endif %}
</li>
{% if dossier.droit.dateDebut %}
<li>Début des droits : {{ dossier.droit.dateDebut|parse_date|date:"j F Y" }}</li>
{% endif %}
{% if dossier.droit.dateFin %}
<li>Fin des droits : {{ dossier.droit.dateFin|parse_date|date:"j F Y" }}</li>
{% endif %}
</ul>
<p><a href="apa-historique/?user_id={{ user_id }}&detail_id={{ forloop.counter }}">
→ consulter le dossier</a></p>
{% if dossier.droit.dateDebut %}
<li>Début des droits : {{ dossier.droit.dateDebut|parse_date|date:"j F Y" }}</li>
{% endif %}
{% if dossier.droit.dateFin %}
<li>Fin des droits : {{ dossier.droit.dateFin|parse_date|date:"j F Y" }}</li>
{% endif %}
</ul>
<p><a href="apa-historique/?user_id={{ user_id }}&detail_id={{ forloop.counter }}">
→ consulter le dossier</a></p>
</div>
{% empty %}
@ -52,54 +52,54 @@
<div>
{% with individu=user_info.data.individu %}
<div class="grid-2-3 individu">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p><span class="label">Numéro classothèque :</span> {{ individu.apa.classotheque }}</p>
</div>
{% endwith %}
{% for dossier in json.data.demandeAsg %}
{% if forloop.counter|floatformat == detail_id %}
<div class="grid-2-3 dossier">
<h3>
Demande {{ dossier.demande.type }} / {{ dossier.demande.nature }}
</h3>
{% if dossier.complementDossier.dateArrivee %}
<p>Dossier arrivé le {{ dossier.complementDossier.dateArrivee|parse_date|date:"j F Y" }}</p>
{% endif %}
{% if dossier.complementDossier.dateDossierComplet %}
<p>Dossier complet le {{ dossier.complementDossier.dateDossierComplet|parse_date|date:"j F Y" }}</p>
{% endif %}
<p>
<strong>Décision : {{ dossier.suivi.decision }}</strong> le
{{ dossier.suivi.dateDecision|parse_date|date:"j F Y" }}
</p>
{% if dossier.droit.dateDebut %}
<p>Début des droits : {{ dossier.droit.dateDebut|parse_date|date:"j F Y" }}
{% endif %}
{% if dossier.droit.dateFin %}
<p>Fin des droits : {{ dossier.droit.dateFin|parse_date|date:"j F Y" }}
{% endif %}
</div> <!-- grid-2-3 -->
<div class="grid-1-3 contact">
{% with individu=user_info.data.individu %}
{% include "combo/json/apa-contact.html" with individu=individu dossier=dossier %}
{% endwith %}
{% with individu=user_info.data.individu %}
<div class="grid-2-3 individu">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p><span class="label">Numéro classothèque :</span> {{ individu.apa.classotheque }}</p>
</div>
{% endwith %}
{% endif %}
{% empty %}
<p>Pas de demande en cours</p>
{% endfor %}
{% for dossier in json.data.demandeAsg %}
{% if forloop.counter|floatformat == detail_id %}
<div class="grid-2-3 dossier">
<h3>
Demande {{ dossier.demande.type }} / {{ dossier.demande.nature }}
</h3>
{% if dossier.complementDossier.dateArrivee %}
<p>Dossier arrivé le {{ dossier.complementDossier.dateArrivee|parse_date|date:"j F Y" }}</p>
{% endif %}
{% if dossier.complementDossier.dateDossierComplet %}
<p>Dossier complet le {{ dossier.complementDossier.dateDossierComplet|parse_date|date:"j F Y" }}</p>
{% endif %}
<p>
<strong>Décision : {{ dossier.suivi.decision }}</strong> le
{{ dossier.suivi.dateDecision|parse_date|date:"j F Y" }}
</p>
{% if dossier.droit.dateDebut %}
<p>Début des droits : {{ dossier.droit.dateDebut|parse_date|date:"j F Y" }}
{% endif %}
{% if dossier.droit.dateFin %}
<p>Fin des droits : {{ dossier.droit.dateFin|parse_date|date:"j F Y" }}
{% endif %}
</div> <!-- grid-2-3 -->
<div class="grid-1-3 contact">
{% with individu=user_info.data.individu %}
{% include "combo/json/apa-contact.html" with individu=individu dossier=dossier %}
{% endwith %}
</div>
{% endif %}
{% empty %}
<p>Pas de demande en cours</p>
{% endfor %}
</div>
{% endif %}

View File

@ -8,38 +8,38 @@
{% for dossier in json.data.demandeAsg %}
<div class="apa-dossier">
<h3>{{ dossier.demande.type }} ({{ dossier.demande.nature }})</h3>
<ul>
{% if dossier.complementDossier.dateArrivee %}
<li>Date darrivée : {{ dossier.complementDossier.dateArrivee|parse_date|date:"j F Y" }}</li>
{% endif %}
{% if dossier.complementDossier.dateDossierComplet %}
<li>Date de dossier complet : {{ dossier.complementDossier.dateDossierComplet|parse_date|date:"j F Y" }}</li>
{% endif %}
<h3>{{ dossier.demande.type }} ({{ dossier.demande.nature }})</h3>
<ul>
{% if dossier.complementDossier.dateArrivee %}
<li>Date darrivée : {{ dossier.complementDossier.dateArrivee|parse_date|date:"j F Y" }}</li>
{% endif %}
{% if dossier.complementDossier.dateDossierComplet %}
<li>Date de dossier complet : {{ dossier.complementDossier.dateDossierComplet|parse_date|date:"j F Y" }}</li>
{% endif %}
{% if dossier.visite.date %}
<li><strong>
Visite le {{ dossier.visite.date|parse_date|date:"j F Y" }} à {{ dossier.visite.heure|strptime:"%H%M"|date:"H:i" }}
</strong></li>
{% endif %}
{% if dossier.visite.date %}
<li><strong>
Visite le {{ dossier.visite.date|parse_date|date:"j F Y" }} à {{ dossier.visite.heure|strptime:"%H%M"|date:"H:i" }}
</strong></li>
{% endif %}
<li>Décision : {{ dossier.suivi.decision }}
{% if dossier.suivi.date %}
(le {{ dossier.suivi.decision|parse_date|date:"j F Y" }})
{% endif %}
</li>
<li>Décision : {{ dossier.suivi.decision }}
{% if dossier.suivi.date %}
(le {{ dossier.suivi.decision|parse_date|date:"j F Y" }})
{% endif %}
</li>
{% if dossier.droit.dateDebut %}
<li>Début des droits : {{ dossier.droit.dateDebut|parse_date|date:"j F Y" }}</li>
{% endif %}
{% if dossier.droit.dateFin %}
<li>Fin des droits : {{ dossier.droit.dateFin|parse_date|date:"j F Y" }}</li>
{% endif %}
</ul>
<p>
<a href="apa-instruction/?user_id={{ user_id }}&detail_id={{ forloop.counter }}">
→ consulter le dossier</a>
</p>
{% if dossier.droit.dateDebut %}
<li>Début des droits : {{ dossier.droit.dateDebut|parse_date|date:"j F Y" }}</li>
{% endif %}
{% if dossier.droit.dateFin %}
<li>Fin des droits : {{ dossier.droit.dateFin|parse_date|date:"j F Y" }}</li>
{% endif %}
</ul>
<p>
<a href="apa-instruction/?user_id={{ user_id }}&detail_id={{ forloop.counter }}">
→ consulter le dossier</a>
</p>
</div>
{% empty %}
@ -54,68 +54,68 @@
<div>
{% with individu=user_info.data.individu %}
<div class="grid-2-3 individu">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p><span class="label">Numéro classothèque :</span> {{ individu.apa.classotheque }}</p>
</div>
{% endwith %}
{% for dossier in json.data.demandeAsg %}
{% if forloop.counter|floatformat == detail_id %}
<div class="grid-2-3 dossier">
<h3>
Demande {{ dossier.demande.type }} / {{ dossier.demande.nature }}
</h3>
<p>
<strong>Dépôt :</strong> votre demande a été déposée le
{% if dossier.complementDossier.dateArrivee %}
{{ dossier.complementDossier.dateArrivee|parse_date|date:"j F Y" }}
{% else %}
<em>date inconnue</em>
{% endif %}
</p>
<p>
<strong>Instruction en cours</strong>
</p>
{% if dossier.complementDossier.dateDossierComplet %}
{% with date=dossier.complementDossier.dateDossierComplet|parse_date|date:"j F Y" visite=dossier.visite.date %}
<p>
{% if not visite %}
<font color="green"><strong>Dossier complet</strong></font> le {{ date }}<br/>
Après analyse, votre dossier a été déclaré complet le {{ date }}
{% else %}
<strong>Dossier complet</strong> le {{ date }}<br/>
{% endif %}
</p>
{% endwith %}
{% endif %}
{% if dossier.visite.date %}
{% with date=dossier.visite.date|parse_date|date:"j F Y" %}
<p>
<font color="green"><strong>Visite programmée</strong></font> le {{ date }}<br />
Une visite à votre domicile est programmée le {{ date }} à
{{ dossier.visite.heure|strptime:"%H%M"|date:"H:i" }}
</p>
{% endwith %}
{% endif %}
</div> <!-- grid-2-3 -->
<div class="grid-1-3 contact">
{% with individu=user_info.data.individu %}
{% include "combo/json/apa-contact.html" with individu=individu dossier=dossier %}
{% endwith %}
{% with individu=user_info.data.individu %}
<div class="grid-2-3 individu">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p><span class="label">Numéro classothèque :</span> {{ individu.apa.classotheque }}</p>
</div>
{% endwith %}
{% endif %}
{% empty %}
<p>Pas de demande en cours</p>
{% endfor %}
{% for dossier in json.data.demandeAsg %}
{% if forloop.counter|floatformat == detail_id %}
<div class="grid-2-3 dossier">
<h3>
Demande {{ dossier.demande.type }} / {{ dossier.demande.nature }}
</h3>
<p>
<strong>Dépôt :</strong> votre demande a été déposée le
{% if dossier.complementDossier.dateArrivee %}
{{ dossier.complementDossier.dateArrivee|parse_date|date:"j F Y" }}
{% else %}
<em>date inconnue</em>
{% endif %}
</p>
<p>
<strong>Instruction en cours</strong>
</p>
{% if dossier.complementDossier.dateDossierComplet %}
{% with date=dossier.complementDossier.dateDossierComplet|parse_date|date:"j F Y" visite=dossier.visite.date %}
<p>
{% if not visite %}
<font color="green"><strong>Dossier complet</strong></font> le {{ date }}<br/>
Après analyse, votre dossier a été déclaré complet le {{ date }}
{% else %}
<strong>Dossier complet</strong> le {{ date }}<br/>
{% endif %}
</p>
{% endwith %}
{% endif %}
{% if dossier.visite.date %}
{% with date=dossier.visite.date|parse_date|date:"j F Y" %}
<p>
<font color="green"><strong>Visite programmée</strong></font> le {{ date }}<br />
Une visite à votre domicile est programmée le {{ date }} à
{{ dossier.visite.heure|strptime:"%H%M"|date:"H:i" }}
</p>
{% endwith %}
{% endif %}
</div> <!-- grid-2-3 -->
<div class="grid-1-3 contact">
{% with individu=user_info.data.individu %}
{% include "combo/json/apa-contact.html" with individu=individu dossier=dossier %}
{% endwith %}
</div>
{% endif %}
{% empty %}
<p>Pas de demande en cours</p>
{% endfor %}
</div>
{% endif %}

View File

@ -1,9 +1,9 @@
<div class="links-list">
<ul>
{% for user in json.data %}{% if user_id == user.id %}
<li>
<a href="/apa/apa-details/?user_id={{ user_id }}">Retour au dossier de {{ user.text }}</a>
</li>
<li>
<a href="/apa/apa-details/?user_id={{ user_id }}">Retour au dossier de {{ user.text }}</a>
</li>
{% endif %}{% endfor %}
</ul>
</div>

View File

@ -1,11 +1,11 @@
<div class="links-list">
<ul>
{% if json.data %}
{% for user in json.data|dictsort:"id" %}
<li>
<a href="/apa/apa-details/?user_id={{ user.id }}">{{ user.text }}</a>
</li>
{% endfor %}
{% for user in json.data|dictsort:"id" %}
<li>
<a href="/apa/apa-details/?user_id={{ user.id }}">{{ user.text }}</a>
</li>
{% endfor %}
{% endif %}
</ul>
</div>

View File

@ -3,62 +3,62 @@
<h2>Le bénéficiaire</h2>
<div class="apa-user-info">
{% with individu=json.data.individu %}
{% with individu=json.data.individu %}
<p class="date-situation"><em>Situation à la date du {% now "j F Y" %}</em></p>
<p class="date-situation"><em>Situation à la date du {% now "j F Y" %}</em></p>
<div class="individu">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<div class="individu">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p class="birthdate">
<span class="label">Date de naissance :</span> {{ individu.dateNaissance|parse_date|date:"j F Y" }}
</p>
<p class="birthdate">
<span class="label">Date de naissance :</span> {{ individu.dateNaissance|parse_date|date:"j F Y" }}
</p>
<p class="address">
<span class="label">Adresse :</span>
{% with adresse=individu.adresse %}
{{ adresse.numeroLieu }} {{ adresse.natureLieu|default:"" }}
{{ adresse.nomLieu }} {{ adresse.finLieu|default:"" }}<br />
{% if adresse.complementLieu %}{{ adresse.complementLieu }}<br />{% endif %}
{% if adresse.cedex %}Cedex {{ adresse.cedex }}<br />{% endif %}
{{ adresse.codePostal }} {{ adresse.commune }}
{% endwith %}
</p>
<p class="contact-info">
<span class="label email">Adresse électronique :</span> {{ individu.contact.mail|default:"non renseignée" }}<br />
<span class="label phone">Téléphone :</span> {{ individu.contact.telephone|default:"non renseigné" }}
</p>
</div>
{% if individu.tutelles.tutelle %}
<div class="tutelles">
<h3>Tutelles</h3>
{% for tutelle in individu.tutelles.tutelle %}
<p>
{% if tutelle.mesure %}<em>{{ tutelle.mesure }}</em><br />{% endif %}
{{ tutelle.type }} : {{ tutelle.identite }}
{% if tutelle.natureAccord %}({{ tutelle.natureAccord }}){% endif %}
<br />
{% with adresse=tutelle.adresse %}
<p class="address">
<span class="label">Adresse :</span>
{% with adresse=individu.adresse %}
{{ adresse.numeroLieu }} {{ adresse.natureLieu|default:"" }}
{{ adresse.nomLieu }} {{ adresse.finLieu|default:"" }}<br />
{{ adresse.nomLieu }} {{ adresse.finLieu|default:"" }}<br />
{% if adresse.complementLieu %}{{ adresse.complementLieu }}<br />{% endif %}
{% if adresse.cedex %}Cedex {{ adresse.cedex }}<br />{% endif %}
{{ adresse.codePostal }} {{ adresse.commune }}
{% endwith %}
<br />
{% if tutelle.dateEffet %}
<strong>Date deffet</strong> :
{{ tutelle.dateEffet|parse_date|date:"j F Y" }}<br />
{% endif %}
{% if tutelle.dateFin %}
<strong>Date de fin</strong> :
{{ tutelle.dateFin|parse_date|date:"j F Y" }}<br />
{% endif %}
{% endfor %}
</div>
{% endif %}
</p>
{% endwith %}
<p class="contact-info">
<span class="label email">Adresse électronique :</span> {{ individu.contact.mail|default:"non renseignée" }}<br />
<span class="label phone">Téléphone :</span> {{ individu.contact.telephone|default:"non renseigné" }}
</p>
</div>
{% if individu.tutelles.tutelle %}
<div class="tutelles">
<h3>Tutelles</h3>
{% for tutelle in individu.tutelles.tutelle %}
<p>
{% if tutelle.mesure %}<em>{{ tutelle.mesure }}</em><br />{% endif %}
{{ tutelle.type }} : {{ tutelle.identite }}
{% if tutelle.natureAccord %}({{ tutelle.natureAccord }}){% endif %}
<br />
{% with adresse=tutelle.adresse %}
{{ adresse.numeroLieu }} {{ adresse.natureLieu|default:"" }}
{{ adresse.nomLieu }} {{ adresse.finLieu|default:"" }}<br />
{% if adresse.complementLieu %}{{ adresse.complementLieu }}<br />{% endif %}
{% if adresse.cedex %}Cedex {{ adresse.cedex }}<br />{% endif %}
{{ adresse.codePostal }} {{ adresse.commune }}
{% endwith %}
<br />
{% if tutelle.dateEffet %}
<strong>Date deffet</strong> :
{{ tutelle.dateEffet|parse_date|date:"j F Y" }}<br />
{% endif %}
{% if tutelle.dateFin %}
<strong>Date de fin</strong> :
{{ tutelle.dateFin|parse_date|date:"j F Y" }}<br />
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endwith %}
</div>

View File

@ -4,19 +4,19 @@
<div class="apa-users clearfix">
{% for item in json.data|dictsort:"id" %}
{% with individu=item.information.individu %}
<div class="apa-user apa-user-{{ individu.civilite|slugify }} {{ apa_users_grid|default:"grid-1-2" }}">
<a class="apa-user-link" href="apa-details/?user_id={{ item.id }}">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p>
{{ individu.adresse.numeroLieu }} {{ individu.adresse.nomLieu }}<br />
{% if individu.adresse.complementLieu %}{{ individu.adresse.complementLieu }}<br />{% endif %}
{{ individu.adresse.codePostal }} {{ individu.adresse.commune }}
</p>
</a>
<a class="remove" href="{{ eservices_url }}suppression-du-lien-avec-un-dossier-apa/?user_id={{ item.id }}&cancelurl={{ site_base }}{{ cell.page.get_online_url }}">×</a>
</div>
{% endwith %}
{% endfor %}
{% for item in json.data|dictsort:"id" %}
{% with individu=item.information.individu %}
<div class="apa-user apa-user-{{ individu.civilite|slugify }} {{ apa_users_grid|default:"grid-1-2" }}">
<a class="apa-user-link" href="apa-details/?user_id={{ item.id }}">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p>
{{ individu.adresse.numeroLieu }} {{ individu.adresse.nomLieu }}<br />
{% if individu.adresse.complementLieu %}{{ individu.adresse.complementLieu }}<br />{% endif %}
{{ individu.adresse.codePostal }} {{ individu.adresse.commune }}
</p>
</a>
<a class="remove" href="{{ eservices_url }}suppression-du-lien-avec-un-dossier-apa/?user_id={{ item.id }}&cancelurl={{ site_base }}{{ cell.page.get_online_url }}">×</a>
</div>
{% endwith %}
{% endfor %}
</div>

View File

@ -1,254 +1,254 @@
{% if json.extra_data %}
<h2>Agenda de l'année scolaire {{ json.extra_data.school_year }}</h2>
<div class="caluire-agenda-cell caluire-agenda-cell-{{ cell.pk }}">
{% with first_monday=json.extra_data.start_date|adjust_to_week_monday %}
{% with last_day=json.extra_data.end_date|adjust_to_week_monday|add_days:6 %}
{% now 'Y-m-W' as current_week %}
{% spaceless %}
<button class="caluire-agenda-cell--previous-week"></button>
<div class="caluire-agenda-cell--week-list">
<div class="caluire-agenda-cell--slider">
{% for day in first_monday|iterate_days_until:last_day %}
{% if day.weekday == 0 %}
{% with sunday=day|add_days:6 %}
<div class="caluire-agenda-cell--week-title {% if current_week == day|date:"Y-m-W" %}current{% endif %}"
data-edit-url="{{ eservices_url }}famille/gerer-mes-reservations/tryauth?child_id={{ child_id }}&reference_year={{ first_monday.year }}&current={{ day|adjust_to_week_monday|date:"Y-m-d" }}">
Du {{ day|date:"d/m" }} au {{ sunday|date:"d/m" }}
</div>
{% endwith %}
{% endif %}
<div class="caluire-agenda-cell--day-item" data-weekday="{{ day.weekday }}">
<div class="caluire-agenda-cell--day-title" >
{{ day|date:"l d/m" }}
</div>
{% with day_str=day|date:"Y-m-d" %}
{% for item in json.data %}
{% if item.details.JOURDATE == day_str %}
<div class="caluire-agenda-cell--activity-item {% if item.disabled %}disabled{% endif %}">
<div class="caluire-agenda-cell--activity-status {{ item.details.status_color }}"/></div>
<div class="caluire-agenda-cell--activity-label"/>{{ item.details.activity_label }}</div>
<h2>Agenda de l'année scolaire {{ json.extra_data.school_year }}</h2>
<div class="caluire-agenda-cell caluire-agenda-cell-{{ cell.pk }}">
{% with first_monday=json.extra_data.start_date|adjust_to_week_monday %}
{% with last_day=json.extra_data.end_date|adjust_to_week_monday|add_days:6 %}
{% now 'Y-m-W' as current_week %}
{% spaceless %}
<button class="caluire-agenda-cell--previous-week"></button>
<div class="caluire-agenda-cell--week-list">
<div class="caluire-agenda-cell--slider">
{% for day in first_monday|iterate_days_until:last_day %}
{% if day.weekday == 0 %}
{% with sunday=day|add_days:6 %}
<div class="caluire-agenda-cell--week-title {% if current_week == day|date:"Y-m-W" %}current{% endif %}"
data-edit-url="{{ eservices_url }}famille/gerer-mes-reservations/tryauth?child_id={{ child_id }}&reference_year={{ first_monday.year }}&current={{ day|adjust_to_week_monday|date:"Y-m-d" }}">
Du {{ day|date:"d/m" }} au {{ sunday|date:"d/m" }}
</div>
{% endif %}
{% endfor %}
{% endwith %}
<div class="caluire-agenda-cell--day-no-activity">
Pas d'activité ce jour.
</div>
{% endwith %}
{% endif %}
<div class="caluire-agenda-cell--day-item" data-weekday="{{ day.weekday }}">
<div class="caluire-agenda-cell--day-title" >
{{ day|date:"l d/m" }}
</div>
{% with day_str=day|date:"Y-m-d" %}
{% for item in json.data %}
{% if item.details.JOURDATE == day_str %}
<div class="caluire-agenda-cell--activity-item {% if item.disabled %}disabled{% endif %}">
<div class="caluire-agenda-cell--activity-status {{ item.details.status_color }}"/></div>
<div class="caluire-agenda-cell--activity-label"/>{{ item.details.activity_label }}</div>
</div>
{% endif %}
{% endfor %}
{% endwith %}
<div class="caluire-agenda-cell--day-no-activity">
Pas d'activité ce jour.
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
<button class="caluire-agenda-cell--next-week"></button>
<a class="pk-button caluire-agenda-cell--edit-btn">
Modifier l'agenda
</a>
{% endspaceless %}
{% endwith %}
{% endwith %}
<style>
.caluire-agenda-cell {
margin-top: 1em;
display: grid;
grid-template-columns: repeat(3, auto);
grid-template-rows: repeat(2, auto);
justify-items: left;
--min-column-width: 250;
}
.caluire-agenda-cell--previous-week,
.caluire-agenda-cell--next-week {
height: 3em;
width: 3em;
}
.caluire-agenda-cell--next-week {
margin-left: 1rem;
}
.caluire-agenda-cell--edit-btn {
grid-column: 2;
grid-row: 2;
}
.caluire-agenda-cell--week-list {
overflow: hidden;
margin-bottom: 2rem;
width: 100%;
}
.caluire-agenda-cell--slider {
column-gap: 0px;
display: grid;
grid-auto-columns: 0px;
grid-auto-rows: 0px;
grid-auto-flow: column;
position: relative;
}
.caluire-agenda-cell--week-item:nth-child(even) {
background: #fafafa;
}
.caluire-agenda-cell--week-title {
border-bottom: 1px solid #888;
font-weight: bold;
margin-bottom: 1rem;
display: flex;
justify-content: center;
align-items: center;
height: 3.2rem;
}
.caluire-agenda-cell--day-item {
margin: 0 1rem;
}
.caluire-agenda-cell--day-title {
border-bottom: 1px solid #888;
margin: 1rem 0;
font-weight: bold;
}
.caluire-agenda-cell--day-no-activity {
color: #888;
}
.caluire-agenda-cell--activity-item + .caluire-agenda-cell--day-no-activity {
display: none;
}
.caluire-agenda-cell--activity-item {
display: flex;
align-items: baseline;
margin: 0.3rem 0;
}
.caluire-agenda-cell--activty-item.disabled {
color: #888;
}
.caluire-agenda-cell--activity-status {
min-height: calc(0.66rem + 2px);
min-width: calc(0.66rem + 2px);
background: transparent;
border: 1px solid #aaa;
border-radius: 2px;
margin-right: 1rem;
}
.caluire-agenda-cell--activity-label {
flex-grow: 1;
}
.caluire-agenda-cell--activity-status.green {
background: #3c3;
}
.caluire-agenda-cell--activity-status.grey {
background: #aaa;
}
.caluire-agenda-cell--activity-status.orange {
background: orange;
}
.caluire-agenda-cell--activity-status.red {
background: red;
}
.caluire-agenda-cell--activity-status.yellow {
background: yellow;
}
</style>
<script>
function initAgendaCell($cell) {
const $weekList = $('.caluire-agenda-cell--week-list', $cell);
const $slider = $('.caluire-agenda-cell--slider', $cell);
const $currentWeek = $('.caluire-agenda-cell--week-title.current', $cell);
const $nextWeekButton = $('.caluire-agenda-cell--next-week', $cell);
const $previousWeekButton = $('.caluire-agenda-cell--previous-week', $cell);
const $editAgendaBtn = $('.caluire-agenda-cell--edit-btn', $cell);
let $selectedWeek = $currentWeek;
function getPreviousWeek() { return $selectedWeek.prevAll('.caluire-agenda-cell--week-title:first'); }
function getNextWeek() { return $selectedWeek.nextAll('.caluire-agenda-cell--week-title:first'); }
function setCurrentWeek($week, enableTransition) {
if(!$week.length) {
return;
}
const currentOffset = $week[0].offsetLeft;
$slider.css({
'transform': `translate(-${currentOffset}px)`,
'transition': (enableTransition ? 'transform 0.5s' : '')
});
$selectedWeek = $week;
$nextWeekButton.prop('disabled', getNextWeek().length == 0);
$previousWeekButton.prop('disabled', getPreviousWeek().length == 0);
const selectedWeekIsInPast = $selectedWeek.nextAll('.caluire-agenda-cell--week-title.current').length;
$weekToEdit = selectedWeekIsInPast ? $currentWeek : $selectedWeek;
$editAgendaBtn.prop('href', $weekToEdit.attr('data-edit-url'));
}
function setPreviousWeek() { setCurrentWeek(getPreviousWeek(), true); }
function setNextWeek() { setCurrentWeek(getNextWeek(), true); }
$previousWeekButton.on('click', setPreviousWeek);
$nextWeekButton.on('click', setNextWeek);
let touchStartX = 0;
$cell.on('touchstart', (e) => {
touchStartX = e.changedTouches[0].screenX;
});
$cell.on('touchend', (e) => {
const touchEndX = e.changedTouches[0].screenX;
if (touchEndX - touchStartX < -30) {
setNextWeek();
} else if (touchEndX - touchStartX > 30) {
setPreviousWeek();
}
});
function updateColumnsWidth() {
const minWidth = $slider.css('--min-column-width');
const availableWidth = $weekList[0].offsetWidth;
let columnsWidth = availableWidth < minWidth ? availableWidth : availableWidth / Math.floor(availableWidth / minWidth);
$slider.css('grid-template-columns', `repeat(53, ${columnsWidth}px)`);
if($selectedWeek) {
// Update slider offset to bring it at the new position of the selectedWeek
setCurrentWeek($selectedWeek, false);
}
}
function hideEmptyDays() {
let nbRows = 8;
for(let i = 0; i < 7; ++i) {
const $days = $(`.caluire-agenda-cell--day-item[data-weekday=${i}]`, $cell);
const $activities = $('.caluire-agenda-cell--activity-item', $days);
if(!$activities.length) {
$days.css('display', 'none');
nbRows -= 1;
</div>
<button class="caluire-agenda-cell--next-week"></button>
<a class="pk-button caluire-agenda-cell--edit-btn">
Modifier l'agenda
</a>
{% endspaceless %}
{% endwith %}
{% endwith %}
<style>
.caluire-agenda-cell {
margin-top: 1em;
display: grid;
grid-template-columns: repeat(3, auto);
grid-template-rows: repeat(2, auto);
justify-items: left;
--min-column-width: 250;
}
$slider.css('grid-template-rows', `repeat(${nbRows}, auto`);
}
}
.caluire-agenda-cell--previous-week,
.caluire-agenda-cell--next-week {
height: 3em;
width: 3em;
}
hideEmptyDays();
new ResizeObserver(updateColumnsWidth).observe($weekList[0]);
addEventListener('resize', updateColumnsWidth);
}
.caluire-agenda-cell--next-week {
margin-left: 1rem;
}
.caluire-agenda-cell--edit-btn {
grid-column: 2;
grid-row: 2;
}
.caluire-agenda-cell--week-list {
overflow: hidden;
margin-bottom: 2rem;
width: 100%;
}
.caluire-agenda-cell--slider {
column-gap: 0px;
display: grid;
grid-auto-columns: 0px;
grid-auto-rows: 0px;
grid-auto-flow: column;
position: relative;
}
.caluire-agenda-cell--week-item:nth-child(even) {
background: #fafafa;
}
.caluire-agenda-cell--week-title {
border-bottom: 1px solid #888;
font-weight: bold;
margin-bottom: 1rem;
display: flex;
justify-content: center;
align-items: center;
height: 3.2rem;
}
.caluire-agenda-cell--day-item {
margin: 0 1rem;
}
.caluire-agenda-cell--day-title {
border-bottom: 1px solid #888;
margin: 1rem 0;
font-weight: bold;
}
.caluire-agenda-cell--day-no-activity {
color: #888;
}
.caluire-agenda-cell--activity-item + .caluire-agenda-cell--day-no-activity {
display: none;
}
.caluire-agenda-cell--activity-item {
display: flex;
align-items: baseline;
margin: 0.3rem 0;
}
.caluire-agenda-cell--activty-item.disabled {
color: #888;
}
.caluire-agenda-cell--activity-status {
min-height: calc(0.66rem + 2px);
min-width: calc(0.66rem + 2px);
background: transparent;
border: 1px solid #aaa;
border-radius: 2px;
margin-right: 1rem;
}
.caluire-agenda-cell--activity-label {
flex-grow: 1;
}
.caluire-agenda-cell--activity-status.green {
background: #3c3;
}
.caluire-agenda-cell--activity-status.grey {
background: #aaa;
}
.caluire-agenda-cell--activity-status.orange {
background: orange;
}
.caluire-agenda-cell--activity-status.red {
background: red;
}
.caluire-agenda-cell--activity-status.yellow {
background: yellow;
}
</style>
<script>
function initAgendaCell($cell) {
const $weekList = $('.caluire-agenda-cell--week-list', $cell);
const $slider = $('.caluire-agenda-cell--slider', $cell);
const $currentWeek = $('.caluire-agenda-cell--week-title.current', $cell);
const $nextWeekButton = $('.caluire-agenda-cell--next-week', $cell);
const $previousWeekButton = $('.caluire-agenda-cell--previous-week', $cell);
const $editAgendaBtn = $('.caluire-agenda-cell--edit-btn', $cell);
let $selectedWeek = $currentWeek;
function getPreviousWeek() { return $selectedWeek.prevAll('.caluire-agenda-cell--week-title:first'); }
function getNextWeek() { return $selectedWeek.nextAll('.caluire-agenda-cell--week-title:first'); }
function setCurrentWeek($week, enableTransition) {
if(!$week.length) {
return;
}
const currentOffset = $week[0].offsetLeft;
$slider.css({
'transform': `translate(-${currentOffset}px)`,
'transition': (enableTransition ? 'transform 0.5s' : '')
});
$selectedWeek = $week;
$nextWeekButton.prop('disabled', getNextWeek().length == 0);
$previousWeekButton.prop('disabled', getPreviousWeek().length == 0);
const selectedWeekIsInPast = $selectedWeek.nextAll('.caluire-agenda-cell--week-title.current').length;
$weekToEdit = selectedWeekIsInPast ? $currentWeek : $selectedWeek;
$editAgendaBtn.prop('href', $weekToEdit.attr('data-edit-url'));
}
function setPreviousWeek() { setCurrentWeek(getPreviousWeek(), true); }
function setNextWeek() { setCurrentWeek(getNextWeek(), true); }
$previousWeekButton.on('click', setPreviousWeek);
$nextWeekButton.on('click', setNextWeek);
let touchStartX = 0;
$cell.on('touchstart', (e) => {
touchStartX = e.changedTouches[0].screenX;
});
$cell.on('touchend', (e) => {
const touchEndX = e.changedTouches[0].screenX;
if (touchEndX - touchStartX < -30) {
setNextWeek();
} else if (touchEndX - touchStartX > 30) {
setPreviousWeek();
}
});
function updateColumnsWidth() {
const minWidth = $slider.css('--min-column-width');
const availableWidth = $weekList[0].offsetWidth;
let columnsWidth = availableWidth < minWidth ? availableWidth : availableWidth / Math.floor(availableWidth / minWidth);
$slider.css('grid-template-columns', `repeat(53, ${columnsWidth}px)`);
if($selectedWeek) {
// Update slider offset to bring it at the new position of the selectedWeek
setCurrentWeek($selectedWeek, false);
}
}
function hideEmptyDays() {
let nbRows = 8;
for(let i = 0; i < 7; ++i) {
const $days = $(`.caluire-agenda-cell--day-item[data-weekday=${i}]`, $cell);
const $activities = $('.caluire-agenda-cell--activity-item', $days);
if(!$activities.length) {
$days.css('display', 'none');
nbRows -= 1;
}
$slider.css('grid-template-rows', `repeat(${nbRows}, auto`);
}
}
hideEmptyDays();
new ResizeObserver(updateColumnsWidth).observe($weekList[0]);
addEventListener('resize', updateColumnsWidth);
}
initAgendaCell($('.caluire-agenda-cell-{{ cell.pk }}'));
initAgendaCell($('.caluire-agenda-cell-{{ cell.pk }}'));
</script>
</div>
</script>
</div>
{% endif %}

View File

@ -1,4 +1,4 @@
<h2>{{ json.data.PRENOM }} {{ json.data.NOM }}</h2>
<div>
<p>Des informations complémentaires sur votre enfant sont disponibles ci-dessous.</p>
<p>Des informations complémentaires sur votre enfant sont disponibles ci-dessous.</p>
</div>

View File

@ -1,9 +1,9 @@
{% now "n" as current_month %}{% if current_month in "678" %}
<h2>Prochaines inscriptions</h2>
<h2>Prochaines inscriptions</h2>
<div>
{% for activity in json.data.ACTIVITE %}
<p><b> {{ activity.LIBELLEACTIVITE }} </b></p>
{% endfor %}
</div>
<div>
{% for activity in json.data.ACTIVITE %}
<p><b> {{ activity.LIBELLEACTIVITE }} </b></p>
{% endfor %}
</div>
{% endif %}

View File

@ -1,32 +1,32 @@
{% with child=json %}
<h2>{{ child.data.text }}</h2>
<div>
<div class="grid-1-2">
<p><b>Informations sur votre enfant</b></p>
Date de naissance : {{ child.data.NAISSANCE|date }}<br/>
Genre : {% if child.data.SEXE == 'F' %}Féminin{% else %}Masculin{% endif %}<br/>
{% if schooling.data.SCOLAIRE %}
Ecole : {{ schooling.data.SCOLAIRE.LIBELLEECOLE }} <br/>
Classe : {{ schooling.data.SCOLAIRE.IDENTNIVEAU }}<br/>
<p><a href="{{ eservices_url }}famille/modifier-mon-dossier-unique-sante-de-mon-enfant/tryauth">Modifier une donnée de santé</a></p>
{% endif %}
</div><div class="grid-1-2">
<p><b> Les inscriptions en cours</b></p>
{% for activity in activities.data.ACTIVITE %}
<p>
{{ activity.LIBELLEACTIVITE }}<br />
{% if activity.ENTREE and activity.SORTIE%}
Du {{ activity.ENTREE|date:"d/m/Y" }} au {{ activity.SORTIE|date:"d/m/Y" }}
{% elif activity.ENTREE %}
A partir du {{ activity.ENTREE|date:"d/m/Y" }}
{% elif activity.SORTIE %}
Jusqu'au {{ activity.SORTIE|date:"d/m/Y" }}
{% endif %}
</p>
{% endfor %}
<p>
{% now "n" as current_month %}
{% if current_month in "678" %}<a class="pk-button" href="/espace-famille/child/{{ child.data.id }}">Inscriptions de l'an prochain</a>{% endif %}
<a class="pk-button" href="/espace-famille/child/{{ child.data.id }}">Voir l'agenda</a></p>
</div>
<h2>{{ child.data.text }}</h2>
<div>
<div class="grid-1-2">
<p><b>Informations sur votre enfant</b></p>
Date de naissance : {{ child.data.NAISSANCE|date }}<br/>
Genre : {% if child.data.SEXE == 'F' %}Féminin{% else %}Masculin{% endif %}<br/>
{% if schooling.data.SCOLAIRE %}
Ecole : {{ schooling.data.SCOLAIRE.LIBELLEECOLE }} <br/>
Classe : {{ schooling.data.SCOLAIRE.IDENTNIVEAU }}<br/>
<p><a href="{{ eservices_url }}famille/modifier-mon-dossier-unique-sante-de-mon-enfant/tryauth">Modifier une donnée de santé</a></p>
{% endif %}
</div><div class="grid-1-2">
<p><b> Les inscriptions en cours</b></p>
{% for activity in activities.data.ACTIVITE %}
<p>
{{ activity.LIBELLEACTIVITE }}<br />
{% if activity.ENTREE and activity.SORTIE%}
Du {{ activity.ENTREE|date:"d/m/Y" }} au {{ activity.SORTIE|date:"d/m/Y" }}
{% elif activity.ENTREE %}
A partir du {{ activity.ENTREE|date:"d/m/Y" }}
{% elif activity.SORTIE %}
Jusqu'au {{ activity.SORTIE|date:"d/m/Y" }}
{% endif %}
</p>
{% endfor %}
<p>
{% now "n" as current_month %}
{% if current_month in "678" %}<a class="pk-button" href="/espace-famille/child/{{ child.data.id }}">Inscriptions de l'an prochain</a>{% endif %}
<a class="pk-button" href="/espace-famille/child/{{ child.data.id }}">Voir l'agenda</a></p>
</div>
{% endwith %}

View File

@ -1,13 +1,13 @@
<h2>Ma Famille</h2>
<div>
<p>Identifiant famille </br>
<b>n° {{ json.data.RESPONSABLE1.FAMILLE.0.IDENTFAMILLE }}</b></br>
<a href="{{ eservices_url }}famille/supprimer-le-lien-avec-mon-compte-famille/tryauth">Supprimer la liaison avec mon dossier famille</a></p>
<p>Identifiant famille </br>
<b>n° {{ json.data.RESPONSABLE1.FAMILLE.0.IDENTFAMILLE }}</b></br>
<a href="{{ eservices_url }}famille/supprimer-le-lien-avec-mon-compte-famille/tryauth">Supprimer la liaison avec mon dossier famille</a></p>
<p><b>Adresse</b></br>
{{ json.data.RESPONSABLE1.ADRESSE.NORUE|default:"" }} {{ json.data.RESPONSABLE1.ADRESSE.ADRESSE1|default:"" }}</br>
{{ json.data.RESPONSABLE1.ADRESSE.CODEPOSTAL|default:"" }} {{ json.data.RESPONSABLE1.ADRESSE.VILLE|default:"" }}</br>
<a href="{{ eservices_url }}famille/modifier-mon-dossier-unique-changement-d-adresse/tryauth">Modifier l'adresse</a></br></br></br></br></br></br></p>
<p><b>Adresse</b></br>
{{ json.data.RESPONSABLE1.ADRESSE.NORUE|default:"" }} {{ json.data.RESPONSABLE1.ADRESSE.ADRESSE1|default:"" }}</br>
{{ json.data.RESPONSABLE1.ADRESSE.CODEPOSTAL|default:"" }} {{ json.data.RESPONSABLE1.ADRESSE.VILLE|default:"" }}</br>
<a href="{{ eservices_url }}famille/modifier-mon-dossier-unique-changement-d-adresse/tryauth">Modifier l'adresse</a></br></br></br></br></br></br></p>
<p><a class="pk-button" href="{{ eservices_url }}famille/modifier-mon-dossier-unique-autre-changement/tryauth">Autre changement</a></p>
<p><a class="pk-button" href="{{ eservices_url }}famille/modifier-mon-dossier-unique-autre-changement/tryauth">Autre changement</a></p>
</div>

View File

@ -1,16 +1,16 @@
<h2>Responsables</h2>
<div>
<p><b>Responsable du foyer</b>
<p>{{ json.data.RESPONSABLE1.CIVILITE|default:"" }} {{ json.data.RESPONSABLE1.PRENOM|default:"" }} {{ json.data.RESPONSABLE1.NOM|default:"" }}</br>
Tél : {{ json.data.RESPONSABLE1.TELFIXE|default:"" }} / Mob : {{ json.data.RESPONSABLE1.TELPORTABLE|default:"" }}</br>
Courriel : {{ json.data.RESPONSABLE1.MAIL|default:"" }}</br>
<a href="{{ eservices_url }}famille/modifier-mon-dossier-unique-telephone-et-courriel/tryauth">Modifier le téléphone ou courriel</a></p>
<p><b>Responsable du foyer</b>
<p>{{ json.data.RESPONSABLE1.CIVILITE|default:"" }} {{ json.data.RESPONSABLE1.PRENOM|default:"" }} {{ json.data.RESPONSABLE1.NOM|default:"" }}</br>
Tél : {{ json.data.RESPONSABLE1.TELFIXE|default:"" }} / Mob : {{ json.data.RESPONSABLE1.TELPORTABLE|default:"" }}</br>
Courriel : {{ json.data.RESPONSABLE1.MAIL|default:"" }}</br>
<a href="{{ eservices_url }}famille/modifier-mon-dossier-unique-telephone-et-courriel/tryauth">Modifier le téléphone ou courriel</a></p>
<p><b>Responsable du foyer</b>
<p>{{ json.data.RESPONSABLE2.CIVILITE|default:"" }} {{ json.data.RESPONSABLE2.PRENOM|default:"" }} {{ json.data.RESPONSABLE2.NOM|default:"" }}</br>
Tél : {{ json.data.RESPONSABLE2.TELFIXE|default:"" }} / Mob : {{ json.data.RESPONSABLE2.TELPORTABLE|default:"" }}</br>
Courriel : {{ json.data.RESPONSABLE2.MAIL|default:"" }}</br>
<a href="{{ eservices_url }}famille/modifier-mon-dossier-unique-telephone-et-courriel/tryauth">Modifier le téléphone ou courriel</a></p>
<p><b>Responsable du foyer</b>
<p>{{ json.data.RESPONSABLE2.CIVILITE|default:"" }} {{ json.data.RESPONSABLE2.PRENOM|default:"" }} {{ json.data.RESPONSABLE2.NOM|default:"" }}</br>
Tél : {{ json.data.RESPONSABLE2.TELFIXE|default:"" }} / Mob : {{ json.data.RESPONSABLE2.TELPORTABLE|default:"" }}</br>
Courriel : {{ json.data.RESPONSABLE2.MAIL|default:"" }}</br>
<a href="{{ eservices_url }}famille/modifier-mon-dossier-unique-telephone-et-courriel/tryauth">Modifier le téléphone ou courriel</a></p>
<p><a class="pk-button" href="{{ eservices_url }}famille/modifier-mon-dossier-unique-changement-de-situation-familiale/tryauth">Changement de situation familiale</a></p>
</div>
<p><a class="pk-button" href="{{ eservices_url }}famille/modifier-mon-dossier-unique-changement-de-situation-familiale/tryauth">Changement de situation familiale</a></p>
</div>

View File

@ -1,51 +1,51 @@
<h2>Informations abonnement stationnement</h2>
<div>
{% if not json.data %}
<div><p>Vous pouvez relier votre compte Publik à votre compte D-Park via <a href="{{pairing_form_url}}">ce formulaire</a>.</p></div>
{% else %}
<div class="dpark-infos">
{% for info in json.data %}
<h3>{{ info.text }}</h3>
<div class="dpark-info-identity section">
<h4>Identité</h4>
<div>
<div class="field"><span class="label">Civilité</span>: <span class="value">{% if info.demandeur_civilite == 2 %}Madame{% else %}Monsieur{% endif %}</span></div>
<div class="field"><span class="label">Nom</span>: <span class="value">{{info.demandeur_nomusuel}}</span></div>
<div class="field"><span class="label">Prénoms</span>: <span class="value">{{info.demandeur_prenom}}</span></div>
<div class="field"><span class="label">Téléphone fixe</span>: <span class="value">{{info.demandeur_telephonefixe}}</span></div>
<div class="field"><span class="label">Téléphone mobile</span>: <span class="value">{{info.demandeur_telephoneportable}}</span></div>
<div class="field"><span class="label">Adresse de courriel</span>: <span class="value">{{info.demandeur_email}}</span></div>
{% if not json.data %}
<div><p>Vous pouvez relier votre compte Publik à votre compte D-Park via <a href="{{pairing_form_url}}">ce formulaire</a>.</p></div>
{% else %}
<div class="dpark-infos">
{% for info in json.data %}
<h3>{{ info.text }}</h3>
<div class="dpark-info-identity section">
<h4>Identité</h4>
<div>
<div class="field"><span class="label">Civilité</span>: <span class="value">{% if info.demandeur_civilite == 2 %}Madame{% else %}Monsieur{% endif %}</span></div>
<div class="field"><span class="label">Nom</span>: <span class="value">{{info.demandeur_nomusuel}}</span></div>
<div class="field"><span class="label">Prénoms</span>: <span class="value">{{info.demandeur_prenom}}</span></div>
<div class="field"><span class="label">Téléphone fixe</span>: <span class="value">{{info.demandeur_telephonefixe}}</span></div>
<div class="field"><span class="label">Téléphone mobile</span>: <span class="value">{{info.demandeur_telephoneportable}}</span></div>
<div class="field"><span class="label">Adresse de courriel</span>: <span class="value">{{info.demandeur_email}}</span></div>
</div>
</div>
</div>
<div class="dpark-info-address section">
<h4>Adresse</h4>
<div>
<div class="dpark-info-address section">
<h4>Adresse</h4>
<div>
<div class="field">
<span class="label">Adresse</span>:
<span class="value">{{info.adresse_numerovoie}} {{info.adresse_nomvoie}}, {{info.adresse_codepostal}} {{info.adresse_localite}} </span>
<span class="label">Adresse</span>:
<span class="value">{{info.adresse_numerovoie}} {{info.adresse_nomvoie}}, {{info.adresse_codepostal}} {{info.adresse_localite}} </span>
</div>
<div class="field"><span class="label">Quartier</span>: <span class="value">{{info.adresse_quartier}}</span></div>
</div>
</div>
<div class="dpark-info-subscription section">
<h4>Abonnement</h4>
<div class="field"><span class="label">Numéro de dossier</span>: <span class="value">{{info.demande_numerodossier}}</span></div>
<div class="field"><span class="label">Date de début dabonnement</span>: <span class="value">{{info.demande_datedebutabo}}</span></div>
<div class="field"><span class="label">Date de fin dabonnement</span>: <span class="value">{{info.demande_datefinabo}}</span></div>
<div class="field"><span class="label">Délai de renouvellement (en jours)</span>: <span class="value">{{info.demande_delaiautorise}}</span></div>
</div>
<div class="dpark-info-car section">
<h4>Premier véhicule</h4>
<div class="field"><span class="label">Immatriculation</span>: <span class="value">{{info.demande_immatvehicule1}}</span></div>
<div class="field"><span class="label">Modèle</span>: <span class="value">{{info.demande_modelevehicule1}}</span></div>
<div class="field"><span class="label">Marque</span>: <span class="value">{{info.demande_marquevehicule1}}</span></div>
</div>
<div class="dpark-info-car section">
<h4>Second véhicule</h4>
<div class="field"><span class="label">Immatriculation</span>: <span class="value">{{info.demande_immatvehicule2}}</span></div>
<div class="field"><span class="label">Modèle</span>: <span class="value">{{info.demande_modelevehicule2}}</span></div>
<div class="field"><span class="label">Marque</span>: <span class="value">{{info.demande_marquevehicule2}}</span></div>
</div>
{% endfor %}
</div>
<div class="dpark-info-subscription section">
<h4>Abonnement</h4>
<div class="field"><span class="label">Numéro de dossier</span>: <span class="value">{{info.demande_numerodossier}}</span></div>
<div class="field"><span class="label">Date de début dabonnement</span>: <span class="value">{{info.demande_datedebutabo}}</span></div>
<div class="field"><span class="label">Date de fin dabonnement</span>: <span class="value">{{info.demande_datefinabo}}</span></div>
<div class="field"><span class="label">Délai de renouvellement (en jours)</span>: <span class="value">{{info.demande_delaiautorise}}</span></div>
</div>
<div class="dpark-info-car section">
<h4>Premier véhicule</h4>
<div class="field"><span class="label">Immatriculation</span>: <span class="value">{{info.demande_immatvehicule1}}</span></div>
<div class="field"><span class="label">Modèle</span>: <span class="value">{{info.demande_modelevehicule1}}</span></div>
<div class="field"><span class="label">Marque</span>: <span class="value">{{info.demande_marquevehicule1}}</span></div>
</div>
<div class="dpark-info-car section">
<h4>Second véhicule</h4>
<div class="field"><span class="label">Immatriculation</span>: <span class="value">{{info.demande_immatvehicule2}}</span></div>
<div class="field"><span class="label">Modèle</span>: <span class="value">{{info.demande_modelevehicule2}}</span></div>
<div class="field"><span class="label">Marque</span>: <span class="value">{{info.demande_marquevehicule2}}</span></div>
</div>
{% endfor %}
</div>
{% endif %}
{% endif %}

View File

@ -1,21 +1,21 @@
{% if not json.err and json.data %}
<h2>Mon accompagnement global</h2>
<div>
<div class="rsa-cell--introduction">
<p>Je suis (ou jai été) accompagné(e) par le Département et par Pôle Emploi.<br/>
Pôle Emploi maide à trouver un emploi ou une formation.<br/>
Le Département maide à trouver des solutions à mes problèmes.</p>
</div>
<h2>Mon accompagnement global</h2>
<div>
<div class="rsa-cell--introduction">
<p>Je suis (ou jai été) accompagné(e) par le Département et par Pôle Emploi.<br/>
Pôle Emploi maide à trouver un emploi ou une formation.<br/>
Le Département maide à trouver des solutions à mes problèmes.</p>
</div>
<div class="rsa-cell--datas">
{% with json.data|last as action %}
<table class="pk-data-table pk-table-borders pk-table-zebra">
<tr><td>Date de début</td><td>{{ action.debut }}</td></tr>
<tr><td>Date de fin</td><td>{{ action.fin|default:"" }}</td></tr>
</table>
{% endwith %}
<div class="rsa-cell--datas">
{% with json.data|last as action %}
<table class="pk-data-table pk-table-borders pk-table-zebra">
<tr><td>Date de début</td><td>{{ action.debut }}</td></tr>
<tr><td>Date de fin</td><td>{{ action.fin|default:"" }}</td></tr>
</table>
{% endwith %}
</div>
</div>
</div>
{% endif %}

View File

@ -1,35 +1,35 @@
{% if not json_brsa.err %}
<h2>Mes actions dinsertion</h2>
<div>
<div class="rsa-cell--introduction">
<p>Le Département propose des actions qui vont maider selon mes besoins.</p>
<p>Pour participer je dois en parler à mon référent ou contacter mon territoire daction sociale.</p>
<h2>Mes actions dinsertion</h2>
<div>
<div class="rsa-cell--introduction">
<p>Le Département propose des actions qui vont maider selon mes besoins.</p>
<p>Pour participer je dois en parler à mon référent ou contacter mon territoire daction sociale.</p>
</div>
{% if not json.err and json.data %}
<div class="rsa-cell--datas">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra">
<tr>
<th style="width:25%;">Avec qui</th>
<th style="width:25%;">Quoi</th>
<th style="width:25%;">Date de début</th>
<th>Date de fin</th>
</tr>
{% for action in json.data %}
{% if action.debut|strptime:"%d/%m/%Y"|date:"Y-m-d" > "01/01/2018"|strptime:"%d/%m/%Y"|date:"Y-m-d" %}
<tr>
<td>{{ action.rsa_links.structure.content.libelleReferentiel|default:"" }}</td>
<td>{{ action.nom|default:"" }}</td>
<td>{{ action.debut|default:"" }}</td>
<td>{{ action.fin|default:"" }}</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
{% else %}
<div class="pk-information"><p>Je nai aucune action en cours.</p></div>
{% endif %}
</div>
{% if not json.err and json.data %}
<div class="rsa-cell--datas">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra">
<tr>
<th style="width:25%;">Avec qui</th>
<th style="width:25%;">Quoi</th>
<th style="width:25%;">Date de début</th>
<th>Date de fin</th>
</tr>
{% for action in json.data %}
{% if action.debut|strptime:"%d/%m/%Y"|date:"Y-m-d" > "01/01/2018"|strptime:"%d/%m/%Y"|date:"Y-m-d" %}
<tr>
<td>{{ action.rsa_links.structure.content.libelleReferentiel|default:"" }}</td>
<td>{{ action.nom|default:"" }}</td>
<td>{{ action.debut|default:"" }}</td>
<td>{{ action.fin|default:"" }}</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
{% else %}
<div class="pk-information"><p>Je nai aucune action en cours.</p></div>
{% endif %}
</div>
{% endif %}

View File

@ -1,22 +1,22 @@
{% if not json.err and json.data %}
<h2>Mes contacts</h2>
<div>
<h3>Territoire dAction Sociale{% if json.data.dossier.adresse.lieu.localisation.nomCirconscription %} {{ json.data.dossier.adresse.lieu.localisation.nomCirconscription }}{% endif %}</h3>
{% if json.data.dossier.adresse.lieu.localisation.nomCirconscription %}
{% with circonscription=json.data.dossier.adresse.lieu.localisation.circonscription %}
<ul>
<li>Adresse : <strong>{{ circonscription.adresse.numero|default:"" }} {{ circonscription.adresse.lieu.nom|default:"" }} {{ circonscription.adresse.lieu.commune.codePostal|default:"" }} {{ circonscription.adresse.lieu.commune.nom|default:"" }}</strong></li>
{% if circonscription.stdCirconscription %}<li>Téléphone : <strong>{{ circonscription.stdCirconscription|phonenumber_fr }}</strong></li>{% endif %}
{% if circonscription.emailCirconscription %}<li>Email : <strong>{{ circonscription.emailCirconscription }}</strong></li>{% endif %}
</ul>
{% endwith %}
{% else %}
<div class="pk-information"><p>Information non disponible.</p></div>
{% endif %}
<h2>Mes contacts</h2>
<div>
<h3>Territoire dAction Sociale{% if json.data.dossier.adresse.lieu.localisation.nomCirconscription %} {{ json.data.dossier.adresse.lieu.localisation.nomCirconscription }}{% endif %}</h3>
{% if json.data.dossier.adresse.lieu.localisation.nomCirconscription %}
{% with circonscription=json.data.dossier.adresse.lieu.localisation.circonscription %}
<ul>
<li>Adresse : <strong>{{ circonscription.adresse.numero|default:"" }} {{ circonscription.adresse.lieu.nom|default:"" }} {{ circonscription.adresse.lieu.commune.codePostal|default:"" }} {{ circonscription.adresse.lieu.commune.nom|default:"" }}</strong></li>
{% if circonscription.stdCirconscription %}<li>Téléphone : <strong>{{ circonscription.stdCirconscription|phonenumber_fr }}</strong></li>{% endif %}
{% if circonscription.emailCirconscription %}<li>Email : <strong>{{ circonscription.emailCirconscription }}</strong></li>{% endif %}
</ul>
{% endwith %}
{% else %}
<div class="pk-information"><p>Information non disponible.</p></div>
{% endif %}
<h3>Mon interlocuteur</h3>
{% include "./rsa-interlocuteur.html" %}
</div>
<h3>Mon interlocuteur</h3>
{% include "./rsa-interlocuteur.html" %}
</div>
{% endif %}

View File

@ -1,9 +1,9 @@
<div>
<p>
{% if not json.data %}
<a href="{{ default_url }}">Contactez-nous</a>
{% else %}
<a href="{{ eservices_url }}contactez-votre-pole-insertion/?cancelurl={{ site_base }}{{ cell.page.get_online_url }}">Contactez-nous</a>
{% endif %}
{% if not json.data %}
<a href="{{ default_url }}">Contactez-nous</a>
{% else %}
<a href="{{ eservices_url }}contactez-votre-pole-insertion/?cancelurl={{ site_base }}{{ cell.page.get_online_url }}">Contactez-nous</a>
{% endif %}
</p>
</div>

View File

@ -1,30 +1,30 @@
{% if not json.err and json.data %}
<h2>Mes indus</h2>
<div>
<div class="rsa-cell--introduction">
<p>Jai perçu à tort trop de RSA.</p>
<p>Jai fait une demande pour réduire ou annuler ma dette.</p>
<h2>Mes indus</h2>
<div>
<div class="rsa-cell--introduction">
<p>Jai perçu à tort trop de RSA.</p>
<p>Jai fait une demande pour réduire ou annuler ma dette.</p>
</div>
<div class="rsa-cell--datas">
<h3>Mes demandes</h3>
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th style="width:25%;">Date de réception de ma demande</th>
<th style="width:25%;">Date de réception de mon dossier complet</th>
<th style="width:25%;">Date de la décision</th>
<th>Décision</th>
</tr>
{% for indu in json.data %}
<tr>
<td>{{ indu.dateDebut }}</td>
<td>{{ indu.remiseInduRsaCollection.0.dateReception|default:"Non renseignée" }}</td>
<td>{{ indu.remiseInduRsaCollection.0.gestionCommissionRsaDTO.dateSeance|default:"En cours" }}</td>
<td>{% if indu.remiseInduRsaCollection.0.gestionCommissionRsaDTO.decision.lcDecisionRsa == "Accord" or indu.remiseInduRsaCollection.0.gestionCommissionRsaDTO.decision.lcDecisionRsa == "Refus" %}Je suis informé(e) par courrier.{% else %}En cours{% endif %}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
<div class="rsa-cell--datas">
<h3>Mes demandes</h3>
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th style="width:25%;">Date de réception de ma demande</th>
<th style="width:25%;">Date de réception de mon dossier complet</th>
<th style="width:25%;">Date de la décision</th>
<th>Décision</th>
</tr>
{% for indu in json.data %}
<tr>
<td>{{ indu.dateDebut }}</td>
<td>{{ indu.remiseInduRsaCollection.0.dateReception|default:"Non renseignée" }}</td>
<td>{{ indu.remiseInduRsaCollection.0.gestionCommissionRsaDTO.dateSeance|default:"En cours" }}</td>
<td>{% if indu.remiseInduRsaCollection.0.gestionCommissionRsaDTO.decision.lcDecisionRsa == "Accord" or indu.remiseInduRsaCollection.0.gestionCommissionRsaDTO.decision.lcDecisionRsa == "Refus" %}Je suis informé(e) par courrier.{% else %}En cours{% endif %}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% endif %}

View File

@ -1,51 +1,51 @@
{% if json_allocataires.data and json_allocataires.data.soumisDD != "Soumis à droit et devoir" or json_allocataires.data and not json_allocataires.data.oriente %}
<!-- NSDD ou SDD NO -->
<!-- NSDD ou SDD NO -->
{% with cli=json.data.dossier.adresse.lieu.localisation.cli %}
<ul>
{% if cli.lcCli %}<li><strong>{{ cli.lcCli }}</strong></li>{% endif %}
{% if cli.telephoneCli %}<li>Téléphone : <strong>{{ cli.telephoneCli|phonenumber_fr }}</strong></li>{% endif %}
{% if cli.emailCli %}<li>Email : <strong>{{ cli.emailCli }}</strong></li>{% endif %}
<ul>
<ul>
{% endwith %}
{% else %}
{% if json_allocataires.data.soumisDD == "Soumis à droit et devoir" %}
<!-- SDD -->
<!-- SDD -->
{% if json_evaluations.data.typeorientation == 'Social' %}
<!-- SDD OS -->
<!-- SDD OS -->
{% if json_evaluations.data.corrOrientationChoix == 'CONSEIL_DEPARTEMENTAL' %}
<!-- SDD OS Interne -->
<!-- SDD OS Interne -->
<ul>
<li><strong>{{ json_evaluations.data.corrOrientIntervenantSocial|default:"" }}{% if json_evaluations.data.corrOrientStructureAccompagnement %} - {{ json_evaluations.data.corrOrientStructureAccompagnement }}{% endif %}</strong></li>
{% if json_evaluations.data.rsa_links.corrOrient.content.coordonnees.numeroTelephone %}<li>Téléphone : <strong>{{ json_evaluations.data.rsa_links.corrOrient.content.coordonnees.numeroTelephone|phonenumber_fr }}</strong></li>{% endif %}
{% if json_evaluations.data.rsa_links.corrOrientStructAcc.content.email %}<li>Email : <strong>{{ json_evaluations.data.rsa_links.corrOrientStructAcc.content.email }}</strong></li>{% endif %}
<ul>
<ul>
{% else %}
<!-- SDD OS Externe -->
<!-- SDD OS Externe -->
<ul>
{% if json_evaluations.data.refOrientIntervenantSocial %}<li><strong>{{ json_evaluations.data.refOrientIntervenantSocial }}</strong></li>{% endif %}
{% if json_evaluations.data.rsa_links.refOrient.content.coordonnees.numeroTelephone %}<li>Téléphone : <strong>{{ json_evaluations.data.rsa_links.refOrient.content.coordonnees.numeroTelephone|phonenumber_fr }}</strong></li>{% endif %}
{% if json_evaluations.data.rsa_links.refOrient.content.coordonnees.courriel %}<li>Email : <strong>{{ json_evaluations.data.rsa_links.refOrient.content.coordonnees.courriel }}</strong></li>{% endif %}
<ul>
<ul>
{% endif %}
{% else %}
<!-- SDD OE-->
<!-- SDD OE-->
{% with cli=json.data.dossier.adresse.lieu.localisation.cli %}
<ul>
{% if cli.lcCli %}<li><strong>{{ cli.lcCli }}</strong></li>{% endif %}
{% if cli.telecopieCli %}<li>Téléphone : <strong>{{ cli.telecopieCli|phonenumber_fr }}</strong></li>{% endif %}
{% if cli.emailCli %}<li>Email : <strong>{{ cli.emailCli }}</strong></li>{% endif %}
<ul>
<ul>
{% endwith %}
{% endif %}

View File

@ -6,9 +6,9 @@
{% for item in json.data|dictsort:"id" %}
<div class="apa-user grid-1-1" }}">
<a class="apa-user-link" href="fiche/{{ item.id }}"><h3>{{ item.text }}</h3></a>
<a class="remove" href="{{ eservices_url }}suivre-mes-beneficiaires-rsa/desactiver-mon-dossier/?user_id={{ item.id }}&ReturnURL={{ site_base }}{{ cell.page.get_online_url }}">×</a>
</div>
<a class="remove" href="{{ eservices_url }}suivre-mes-beneficiaires-rsa/desactiver-mon-dossier/?user_id={{ item.id }}&ReturnURL={{ site_base }}{{ cell.page.get_online_url }}">×</a>
</div>
{% endfor %}
{% endif %}
<div style="clear: both;"></div>
</div>
</div>

View File

@ -1,14 +1,14 @@
{% if not json or json.err or not json.data.etatCivil %}
<h2>Vos informations sont temporairement indisponibles</h2>
<div>
<div class="pk-attention"><p>Vos informations sont temporairement indisponibles. Nous vous prions de nous en excuser et de revenir ultérieurement.</p></div>
</div>
<h2>Vos informations sont temporairement indisponibles</h2>
<div>
<div class="pk-attention"><p>Vos informations sont temporairement indisponibles. Nous vous prions de nous en excuser et de revenir ultérieurement.</p></div>
</div>
{% else %}
{% with ec=json.data.etatCivil %}
<h2>{{ ec.genre }} {{ ec.prenom }} {{ ec.nom }}</h2>
{% endwith %}
{% with ec=json.data.etatCivil %}
<h2>{{ ec.genre }} {{ ec.prenom }} {{ ec.nom }}</h2>
{% endwith %}
{% endif %}

View File

@ -1,46 +1,46 @@
{% if not json or json.err or not json.data.etatCivil %}
<h2>Vos informations sont temporairement indisponibles</h2>
<div>
<div class="pk-attention"><p>Vos informations sont temporairement indisponibles. Nous vous prions de nous en excuser et de revenir ultérieurement.</p></div>
</div>
<h2>Vos informations sont temporairement indisponibles</h2>
<div>
<div class="pk-attention"><p>Vos informations sont temporairement indisponibles. Nous vous prions de nous en excuser et de revenir ultérieurement.</p></div>
</div>
{% else %}
<h2>Je suis</h2>
<div>
<div class="rsa-cell--datas">
{% with ec=json.data.etatCivil %}
<p><strong>{{ ec.genre }} {{ ec.prenom }} {{ ec.nom }}</strong></p>
<p>né(e) le : <strong>{{ ec.dateNaissance|parse_date }}</strong></p>
{% endwith %}
<h2>Je suis</h2>
<div>
<div class="rsa-cell--datas">
{% with ec=json.data.etatCivil %}
<p><strong>{{ ec.genre }} {{ ec.prenom }} {{ ec.nom }}</strong></p>
<p>né(e) le : <strong>{{ ec.dateNaissance|parse_date }}</strong></p>
{% endwith %}
<p>Numéro CAF ou MSA : <strong>{{ json.data.prestationFamiliale.numeroCafMsa|default:"inconnu" }}</strong></p>
<p>Référence à rappeler : <strong>{{ json.data.index|default:"inconnu" }}</strong></p>
<p>Numéro CAF ou MSA : <strong>{{ json.data.prestationFamiliale.numeroCafMsa|default:"inconnu" }}</strong></p>
<p>Référence à rappeler : <strong>{{ json.data.index|default:"inconnu" }}</strong></p>
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra">
<tr>
<th>Adresse</th>
<th>Téléphone et/ou Email</th>
</tr>
<tr>
<td>
{% with adr=json.data.dossier.adresse %}
<strong>{% if adr.complementDestinataire %}<p>{{ adr.complementDestinataire }}</p>{% endif %}
<p>{{ adr.numero|default:"" }} {{ adr.lieu.natureLieu|default:"" }} {{ adr.lieu.nom|default:"" }} {{ adr.finLieu|default:"" }}</p>
{% if adr.complementLieu %}<p> {{adr.complementLieu}}</p>{% endif %}
<p>{{ adr.codePostal }} {{ adr.lieu.commune.nom }}{% if adr.cedex %}CEDEX {{ adr.cedex }}{% endif %}</p></strong>
{% endwith %}
</td>
<td>
{% for type, num in json.data.coordonnees.telephone.items %}
{% if num %}<p>Téléphone {{ type }} : <strong>{{ num|phonenumber_fr|default:"inconnu" }}</strong></p>{% endif %}
{% endfor %}
{% if json.data.coordonnees.email %}<p>Email : <strong>{{ json.data.coordonnees.email|default:"inconnue" }}</strong></p>{% endif %}
</td>
</tr>
</table>
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra">
<tr>
<th>Adresse</th>
<th>Téléphone et/ou Email</th>
</tr>
<tr>
<td>
{% with adr=json.data.dossier.adresse %}
<strong>{% if adr.complementDestinataire %}<p>{{ adr.complementDestinataire }}</p>{% endif %}
<p>{{ adr.numero|default:"" }} {{ adr.lieu.natureLieu|default:"" }} {{ adr.lieu.nom|default:"" }} {{ adr.finLieu|default:"" }}</p>
{% if adr.complementLieu %}<p> {{adr.complementLieu}}</p>{% endif %}
<p>{{ adr.codePostal }} {{ adr.lieu.commune.nom }}{% if adr.cedex %}CEDEX {{ adr.cedex }}{% endif %}</p></strong>
{% endwith %}
</td>
<td>
{% for type, num in json.data.coordonnees.telephone.items %}
{% if num %}<p>Téléphone {{ type }} : <strong>{{ num|phonenumber_fr|default:"inconnu" }}</strong></p>{% endif %}
{% endfor %}
{% if json.data.coordonnees.email %}<p>Email : <strong>{{ json.data.coordonnees.email|default:"inconnue" }}</strong></p>{% endif %}
</td>
</tr>
</table>
</div>
</div>
</div>
{% endif %}

View File

@ -1,5 +1,5 @@
{% if not json_evenements.data or json_evenements.data.0.dateProposition|date < "31/12/2018"|date %}
<!-- Pas dévénements ou dernier événement ancien -->
<!-- Pas dévénements ou dernier événement ancien -->
{% if json_allocataires.data.rsa_links.conjoint.content %}
<h2>Réductions / radiations</h2>
<div>
@ -10,27 +10,101 @@
{% endif %}
{% else %}
<!-- Dernier événement récent -->
<!-- Dernier événement récent -->
{% with evenement=json_evenements.data.0 %}
{% with code=evenement.codeTypeEvenementRsa %}
{% with evenement=json_evenements.data.0 %}
{% with code=evenement.codeTypeEvenementRsa %}
{% if code == 4 or code == 19 or code == 20 %}
{% if not evenement.commission.dateDecision or evenement.commission.decision.lcDecisionRsa == "Refus" %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Je suis concerné par une procédure de réduction. Mon allocation est diminuée.</p>
<p>Je dois contacter :
{% include "./rsa-interlocuteur.html" %}
</p>
</div>
{% if json_allocataires.data.rsa_links.conjoint.content %}
{% if code == 4 or code == 19 or code == 20 %}
{% if not evenement.commission.dateDecision or evenement.commission.decision.lcDecisionRsa == "Refus" %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Lallocation de mon foyer peut aussi être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
<p>Je suis concerné par une procédure de réduction. Mon allocation est diminuée.</p>
<p>Je dois contacter :
{% include "./rsa-interlocuteur.html" %}
</p>
</div>
{% endif %}
</div>
{% if json_allocataires.data.rsa_links.conjoint.content %}
<div class="infonotice">
<p>Lallocation de mon foyer peut aussi être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
{% endif %}
</div>
{% elif json_allocataires.data.rsa_links.conjoint.content %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Lallocation de mon foyer peut être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
</div>
{% endif %}
{% elif code == 11 or code == 12 or code == 13 or code == 14 or code == 15 or code == 16 or code == 17 or code == 18 %}
{% if evenement.commission.decision.lcDecisionRsa == "Accord" %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Je suis concerné par une procédure de réduction. Mon allocation est diminuée.</p>
<p>Je dois contacter :
{% include "./rsa-interlocuteur.html" %}
</p>
</div>
{% if json_allocataires.data.rsa_links.conjoint.content %}
<div class="infonotice">
<p>Lallocation de mon foyer peut aussi être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
{% endif %}
</div>
{% elif not evenement.commission.dateDecision %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Je suis concerné(e) par une procédure de réduction. Mon allocation peut être diminuée.</p>
<p>Je dois contacter :
{% include "./rsa-interlocuteur.html" %}
</p>
</div>
{% if json_allocataires.data.rsa_links.conjoint.content %}
<div class="infonotice">
<p>Lallocation de mon foyer peut aussi être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
{% endif %}
</div>
{% elif json_allocataires.data.rsa_links.conjoint.content %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Lallocation de mon foyer peut être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
</div>
{% endif %}
{% elif code == 6 %}
{% if not evenement.commission.dateDecision or evenement.commission.decision.lcDecisionRsa == "Accord" or evenement.commission.decision.lcDecisionRsa == "Ajournement" %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Je suis concerné(e) par une procédure de réduction. Mon allocation peut être diminuée.</p>
<p>Je dois contacter :
{% include "./rsa-interlocuteur.html" %}
</p>
</div>
{% if json_allocataires.data.rsa_links.conjoint.content %}
<div class="infonotice">
<p>Lallocation de mon foyer peut aussi être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
{% endif %}
</div>
{% elif json_allocataires.data.rsa_links.conjoint.content %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Lallocation de mon foyer peut être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
</div>
{% endif %}
{% elif json_allocataires.data.rsa_links.conjoint.content %}
<h2>Réductions / radiations</h2>
<div>
@ -40,81 +114,7 @@
</div>
{% endif %}
{% elif code == 11 or code == 12 or code == 13 or code == 14 or code == 15 or code == 16 or code == 17 or code == 18 %}
{% if evenement.commission.decision.lcDecisionRsa == "Accord" %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Je suis concerné par une procédure de réduction. Mon allocation est diminuée.</p>
<p>Je dois contacter :
{% include "./rsa-interlocuteur.html" %}
</p>
</div>
{% if json_allocataires.data.rsa_links.conjoint.content %}
<div class="infonotice">
<p>Lallocation de mon foyer peut aussi être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
{% endif %}
</div>
{% elif not evenement.commission.dateDecision %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Je suis concerné(e) par une procédure de réduction. Mon allocation peut être diminuée.</p>
<p>Je dois contacter :
{% include "./rsa-interlocuteur.html" %}
</p>
</div>
{% if json_allocataires.data.rsa_links.conjoint.content %}
<div class="infonotice">
<p>Lallocation de mon foyer peut aussi être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
{% endif %}
</div>
{% elif json_allocataires.data.rsa_links.conjoint.content %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Lallocation de mon foyer peut être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
</div>
{% endif %}
{% elif code == 6 %}
{% if not evenement.commission.dateDecision or evenement.commission.decision.lcDecisionRsa == "Accord" or evenement.commission.decision.lcDecisionRsa == "Ajournement" %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Je suis concerné(e) par une procédure de réduction. Mon allocation peut être diminuée.</p>
<p>Je dois contacter :
{% include "./rsa-interlocuteur.html" %}
</p>
</div>
{% if json_allocataires.data.rsa_links.conjoint.content %}
<div class="infonotice">
<p>Lallocation de mon foyer peut aussi être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
{% endif %}
</div>
{% elif json_allocataires.data.rsa_links.conjoint.content %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Lallocation de mon foyer peut être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
</div>
{% endif %}
{% elif json_allocataires.data.rsa_links.conjoint.content %}
<h2>Réductions / radiations</h2>
<div>
<div class="infonotice">
<p>Lallocation de mon foyer peut être réduite si mon(a) conjoint(e) fait lobjet dune procédure de réduction. Mon(a) conjoint(e) doit consulter son dossier.</p>
</div>
</div>
{% endif %}
{% endwith %}
{% endwith %}
{% endwith %}
{% endif %}

View File

@ -1,168 +1,168 @@
{% if not json.err %}
<h2>Ma situation en terme daccompagnement</h2>
<div>
<!-- Début : Introduction -->
<div class="rsa-cell--introduction">
<p>
<strong>
{% if json.data.soumisDD == "Soumis à droit et devoir" %}
« Jai des droits et des obligations. »
{% else %}
« Je nai pas daccompagnement obligatoire. »
{% endif %}
</strong>
</p>
<p>
<strong>
{% if json.data.oriente %}
« Jai un référent. »
{% else %}
« Je nai pas de référent. »
{% endif %}
</strong>
</p>
</div>
<!-- Fin : Introduction -->
<!-- Début : Non orienté -->
{% if not json.data.oriente %}
<div class="pk-information">
{% if json.data.soumisDD != "Soumis à droit et devoir" %}
<!-- NSDD -->
<p>Je peux quand même être aidé dans mes démarches.</p>
{% else %}
<!-- SDD -->
<p>Je nai pas daccompagnement actuellement mais je dois en avoir un. Je dois prendre contact avec mon Territoire dAction Sociale afin de régulariser ma situation.</p>
{% endif %}
{% if json_brsa.data.dossier.adresse.lieu.localisation.nomCirconscription %}
{% with i=json_brsa.data.dossier.adresse.lieu.localisation %}
<p>Je contacte mon Territoire dAction Sociale :</p>
<ul>
<li>Nom : <strong>{{ i.nomCirconscription }}</strong></li>
{% if i.circonscription.stdCirconscription %}<li>Téléphone : <strong>{{ i.circonscription.stdCirconscription|phonenumber_fr }}</strong></li>{% endif %}
{% if i.circonscription.emailCirconscription %}<li>Email : <strong>{{ i.circonscription.emailCirconscription }}</strong></li>{% endif %}
<li>Adresse : <strong>{{ i.circonscription.adresse.numero|default:"" }} {{ i.circonscription.adresse.lieu.nom|default:"" }} {{ i.circonscription.adresse.lieu.commune.codePostal|default:"" }} {{ i.circonscription.adresse.lieu.commune.nom|default:"" }}</strong></li>
</ul>
{% endwith %}
{% else %}
<div class="pk-information"><p>Vous navez pas de Territoire dAction Sociale de défini.</p></div>
{% endif %}
</div>
{% endif %}
<!-- Fin : Non orienté -->
<!-- Début : Orienté -->
<div class="rsa-cell--datas">
{% if json.data.oriente %}
{% with data=json_evaluations.data %}
<h2>Ma situation en terme daccompagnement</h2>
<div>
{% if data.typeorientation == "Emploi" %}
<!-- Orienté emploi -->
<p>Mon référent est : <strong>{{ data.rsa_links.structAcc.0.content.libelleReferentiel|default:"Pôle Emploi" }}</strong></p>
<p>Depuis le : <strong>{{ data.commission.dateDecision|default:"date inconnue" }}</strong></p>
<p>Coordonnées : <strong>39 49 (gratuit depuis un poste fixe) ou <a href="https://www.pole-emploi.fr">www.pole-emploi.fr</a></strong></p>
{% else %}
<!-- Orienté social -->
{% if data.corrOrientationChoix == 'CONSEIL_DEPARTEMENTAL' %}
<!-- Interne -->
<p>Mon référent est : <strong>{{ data.corrOrientIntervenantSocial }}{% if data.corrOrientStructureAccompagnement %} - {{ data.corrOrientStructureAccompagnement }}{% endif %}</strong></p>
<p>Depuis le : <strong>{{ data.commission.dateDecision|default:"date inconnue" }}</strong></p>
<p>Coordonnées :</p>
<ul>
{% if data.rsa_links.corrOrient.content.coordonnees.numeroTelephone %}<li>Téléphone : <strong>{{ data.rsa_links.corrOrient.content.coordonnees.numeroTelephone|phonenumber_fr }}</strong></li>{% endif %}
{% if data.rsa_links.corrOrientStructAcc.content.email %}<li>Email : <strong>{{ data.rsa_links.corrOrientStructAcc.content.email }}</strong></li>{% endif %}
</ul>
{% else %}
<p>Mon référent est : <strong>{{ data.refOrientIntervenantSocial|default:"" }}{% if data.refOrientStructureAccompagnement %} - {{ data.refOrientStructureAccompagnement }}{% endif %}</strong></p>
<p>Depuis le : <strong>{{ data.commission.dateDecision|default:"date inconnue" }}</strong></p>
{% if data.rsa_links.refOrient.content %}
<p>Coordonnées :</p>
<ul>
{% if data.rsa_links.refOrient.content.coordonnees.numeroTelephone %}<li>Téléphone : <strong>{{ data.rsa_links.refOrient.content.coordonnees.numeroTelephone|phonenumber_fr }}</strong></li>{% endif %}
{% if data.rsa_links.refOrient.content.coordonnees.courriel %}<li>Email : <strong>{{ data.rsa_links.refOrient.content.coordonnees.courriel }}</strong></li>{% endif %}
</ul>
{% endif %}
{% endif %}
{% endif %}
</div>
</div>
{% if json.data.soumisDD != "Soumis à droit et devoir" %}
<!-- Orienté mais NSDD-->
<div class="pk-information">
<p>Je dois contacter mon référent pour faire le point sur ma situation.</p>
</div>
{% endif %}
{% if json.data.soumisDD == "Soumis à droit et devoir" and data.typeorientation == "Emploi" %}
<!-- Orienté emploi et SDD-->
<h3>Mon numéro de demandeur demploi</h3>
<div class="pk-information">
{% if json.data.poleEmploi.code and not json.data.poleEmploi.radiation %}
<p>Mon numéro de demandeur demploi : <strong>{{ json.data.poleEmploi.code }}</strong></p>
<p>Je suis inscrit à Pôle Emploi. Jai un Projet Personnalisé dAccès à lEmploi. Je dois le respecter.</p>
{% else %}
<p>Mon numéro de demandeur demploi : <strong>Pas dinscription Pôle Emploi enregistrée.</strong></p>
<p>Je ne suis pas inscrit à Pôle Emploi. Je dois minscrire rapidement. Dans le cas contraire, je risque une réduction de mon RSA.</p>
{% endif %}
{% endif %}
{% if json.data.soumisDD == "Soumis à droit et devoir" and data.typeorientation == "Social" %}
<!-- Orienté social et SDD-->
<h3>Mon dernier contrat dinsertion</h3>
{% if not json_engagements.err and json_engagements.data and json_engagements.data.dateDebContrat and data.indexOrientation %}
{% with e=json_engagements.data %}
<div>
<table class="pk-data-table pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<td style="width:33%;">Date de début du contrat</td>
<td><strong>{{ e.dateDebContrat }}</strong></td>
</tr>
<tr>
<td>Date de fin du contrat</td>
<td><strong>{{ e.dateFinContrat }}</strong></td>
</tr>
<tr>
<td>Objectifs</td>
<td><ul>
{% for obj in e.objectifs %}
<li><strong>{{ obj.libelle }}</strong></li>
{% endfor %}
</ul></td>
</tr>
<tr>
<td>Date du bilan</td>
<td><strong>{{ e.dateBilan|default:"non fixée" }}</strong></td>
</tr>
</table>
<div class="pk-information">
{% now "Y-m-d" as today %}
{% if e.dateFinContrat|strptime:"%d/%m/%Y"|date:"U"|add:"0" >= today|strptime:"%Y-%m-%d"|date:"U"|add:"2678000" %}<p>Jai un contrat dinsertion. Je dois le respecter. En cas de difficultés, je prends contact avec mon référent.</p>{% endif %}
{% if e.dateFinContrat|strptime:"%d/%m/%Y"|date:"U"|add:"0" < today|strptime:"%Y-%m-%d"|date:"U"|add:"2678000" and not e.dateBilan %}<p>Je dois faire le bilan de mon contrat dinsertion. Si ce nest pas déjà fait, je prends contact avec mon référent.</p>{% endif %}
{% if e.dateFinContrat|strptime:"%d/%m/%Y"|date:"U"|add:"0" < today|strptime:"%Y-%m-%d"|date:"U"|add:"2678000" and e.dateBilan %}<p>Pour la suite de mon parcours, si je ne lai pas déjà fait, je prends contact avec mon référent.</p>{% endif %}
</div>
<!-- Début : Introduction -->
<div class="rsa-cell--introduction">
<p>
<strong>
{% if json.data.soumisDD == "Soumis à droit et devoir" %}
« Jai des droits et des obligations. »
{% else %}
« Je nai pas daccompagnement obligatoire. »
{% endif %}
</strong>
</p>
<p>
<strong>
{% if json.data.oriente %}
« Jai un référent. »
{% else %}
« Je nai pas de référent. »
{% endif %}
</strong>
</p>
</div>
{% endwith %}
{% else %}
<div class="pk-information"><p>Je nai pas de contrat dinsertion mais je dois en avoir un. Je dois prendre contact avec mon référent.</p></div>
{% endif %}
{% endif %}
<!-- Fin : Introduction -->
{% endwith %}
{% endif %}
<!-- Fin : Orienté -->
<!-- Début : Non orienté -->
{% if not json.data.oriente %}
<div class="pk-information">
{% if json.data.soumisDD != "Soumis à droit et devoir" %}
<!-- NSDD -->
<p>Je peux quand même être aidé dans mes démarches.</p>
{% else %}
<!-- SDD -->
<p>Je nai pas daccompagnement actuellement mais je dois en avoir un. Je dois prendre contact avec mon Territoire dAction Sociale afin de régulariser ma situation.</p>
{% endif %}
</div>
{% if json_brsa.data.dossier.adresse.lieu.localisation.nomCirconscription %}
{% with i=json_brsa.data.dossier.adresse.lieu.localisation %}
<p>Je contacte mon Territoire dAction Sociale :</p>
<ul>
<li>Nom : <strong>{{ i.nomCirconscription }}</strong></li>
{% if i.circonscription.stdCirconscription %}<li>Téléphone : <strong>{{ i.circonscription.stdCirconscription|phonenumber_fr }}</strong></li>{% endif %}
{% if i.circonscription.emailCirconscription %}<li>Email : <strong>{{ i.circonscription.emailCirconscription }}</strong></li>{% endif %}
<li>Adresse : <strong>{{ i.circonscription.adresse.numero|default:"" }} {{ i.circonscription.adresse.lieu.nom|default:"" }} {{ i.circonscription.adresse.lieu.commune.codePostal|default:"" }} {{ i.circonscription.adresse.lieu.commune.nom|default:"" }}</strong></li>
</ul>
{% endwith %}
{% else %}
<div class="pk-information"><p>Vous navez pas de Territoire dAction Sociale de défini.</p></div>
{% endif %}
</div>
{% endif %}
<!-- Fin : Non orienté -->
<!-- Début : Orienté -->
<div class="rsa-cell--datas">
{% if json.data.oriente %}
{% with data=json_evaluations.data %}
<div>
{% if data.typeorientation == "Emploi" %}
<!-- Orienté emploi -->
<p>Mon référent est : <strong>{{ data.rsa_links.structAcc.0.content.libelleReferentiel|default:"Pôle Emploi" }}</strong></p>
<p>Depuis le : <strong>{{ data.commission.dateDecision|default:"date inconnue" }}</strong></p>
<p>Coordonnées : <strong>39 49 (gratuit depuis un poste fixe) ou <a href="https://www.pole-emploi.fr">www.pole-emploi.fr</a></strong></p>
{% else %}
<!-- Orienté social -->
{% if data.corrOrientationChoix == 'CONSEIL_DEPARTEMENTAL' %}
<!-- Interne -->
<p>Mon référent est : <strong>{{ data.corrOrientIntervenantSocial }}{% if data.corrOrientStructureAccompagnement %} - {{ data.corrOrientStructureAccompagnement }}{% endif %}</strong></p>
<p>Depuis le : <strong>{{ data.commission.dateDecision|default:"date inconnue" }}</strong></p>
<p>Coordonnées :</p>
<ul>
{% if data.rsa_links.corrOrient.content.coordonnees.numeroTelephone %}<li>Téléphone : <strong>{{ data.rsa_links.corrOrient.content.coordonnees.numeroTelephone|phonenumber_fr }}</strong></li>{% endif %}
{% if data.rsa_links.corrOrientStructAcc.content.email %}<li>Email : <strong>{{ data.rsa_links.corrOrientStructAcc.content.email }}</strong></li>{% endif %}
</ul>
{% else %}
<p>Mon référent est : <strong>{{ data.refOrientIntervenantSocial|default:"" }}{% if data.refOrientStructureAccompagnement %} - {{ data.refOrientStructureAccompagnement }}{% endif %}</strong></p>
<p>Depuis le : <strong>{{ data.commission.dateDecision|default:"date inconnue" }}</strong></p>
{% if data.rsa_links.refOrient.content %}
<p>Coordonnées :</p>
<ul>
{% if data.rsa_links.refOrient.content.coordonnees.numeroTelephone %}<li>Téléphone : <strong>{{ data.rsa_links.refOrient.content.coordonnees.numeroTelephone|phonenumber_fr }}</strong></li>{% endif %}
{% if data.rsa_links.refOrient.content.coordonnees.courriel %}<li>Email : <strong>{{ data.rsa_links.refOrient.content.coordonnees.courriel }}</strong></li>{% endif %}
</ul>
{% endif %}
{% endif %}
{% endif %}
</div>
</div>
{% if json.data.soumisDD != "Soumis à droit et devoir" %}
<!-- Orienté mais NSDD-->
<div class="pk-information">
<p>Je dois contacter mon référent pour faire le point sur ma situation.</p>
</div>
{% endif %}
{% if json.data.soumisDD == "Soumis à droit et devoir" and data.typeorientation == "Emploi" %}
<!-- Orienté emploi et SDD-->
<h3>Mon numéro de demandeur demploi</h3>
<div class="pk-information">
{% if json.data.poleEmploi.code and not json.data.poleEmploi.radiation %}
<p>Mon numéro de demandeur demploi : <strong>{{ json.data.poleEmploi.code }}</strong></p>
<p>Je suis inscrit à Pôle Emploi. Jai un Projet Personnalisé dAccès à lEmploi. Je dois le respecter.</p>
{% else %}
<p>Mon numéro de demandeur demploi : <strong>Pas dinscription Pôle Emploi enregistrée.</strong></p>
<p>Je ne suis pas inscrit à Pôle Emploi. Je dois minscrire rapidement. Dans le cas contraire, je risque une réduction de mon RSA.</p>
{% endif %}
{% endif %}
{% if json.data.soumisDD == "Soumis à droit et devoir" and data.typeorientation == "Social" %}
<!-- Orienté social et SDD-->
<h3>Mon dernier contrat dinsertion</h3>
{% if not json_engagements.err and json_engagements.data and json_engagements.data.dateDebContrat and data.indexOrientation %}
{% with e=json_engagements.data %}
<div>
<table class="pk-data-table pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<td style="width:33%;">Date de début du contrat</td>
<td><strong>{{ e.dateDebContrat }}</strong></td>
</tr>
<tr>
<td>Date de fin du contrat</td>
<td><strong>{{ e.dateFinContrat }}</strong></td>
</tr>
<tr>
<td>Objectifs</td>
<td><ul>
{% for obj in e.objectifs %}
<li><strong>{{ obj.libelle }}</strong></li>
{% endfor %}
</ul></td>
</tr>
<tr>
<td>Date du bilan</td>
<td><strong>{{ e.dateBilan|default:"non fixée" }}</strong></td>
</tr>
</table>
<div class="pk-information">
{% now "Y-m-d" as today %}
{% if e.dateFinContrat|strptime:"%d/%m/%Y"|date:"U"|add:"0" >= today|strptime:"%Y-%m-%d"|date:"U"|add:"2678000" %}<p>Jai un contrat dinsertion. Je dois le respecter. En cas de difficultés, je prends contact avec mon référent.</p>{% endif %}
{% if e.dateFinContrat|strptime:"%d/%m/%Y"|date:"U"|add:"0" < today|strptime:"%Y-%m-%d"|date:"U"|add:"2678000" and not e.dateBilan %}<p>Je dois faire le bilan de mon contrat dinsertion. Si ce nest pas déjà fait, je prends contact avec mon référent.</p>{% endif %}
{% if e.dateFinContrat|strptime:"%d/%m/%Y"|date:"U"|add:"0" < today|strptime:"%Y-%m-%d"|date:"U"|add:"2678000" and e.dateBilan %}<p>Pour la suite de mon parcours, si je ne lai pas déjà fait, je prends contact avec mon référent.</p>{% endif %}
</div>
</div>
{% endwith %}
{% else %}
<div class="pk-information"><p>Je nai pas de contrat dinsertion mais je dois en avoir un. Je dois prendre contact avec mon référent.</p></div>
{% endif %}
{% endif %}
{% endwith %}
{% endif %}
<!-- Fin : Orienté -->
</div>
{% endif %} <!-- if not json.err -->

View File

@ -6,15 +6,15 @@
<link rel="shortcut icon" href="{{site_base}}{% static "" %}{{favicon}}" />
{% elif pwa_settings.application_icon %}
<link rel="shortcut icon"
{% thumbnail pwa_settings.application_icon '32x32' crop='center' format='PNG' as im %}
{% thumbnail pwa_settings.application_icon '32x32' crop='center' format='PNG' as im %}
href="{{ site_base }}{{ im.url }}"/>
{% endthumbnail %}
{% endthumbnail %}
{% endif %}
{% if pwa_settings.application_icon %}
{% for icon_size in pwa_settings.APPLICATION_ICON_SIZES %}
<link rel="apple-touch-icon" sizes="{{icon_size}}"
{% thumbnail pwa_settings.application_icon icon_size crop='center' format='PNG' as im %}
href="{{ site_base }}{{ im.url }}">
href="{{ site_base }}{{ im.url }}">
{% endthumbnail %}
{% endfor %}
{% else %}
@ -26,52 +26,52 @@
{% endblock %}
{% block extra_top_head %}
{{ block.super }}
{% block extra_top_head_js %}
<script src="{{site_base}}{% xstatic 'jquery' 'jquery.min.js' %}"></script>
{% endblock %}
{% skeleton_extra_placeholder extra-top-head %}
{{ block.super }}
{% block extra_top_head_js %}
<script src="{{site_base}}{% xstatic 'jquery' 'jquery.min.js' %}"></script>
{% endblock %}
{% skeleton_extra_placeholder extra-top-head %}
{% end_skeleton_extra_placeholder %}
{% if page.picture %}
<style>
:root {
--page-picture: url("{{site_base}}{{page.picture.url}}");
}
{% block msie_css_page_picture %}
{# IE11 doesn't support CSS variable and supports() API, so we set it here #}
{# and themes that do need a different CSS will have to redefine the #}
{# msie_css_page_picture block. #}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
body.has-picture nav::after {
background-image: url("{{site_base}}{{page.picture.url}}");
}
}
{% endblock %}
</style>
<style>
:root {
--page-picture: url("{{site_base}}{{page.picture.url}}");
}
{% block msie_css_page_picture %}
{# IE11 doesn't support CSS variable and supports() API, so we set it here #}
{# and themes that do need a different CSS will have to redefine the #}
{# msie_css_page_picture block. #}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
body.has-picture nav::after {
background-image: url("{{site_base}}{{page.picture.url}}");
}
}
{% endblock %}
</style>
{% endif %}
{% endblock %}
{% block extra_scripts %}
{% if portal_agent_url and portal_agent_title %}
<script>
const PUBLIK_PORTAL_AGENT_URL = "{{portal_agent_url|escapejs}}";
const PUBLIK_PORTAL_AGENT_TITLE = "{{portal_agent_title|escapejs}}";
</script>
{% endif %}
<script src="{{site_base}}{% static 'js/combo.public.js' %}?{% start_timestamp %}" async></script>
<script src="{{site_base}}{% static 'js/combo.back.js' %}?{% start_timestamp %}" async></script>
{% if not no_extra_js %}
<script src="{{site_base}}{% static "" %}{{css_variant}}/extra.js?{% start_timestamp %}" async></script>
{% endif %}
{% skeleton_extra_placeholder extra-head %}
{% if portal_agent_url and portal_agent_title %}
<script>
const PUBLIK_PORTAL_AGENT_URL = "{{portal_agent_url|escapejs}}";
const PUBLIK_PORTAL_AGENT_TITLE = "{{portal_agent_title|escapejs}}";
</script>
{% endif %}
<script src="{{site_base}}{% static 'js/combo.public.js' %}?{% start_timestamp %}" async></script>
<script src="{{site_base}}{% static 'js/combo.back.js' %}?{% start_timestamp %}" async></script>
{% if not no_extra_js %}
<script src="{{site_base}}{% static "" %}{{css_variant}}/extra.js?{% start_timestamp %}" async></script>
{% endif %}
{% skeleton_extra_placeholder extra-head %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
{% block bodyattrs %}
data-api-root="{{ site_base }}/api/"
{% if check_badges %}data-check-badges="true"{% endif %}
{% if page.picture %}data-picture="{{site_base}}{{page.picture.url}}"{% endif %}
{% skeleton_extra_placeholder extra-body-args %}
data-api-root="{{ site_base }}/api/"
{% if check_badges %}data-check-badges="true"{% endif %}
{% if page.picture %}data-picture="{{site_base}}{{page.picture.url}}"{% endif %}
{% skeleton_extra_placeholder extra-body-args %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
@ -83,8 +83,8 @@ data-api-root="{{ site_base }}/api/"
{% with pages.0.slug as section %}{% if section %}section-{{section}}{% endif %}{% endwith %}
{% if page.picture %}has-picture{% endif %}
{% skeleton_extra_placeholder extra-body-class %}
{% if user.is_authenticated %}authenticated-user{% else %}anonymous-user{% endif %}
{% end_skeleton_extra_placeholder %}
{% if user.is_authenticated %}authenticated-user{% else %}anonymous-user{% endif %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
{% block title %} - {% if render_skeleton %}{% skeleton_extra_placeholder title %}{% firstof page_title site_title %}{% end_skeleton_extra_placeholder %}{% else %}{{page.title}}{% endif %}{% endblock %}
@ -105,15 +105,15 @@ data-api-root="{{ site_base }}/api/"
{% endblock %}
{% block before-main-content %}
{{ block.super }}
{% if pwa_display == "standalone" %}
{% pwa_navigation %}
{% endif %}
{{ block.super }}
{% if pwa_display == "standalone" %}
{% pwa_navigation %}
{% endif %}
{% endblock %}
{% block messages %}
{{ block.super }}
{% placeholder "messages" %}
{{ block.super }}
{% placeholder "messages" %}
{% endblock %}
{% block content %}
@ -122,16 +122,16 @@ data-api-root="{{ site_base }}/api/"
{% block sidebar %}{% endblock %}
<div id="columns-wrapper">
{% block columns-top %}
{% placeholder "columns-top" name=_('Top of content') optional=True acquired=False outer_tag=True %}
{% placeholder "columns-top" name=_('Top of content') optional=True acquired=False outer_tag=True %}
{% endblock %}
<div id="columns" class="clearfix">
{% block columns %}
{% trans "Content" as name %}
{% placeholder "content" name=name %}
{% trans "Content" as name %}
{% placeholder "content" name=name %}
{% endblock %}
</div>
{% block columns-bottom %}
{% placeholder "columns-bottom" name=_('Bottom of content') optional=True acquired=False outer_tag=True %}
{% placeholder "columns-bottom" name=_('Bottom of content') optional=True acquired=False outer_tag=True %}
{% endblock %}
</div>
{% endblock %}
@ -152,11 +152,11 @@ data-api-root="{{ site_base }}/api/"
{% endblock %}
{% block body-bottom %}
{% skeleton_extra_placeholder service-worker %}
{% if page.pk %} {# limit this to concrete pages on combo (ex: not 404) #}
{% if pwa_display == "standalone" %}
<script src="/service-worker-registration.js"></script>
{% skeleton_extra_placeholder service-worker %}
{% if page.pk %} {# limit this to concrete pages on combo (ex: not 404) #}
{% if pwa_display == "standalone" %}
<script src="/service-worker-registration.js"></script>
{% endif %}
{% endif %}
{% endif %}
{% end_skeleton_extra_placeholder %}
{% endblock %}

View File

@ -2,12 +2,12 @@
{% load combo i18n %}
{% block columns %}
<div class="column">
{% trans "Left column" as name %}
{% placeholder "content" name=name %}
</div>
<div class="column">
{% trans "Right column" as name %}
{% placeholder "right" name=name %}
</div>
<div class="column">
{% trans "Left column" as name %}
{% placeholder "content" name=name %}
</div>
<div class="column">
{% trans "Right column" as name %}
{% placeholder "right" name=name %}
</div>
{% endblock %}

View File

@ -2,12 +2,12 @@
{% load combo i18n %}
{% block columns %}
<div class="column">
{% trans "Left column" as name %}
{% placeholder "content" name=name %}
</div>
<div class="column">
{% trans "Right column" as name %}
{% placeholder "right" name=name %}
</div>
<div class="column">
{% trans "Left column" as name %}
{% placeholder "content" name=name %}
</div>
<div class="column">
{% trans "Right column" as name %}
{% placeholder "right" name=name %}
</div>
{% endblock %}

View File

@ -2,8 +2,8 @@
{% load combo i18n %}
{% block sidebar %}
<div id="sidebar">
{% trans "Sidebar" as name %}
{% placeholder "sidebar" name=name %}
</div>
<div id="sidebar">
{% trans "Sidebar" as name %}
{% placeholder "sidebar" name=name %}
</div>
{% endblock %}

View File

@ -1,11 +1,11 @@
{% load i18n %}
<h2>Démarches</h2>
{% for slug, categories in form_categories.items %}
<div class="categories-{{ slug }}">
<ul>
{% for data in categories.data %}
<li><a href="{{ data.url }}">{{ data.title }}</a></li>
{% endfor %}
</ul>
</div>
<div class="categories-{{ slug }}">
<ul>
{% for data in categories.data %}
<li><a href="{{ data.url }}">{{ data.title }}</a></li>
{% endfor %}
</ul>
</div>
{% endfor %}

View File

@ -1,143 +1,143 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="x-apple-disable-message-reformatting">
<title></title>
<style>
html,
body {
margin: 0 auto !important;
padding: 0 !important;
height: 100% !important;
width: 100% !important;
}
html,
body {
margin: 0 auto !important;
padding: 0 !important;
height: 100% !important;
width: 100% !important;
}
* {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
* {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
div[style*="margin: 16px 0"] {
margin:0 !important;
}
div[style*="margin: 16px 0"] {
margin:0 !important;
}
table,
td {
mso-table-lspace: 0pt !important;
mso-table-rspace: 0pt !important;
}
table,
td {
mso-table-lspace: 0pt !important;
mso-table-rspace: 0pt !important;
}
table {
border-spacing: 0 !important;
border-collapse: collapse !important;
table-layout: fixed !important;
margin: 0 auto !important;
}
table table table {
table-layout: auto;
}
table {
border-spacing: 0 !important;
border-collapse: collapse !important;
table-layout: fixed !important;
margin: 0 auto !important;
}
table table table {
table-layout: auto;
}
img {
-ms-interpolation-mode:bicubic;
}
img {
-ms-interpolation-mode:bicubic;
}
*[x-apple-data-detectors] {
color: inherit !important;
text-decoration: none !important;
}
*[x-apple-data-detectors] {
color: inherit !important;
text-decoration: none !important;
}
.x-gmail-data-detectors,
.x-gmail-data-detectors *,
.aBn {
border-bottom: 0 !important;
cursor: default !important;
}
.x-gmail-data-detectors,
.x-gmail-data-detectors *,
.aBn {
border-bottom: 0 !important;
cursor: default !important;
}
.button-link {
text-decoration: none !important;
}
.button-link {
text-decoration: none !important;
}
@media only screen and (min-device-width: 375px) and (max-device-width: 413px) { /* iPhone 6 and 6+ */
.email-container {
min-width: 375px !important;
}
@media only screen and (min-device-width: 375px) and (max-device-width: 413px) { /* iPhone 6 and 6+ */
.email-container {
min-width: 375px !important;
}
}
</style>
<style>
.button-td,
.button-a {
transition: all 100ms ease-in;
}
.button-td:hover,
.button-a:hover {
background: #555555 !important;
border-color: #555555 !important;
}
.button-td,
.button-a {
transition: all 100ms ease-in;
}
.button-td:hover,
.button-a:hover {
background: #555555 !important;
border-color: #555555 !important;
}
</style>
</head>
<body width="100%" bgcolor="#F2F2F2" style="margin: 0; mso-line-height-rule: exactly;">
</head>
<body width="100%" bgcolor="#F2F2F2" style="margin: 0; mso-line-height-rule: exactly;">
<center style="width: 100%; background: #F2F2F2;">
<div style="max-width: 600px; margin: auto;" class="email-container">
<!--[if mso]>
<div style="max-width: 600px; margin: auto;" class="email-container">
<!--[if mso]>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="600" align="center">
<tr>
<td>
<![endif]-->
{% include "emails/header.html" %}
{% include "emails/header.html" %}
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">
<tr>
<td bgcolor="{% if theme_color %}{{theme_color}}{% else %}#ffffff{% endif %}">
&nbsp;
</td>
</tr>
<tr>
<td bgcolor="#ffffff">
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td bgcolor="{% if theme_color %}{{theme_color}}{% else %}#ffffff{% endif %}">
&nbsp;
</td>
<td style="overflow-wrap: break-word; word-wrap: break-word; padding: 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">
{% block content %}
{% endblock %}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#ffffff">
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="overflow-wrap: break-word; word-wrap: break-word; padding: 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">
<tr>
<td bgcolor="{% if theme_color %}{{theme_color}}{% else %}#ffffff{% endif %}">
&nbsp;
</td>
</tr>
{% block content %}
{% endblock %}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="10" style="font-size: 0; line-height: 0;">
&nbsp;
</td>
</tr>
<tr>
<td bgcolor="{% if theme_color %}{{theme_color}}{% else %}#ffffff{% endif %}">
&nbsp;
</td>
</tr>
</table>
<tr>
<td height="10" style="font-size: 0; line-height: 0;">
&nbsp;
</td>
</tr>
</table>
{% include "emails/footer.html" %}
<!--[if mso]>
{% include "emails/footer.html" %}
<!--[if mso]>
</td>
</tr>
</table>
<![endif]-->
</div>
</div>
</center>
<!-- adapted from http://tedgoas.github.io/Cerberus templates -->
</body>
</body>
</html>

View File

@ -1,11 +1,11 @@
<br>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" style="margin: auto;">
<tr>
<td style="border-radius: 3px; background: #7D7D7D; background-color: #7D7D7D; text-align: center;" class="button-td">
<a href="{{url}}" style="background: #7D7D7D; background-color: #7D7D7D; border: 15px solid #7D7D7D; font-family: sans-serif; font-size: 13px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: bold;" class="button-a">
<span style="color:#ffffff;" class="button-link">{{label}}</span>
</a>
</td>
</tr>
<tr>
<td style="border-radius: 3px; background: #7D7D7D; background-color: #7D7D7D; text-align: center;" class="button-td">
<a href="{{url}}" style="background: #7D7D7D; background-color: #7D7D7D; border: 15px solid #7D7D7D; font-family: sans-serif; font-size: 13px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: bold;" class="button-a">
<span style="color:#ffffff;" class="button-link">{{label}}</span>
</a>
</td>
</tr>
</table>
<br>

View File

@ -2,9 +2,9 @@
<tr>
<td style="padding: 40px 10px;width: 100%;font-size: 12px; font-family: sans-serif; line-height:18px; text-align: center; color: #888888;" class="x-gmail-data-detectors">
{% block footer %}
{% if email_signature %}
{{ email_signature|linebreaks }}
{% endif %}
{% if email_signature %}
{{ email_signature|linebreaks }}
{% endif %}
{% endblock %}
</td>
</tr>

View File

@ -4,7 +4,7 @@
<span style="font-size: 15px; line-height: 20px;">
{% if email_header_img or email_header_asset %}<img style="max-width: {% firstof email_header_width "80%" %}" alt="{% firstof global_title "Compte Citoyen" %}" src="{{portal_url}}{% if email_header_img %}static/{{css_variant}}/{{ email_header_img }}{% else %}assets/emails:logo{% endif %}"/>
{% else %}
{% firstof global_title "Compte Citoyen" %}
{% firstof global_title "Compte Citoyen" %}
{% endif %}
</span>
</td>

View File

@ -1,13 +1,13 @@
{% extends theme_base %}
{% 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 %}
{% 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 %}

View File

@ -11,20 +11,20 @@
{% endblock %}
{% block extrascripts %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "" %}includes/gadjo-extra.css">
{% if portal_agent_extra_css|first == '/' %}
<link rel="stylesheet" type="text/css" href="{{ portal_url }}{{ portal_agent_extra_css }}">
{% elif portal_agent_extra_css %}
<link rel="stylesheet" type="text/css" href="{{ portal_agent_extra_css }}">
{% endif %}
{% if manager_homepage_url %}
<script src="{{manager_homepage_url}}__services.js"></script>
<script src="{{manager_homepage_url}}static/portal-agent/js/publik.js?{% start_timestamp %}"></script>
{% endif %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "" %}includes/gadjo-extra.css">
{% if portal_agent_extra_css|first == '/' %}
<link rel="stylesheet" type="text/css" href="{{ portal_url }}{{ portal_agent_extra_css }}">
{% elif portal_agent_extra_css %}
<link rel="stylesheet" type="text/css" href="{{ portal_agent_extra_css }}">
{% endif %}
{% if manager_homepage_url %}
<script src="{{manager_homepage_url}}__services.js"></script>
<script src="{{manager_homepage_url}}static/portal-agent/js/publik.js?{% start_timestamp %}"></script>
{% endif %}
{% endblock %}
{% block sidepage %}
<div id="sidepage">
<span id="applabel">Publik</span>
</div>
<div id="sidepage">
<span id="applabel">Publik</span>
</div>
{% endblock %}

View File

@ -9,29 +9,29 @@
</div>
{% block back-top-script %}
<script>
var back_top_scrollY;
$(function(){
var back_top_link = document.querySelector('.back-top--link');
var is_fixed = getComputedStyle(back_top_link, null).getPropertyValue("position") === "fixed";
if (is_fixed) {
back_top_link.classList.add('back-top-scrollY');
back_top_scroll_Y = new ComboScrollY({
limit: {% block back-top-scrollY-limit %}200{% endblock %},
below: function(){
{% block back-top-scrollY-below-callback %}
back_top_link.classList.add('below-scroll-limit');
back_top_link.classList.remove('above-scroll-limit');
{% endblock %}
},
above: function(){
{% block back-top-scrollY-above-callback %}
back_top_link.classList.add('above-scroll-limit');
back_top_link.classList.remove('below-scroll-limit');
{% endblock %}
}
});
}
});
</script>
<script>
var back_top_scrollY;
$(function(){
var back_top_link = document.querySelector('.back-top--link');
var is_fixed = getComputedStyle(back_top_link, null).getPropertyValue("position") === "fixed";
if (is_fixed) {
back_top_link.classList.add('back-top-scrollY');
back_top_scroll_Y = new ComboScrollY({
limit: {% block back-top-scrollY-limit %}200{% endblock %},
below: function(){
{% block back-top-scrollY-below-callback %}
back_top_link.classList.add('below-scroll-limit');
back_top_link.classList.remove('above-scroll-limit');
{% endblock %}
},
above: function(){
{% block back-top-scrollY-above-callback %}
back_top_link.classList.add('above-scroll-limit');
back_top_link.classList.remove('below-scroll-limit');
{% endblock %}
}
});
}
});
</script>
{% endblock %}

View File

@ -1,22 +1,22 @@
{% load combo %}
<nav role="navigation" class="site-nav">
<div id="nav-wrapper" class="gru-nav-wrapper">
{% block nav-pre %}{% endblock %}
<div id="nav" class="gru-nav togglable">
{% block nav-top %}{% endblock %}
<button id="nav-button" class="gru-nav-button togglable" aria-label="Menu">
<span class="sr-only">Ouvrir le menu</span>
<span class="icon-bar icon-bar-1"></span>
<span class="icon-bar icon-bar-2"></span>
<span class="icon-bar icon-bar-3"></span>
</button>
{% block menu %}
{% show_menu depth=2 ignore_visibility=True %}
{% placeholder "menu_right" %}
{% endblock %}
{% block nav-bottom %}{% endblock %}
</div> <!-- nav -->
{% block nav-post %}{% endblock %}
</div> <!-- nav-wrapper -->
<div id="nav-wrapper" class="gru-nav-wrapper">
{% block nav-pre %}{% endblock %}
<div id="nav" class="gru-nav togglable">
{% block nav-top %}{% endblock %}
<button id="nav-button" class="gru-nav-button togglable" aria-label="Menu">
<span class="sr-only">Ouvrir le menu</span>
<span class="icon-bar icon-bar-1"></span>
<span class="icon-bar icon-bar-2"></span>
<span class="icon-bar icon-bar-3"></span>
</button>
{% block menu %}
{% show_menu depth=2 ignore_visibility=True %}
{% placeholder "menu_right" %}
{% endblock %}
{% block nav-bottom %}{% endblock %}
</div> <!-- nav -->
{% block nav-post %}{% endblock %}
</div> <!-- nav-wrapper -->
</nav>

View File

@ -1,16 +1,16 @@
{% load gadjo static %}
{% if cnil_compliant_visits_tracking_js %}
<script type="text/javascript">
if (navigator.doNotTrack != '1') {
{{ cnil_compliant_visits_tracking_js|safe }}
}
</script>
{% elif visits_tracking_js %}
<script type="text/javascript" src="{{ site_base }}{% static 'js/cookie_usage_consent.js' %}?{% start_timestamp %}"></script>
<script type="text/javascript">
if (has_consent()) {
<script type="text/javascript">
if (navigator.doNotTrack != '1') {
{{ cnil_compliant_visits_tracking_js|safe }}
}
</script>
{% elif visits_tracking_js %}
<script type="text/javascript" src="{{ site_base }}{% static 'js/cookie_usage_consent.js' %}?{% start_timestamp %}"></script>
<script type="text/javascript">
if (has_consent()) {
{{ visits_tracking_js|safe }}
}
</script>
}
</script>
{% endif %}

View File

@ -1,25 +1,25 @@
{% load combo %}
{% if include_top_links != False %}
<div id="toplinks">
{% block user-info %}
{% skeleton_extra_placeholder user-info %}
{% if user.is_authenticated %}
<span class="logged-in">
{% if account_url %}<a class="account-link" href="{{ account_url }}">{% endif %}
<span class="connected-user">{% block user-info-user-name %}{% include "includes/user-info-user-name.html" %}{% endblock %}</span>{% if account_url %}</a>{% endif %}
<a accesskey="o" class="logout" href="{{ logout_url }}">{% block user-info-logout-label %}{% include "includes/user-info-logout-label.html" %}{% endblock %}</a>
</span>
{% else %}
<span class="login"><a accesskey="2" class="login-link" href="{{ login_url }}"
>{% block user-info-login-label %}{% include "includes/user-info-login-label.html" %}{% endblock %}
{% if registration_url and include_registration_link != False %}
</a>
<span class="user-info--separator"></span>
<a class="registration" href="{{registration_url}}"
>{% block user-info-registration-label %}{% include "includes/user-info-registration-label.html" %}{% endblock %}{% endif %}</a></span>
{% endif %}
{% end_skeleton_extra_placeholder %}
<div id="toplinks">
{% block user-info %}
{% skeleton_extra_placeholder user-info %}
{% if user.is_authenticated %}
<span class="logged-in">
{% if account_url %}<a class="account-link" href="{{ account_url }}">{% endif %}
<span class="connected-user">{% block user-info-user-name %}{% include "includes/user-info-user-name.html" %}{% endblock %}</span>{% if account_url %}</a>{% endif %}
<a accesskey="o" class="logout" href="{{ logout_url }}">{% block user-info-logout-label %}{% include "includes/user-info-logout-label.html" %}{% endblock %}</a>
</span>
{% else %}
<span class="login"><a accesskey="2" class="login-link" href="{{ login_url }}"
>{% block user-info-login-label %}{% include "includes/user-info-login-label.html" %}{% endblock %}
{% if registration_url and include_registration_link != False %}
</a>
<span class="user-info--separator"></span>
<a class="registration" href="{{registration_url}}"
>{% block user-info-registration-label %}{% include "includes/user-info-registration-label.html" %}{% endblock %}{% endif %}</a></span>
{% endif %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
</div>
{% endif %}

View File

@ -1,19 +1,19 @@
{% extends "emails/body_base.html" %}
{% block content %}
<p>Votre facture n° {{ invoice.id }}, émise le {{ invoice.creation_date|date:"DATE_FORMAT" }}
dun montant de {{ invoice.amount }}€ est disponible.</p>
<p>Votre facture n° {{ invoice.id }}, émise le {{ invoice.creation_date|date:"DATE_FORMAT" }}
dun montant de {{ invoice.amount }}€ est disponible.</p>
<p>Vous avez la possibilité de <a href="{{ portal_url }}">la voir en ligne</a>.</p>
<p>Vous avez la possibilité de <a href="{{ portal_url }}">la voir en ligne</a>.</p>
{% if invoice.online_payment %}
<p>
Pour la régler en ligne, veuillez cliquer sur le bouton suivant :
</p>
{% include "emails/button-link.html" with url=payment_url label="Régler en ligne" %}
{% endif %}
{% if invoice.online_payment %}
<p>
Pour la régler en ligne, veuillez cliquer sur le bouton suivant :
</p>
{% include "emails/button-link.html" with url=payment_url label="Régler en ligne" %}
{% endif %}
{% if invoice.no_online_payment_reason == 'autobilling' %}
<p>Le montant de la facture sera débité de votre compte le {{ invoice.payment_limit_date|date:"DATE_FORMAT" }}.</p>
{% endif %}
{% if invoice.no_online_payment_reason == 'autobilling' %}
<p>Le montant de la facture sera débité de votre compte le {{ invoice.payment_limit_date|date:"DATE_FORMAT" }}.</p>
{% endif %}
{% endblock %}

View File

@ -2,49 +2,49 @@
<h2>Appels{% if callee %} (ligne {{callee}}){% endif %}</h2>
<script>
function set_caller(caller) {
$('.combo-search-input').val(caller).trigger('change');
function set_caller(caller) {
$('.combo-search-input').val(caller).trigger('change');
window.sessionStorage.wcs_submission_context_channel = "phone";
window.sessionStorage.wcs_submission_context_caller = caller;
$('.backoffice-submission-cell').trigger('combo:submission-context-update');
}
window.sessionStorage.wcs_submission_context_channel = "phone";
window.sessionStorage.wcs_submission_context_caller = caller;
$('.backoffice-submission-cell').trigger('combo:submission-context-update');
}
</script>
<div id="calls" data-calls="{{ json|as_json }}">
{% if json %} {# callee has been set #}
<h3>Appel en cours</h3>
{% for call in json.data.current %}
{% if forloop.first %}
<script>
$(function() {
setTimeout(function() { set_caller('{{ call.caller }}') }, 0);
});
</script>
{% endif %}
<ul><li><span class="caller" title="Chercher ce numéro" data-caller="{{ call.caller }}">
{{call.start|parse_datetime|date:"H\hi"}} : {{ call.caller }}
</span></li></ul>
{% empty %}
<div>Pas dappel en cours</div>
{% endfor %}
{% if json %} {# callee has been set #}
<h3>Appel en cours</h3>
{% for call in json.data.current %}
{% if forloop.first %}
<script>
$(function() {
setTimeout(function() { set_caller('{{ call.caller }}') }, 0);
});
</script>
{% endif %}
<ul><li><span class="caller" title="Chercher ce numéro" data-caller="{{ call.caller }}">
{{call.start|parse_datetime|date:"H\hi"}} : {{ call.caller }}
</span></li></ul>
{% empty %}
<div>Pas dappel en cours</div>
{% endfor %}
{% for call in json.data.past|slice:":10" %}
{% if forloop.first %}<h3>Appels précédents</h3><ul>{% endif %}
<li><span class="caller" title="Chercher ce numéro" data-caller="{{ call.caller }}">
{{call.start|parse_datetime|date:"H\hi"}} : {{ call.caller }}
</span></li>
{% if forloop.last %}</ul>{% endif %}
{% endfor %}
{% endif %}
{% for call in json.data.past|slice:":10" %}
{% if forloop.first %}<h3>Appels précédents</h3><ul>{% endif %}
<li><span class="caller" title="Chercher ce numéro" data-caller="{{ call.caller }}">
{{call.start|parse_datetime|date:"H\hi"}} : {{ call.caller }}
</span></li>
{% if forloop.last %}</ul>{% endif %}
{% endfor %}
{% endif %}
</div>
<div>
<form>
{% if not callee %}
<div class="infonotice">
Indiquer le numéro de ligne à suivre.
</div>
<div class="infonotice">
Indiquer le numéro de ligne à suivre.
</div>
{% endif %}
<input {% if callee %}type="hidden"{% else %}type="text"{% endif %} name="callee" value="{{ callee }}">
{% if not callee %}<button></button>{% endif %}
@ -53,55 +53,55 @@ $(function() {
</div>
<script>
$(function() {
$('.caller').on('click', function(event) {
set_caller($(event.target).data('caller'));
});
var $cell = $('.configjsoncell.phone-calls');
{% if not callee %}
var callee = window.localStorage.publik_phone_callee;
if (callee) {
window.history.replaceState({}, "", "?callee=" + callee);
combo_load_cell($cell);
}
{% else %}
window.localStorage.publik_phone_callee = "{{ callee }}";
if (window.location.search != "?callee={{ callee }}") {
window.history.replaceState({}, "", "?callee={{ callee }}");
}
var current_calls = $cell.find('#calls').data('calls');
function get_caller(calls) {
if (calls && calls.data && calls.data.current && calls.data.current.length) return calls.data.current[0].caller;
return null;
}
function refresh_calls() {
$.ajax({url: $cell.data('ajax-cell-url') + '?callee={{ callee }}',
type: 'POST',
data: {'action': 'refresh'},
success: function(data) {
new_content = $('<div>' + data + '</div>');
var new_calls = $(new_content).find('#calls').data('calls');
var new_caller = get_caller(new_calls);
if (get_caller(current_calls) != new_caller) {
current_calls = new_calls;
$('#calls').replaceWith($(new_content).find('#calls'));
if (new_caller) {
set_caller(new_caller);
}
$(function() {
$('.caller').on('click', function(event) {
set_caller($(event.target).data('caller'));
});
var $cell = $('.configjsoncell.phone-calls');
{% if not callee %}
var callee = window.localStorage.publik_phone_callee;
if (callee) {
window.history.replaceState({}, "", "?callee=" + callee);
combo_load_cell($cell);
}
{% else %}
window.localStorage.publik_phone_callee = "{{ callee }}";
if (window.location.search != "?callee={{ callee }}") {
window.history.replaceState({}, "", "?callee={{ callee }}");
}
var current_calls = $cell.find('#calls').data('calls');
function get_caller(calls) {
if (calls && calls.data && calls.data.current && calls.data.current.length) return calls.data.current[0].caller;
return null;
}
function refresh_calls() {
$.ajax({url: $cell.data('ajax-cell-url') + '?callee={{ callee }}',
type: 'POST',
data: {'action': 'refresh'},
success: function(data) {
new_content = $('<div>' + data + '</div>');
var new_calls = $(new_content).find('#calls').data('calls');
var new_caller = get_caller(new_calls);
if (get_caller(current_calls) != new_caller) {
current_calls = new_calls;
$('#calls').replaceWith($(new_content).find('#calls'));
if (new_caller) {
set_caller(new_caller);
}
}
});
}
var refresh_interval_id = setInterval(refresh_calls, 2500);
$('button.release-line').on('click', function() {
clearInterval(refresh_interval_id);
window.localStorage.publik_phone_callee = "";
window.sessionStorage.wcs_submission_context_channel = "";
window.sessionStorage.wcs_submission_context_caller = "";
window.history.replaceState({}, "", "?callee=");
combo_load_cell($cell);
return false;
}
});
}
var refresh_interval_id = setInterval(refresh_calls, 2500);
$('button.release-line').on('click', function() {
clearInterval(refresh_interval_id);
window.localStorage.publik_phone_callee = "";
window.sessionStorage.wcs_submission_context_channel = "";
window.sessionStorage.wcs_submission_context_caller = "";
window.history.replaceState({}, "", "?callee=");
combo_load_cell($cell);
return false;
});
{% endif %}
});
{% endif %}
});
</script>

View File

@ -2,20 +2,20 @@
{% load combo gadjo static i18n %}
{% block css %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "" %}includes/gadjo-extra.css">
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}portal-agent/css/agent-portal.css"/>
{% if portal_agent_extra_css|first == '/' %}
<link rel="stylesheet" type="text/css" href="{{ portal_url }}{{ portal_agent_extra_css }}">
{% elif portal_agent_extra_css %}
<link rel="stylesheet" type="text/css" href="{{ portal_agent_extra_css }}">
{% endif %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "" %}includes/gadjo-extra.css">
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}portal-agent/css/agent-portal.css"/>
{% if portal_agent_extra_css|first == '/' %}
<link rel="stylesheet" type="text/css" href="{{ portal_url }}{{ portal_agent_extra_css }}">
{% elif portal_agent_extra_css %}
<link rel="stylesheet" type="text/css" href="{{ portal_agent_extra_css }}">
{% endif %}
{% endblock %}
{% block extrascripts %}
<script src="{% static "js/combo.public.js" %}"></script>
<script src="/__services.js"></script>
<script src="{% static "portal-agent/js/agent-portal.js" %}"></script>
<script src="{% static "portal-agent/js/publik.js" %}"></script>
<script src="{% static "js/combo.public.js" %}"></script>
<script src="/__services.js"></script>
<script src="{% static "portal-agent/js/agent-portal.js" %}"></script>
<script src="{% static "portal-agent/js/publik.js" %}"></script>
{% endblock %}
{% block page-title %}{% firstof site_title "Publik" %} - {{ page.title }}{% endblock %}
@ -23,16 +23,16 @@
{% block footer %}Combo — Copyright © Entrouvert{% endblock %}
{% block logout-url %}{{ logout_url }}{% endblock %}
{% block bodyargs %}
data-api-root="{{ site_base }}/api/"
{% if check_badges %}data-check-badges="true"{% endif %}
class="page-{{ page.slug }} page-template-{{ page.template_name }} {% with pages.0.slug as section %}{% if section %}section-{{section}}{% endif %}{% endwith %}"
data-api-root="{{ site_base }}/api/"
{% if check_badges %}data-check-badges="true"{% endif %}
class="page-{{ page.slug }} page-template-{{ page.template_name }} {% with pages.0.slug as section %}{% if section %}section-{{section}}{% endif %}{% endwith %}"
{% endblock %}
{% block content %}
<div id="portal-agent-content">
{% block combo-content %}
{% trans "Content" as name %}
{% placeholder "content" name=name %}
{% endblock %}
</div>
<div id="portal-agent-content">
{% block combo-content %}
{% trans "Content" as name %}
{% placeholder "content" name=name %}
{% endblock %}
</div>
{% endblock %}

View File

@ -2,14 +2,14 @@
{% load combo i18n %}
{% block combo-content %}
<div id="page-content" class="columns">
<div id="left">
{% trans "Left column" as name %}
{% placeholder "content" name=name %}
</div>
<div id="right">
{% trans "Right column" as name %}
{% placeholder "right" name=name %}
</div>
</div>
<div id="page-content" class="columns">
<div id="left">
{% trans "Left column" as name %}
{% placeholder "content" name=name %}
</div>
<div id="right">
{% trans "Right column" as name %}
{% placeholder "right" name=name %}
</div>
</div>
{% endblock %}

View File

@ -2,21 +2,21 @@
{% load combo i18n %}
{% block combo-content %}
<div id="page-content" class="columns">
<div id="left">
{% trans "Left column" as name %}
{% placeholder "content" name=name %}
</div>
<div id="right">
{% trans "Right column" as name %}
{% placeholder "right" name=name %}
</div>
</div>
<div id="page-content" class="columns">
<div id="left">
{% trans "Left column" as name %}
{% placeholder "content" name=name %}
</div>
<div id="right">
{% trans "Right column" as name %}
{% placeholder "right" name=name %}
</div>
</div>
{% endblock %}
{% block sidebar %}
<aside id="sidebar">
{% trans "Sidebar" as name %}
{% placeholder "sidebar" name=name %}
</aside>
<aside id="sidebar">
{% trans "Sidebar" as name %}
{% placeholder "sidebar" name=name %}
</aside>
{% endblock %}

View File

@ -2,15 +2,15 @@
{% load combo i18n %}
{% block combo-content %}
<div id="page-content">
{% trans "Content" as name %}
{% placeholder "content" name=name %}
</div>
<div id="page-content">
{% trans "Content" as name %}
{% placeholder "content" name=name %}
</div>
{% endblock %}
{% block sidebar %}
<aside id="sidebar">
{% trans "Sidebar" as name %}
{% placeholder "sidebar" name=name %}
</aside>
<aside id="sidebar">
{% trans "Sidebar" as name %}
{% placeholder "sidebar" name=name %}
</aside>
{% endblock %}

View File

@ -1,14 +1,14 @@
{% if results.data %}
{% if cell.has_multiple_search_services %}<p class="search-service-label">{{ search_service_label }}</p>{% endif %}
<div class="links-list">
<ul>
{% for item in results.data %}
{% if forloop.counter == 6 %}<li class="see-more"><a href="#">voir tous les résultats</a></li>{% endif %}
<li {% if forloop.counter > 5 %}class="hidden"{% endif %}><a
{% if item.url %}href="{{ item.url }}"{% else %}class="nolink"{% endif %}>{{ item.text }}</a>
{% if cell.has_multiple_search_services %}<p class="search-service-label">{{ search_service_label }}</p>{% endif %}
<div class="links-list">
<ul>
{% for item in results.data %}
{% if forloop.counter == 6 %}<li class="see-more"><a href="#">voir tous les résultats</a></li>{% endif %}
<li {% if forloop.counter > 5 %}class="hidden"{% endif %}><a
{% if item.url %}href="{{ item.url }}"{% else %}class="nolink"{% endif %}>{{ item.text }}</a>
{% if item.description %}<div>{{ item.description|safe }}</div>{% endif %}
</li>
{% endfor %}
</ul>
</div>
</li>
{% endfor %}
</ul>
</div>
{% endif %}

View File

@ -2,16 +2,16 @@
{% load i18n static %}
{% block extrascripts %}
{{ block.super }}
<script src="/__services.js"></script>
<script src="{% static "portal-agent/js/publik.js" %}"></script>
{{ block.super }}
<script src="/__services.js"></script>
<script src="{% static "portal-agent/js/publik.js" %}"></script>
{% endblock %}
{% block site-header %}
<h1 class="breadcrumbs">
{% block breadcrumb %}
{% endblock %}
</h1>
<h1 class="breadcrumbs">
{% block breadcrumb %}
{% endblock %}
</h1>
{% endblock %}
{% block user-name %}<a href="{{ idp_url }}manage/me/">{{ block.super }}</a>{% endblock %}
@ -20,7 +20,7 @@
{% endblock %}
{% block sidepage %}
<div id="sidepage">
<span id="applabel">Publik</span>
</div>
<div id="sidepage">
<span id="applabel">Publik</span>
</div>
{% endblock %}

View File

@ -1,5 +1,5 @@
{% extends "emails/body_base.html" %}
{% block content %}
{{ content }}
{{ content }}
{% endblock %}

View File

@ -1,309 +1,309 @@
{% extends "qommon/forms/widget.html" %}
{% block widget-control %}
{% with options=widget.get_options|list %}
{% with first_monday=options.0.options.details.JOURDATE|adjust_to_week_monday last_option=options|last %}
{% with last_day=last_option.options.details.JOURDATE|adjust_to_week_monday|add_days:6 %}
{% now 'Y-m-W' as current_week %}
{% spaceless %}
<button class="previous-week"></button>
<div class="week-list">
<div class="slider">
{% for day in first_monday|iterate_days_until:last_day %}
{% if day.weekday == 0 %}
{% with sunday=day|add_days:6 %}
<div class="week-title {% if form.var.current_day == day|date:"Y-m-d" or not form.var.current_day and current_week == day|date:"Y-m-W" %}current{% endif %}">
Du {{ day|date:"d/m" }} au {{ sunday|date:"d/m" }}
</div>
{% endwith %}
{% endif %}
<div class="day-item" data-weekday="{{ day.weekday }}">
<div class="day-title">
{{ day|date:"l d/m" }}
</div>
{% with day_str=day|date:"Y-m-d" %}
{% for option in options %}
{% if option.options.details.JOURDATE == day_str %}
<div class="activity-item {% if option.disabled %}disabled{% endif %} {% if widget.readonly %}readonly{% endif %}"
data-activity-type="{{ option.options.details.activity_type }}"
data-activity-id="{{ option.options.details.activity_id }}"
data-date="{{ option.options.details.JOURDATE }}"
{% if widget.readonly and not option.disabled %}
{% if option.selected and not option.options.prefill %}data-has-change
{% elif not option.selected and option.options.prefill %}data-has-change
{% endif %}
{% endif %}
>
<div class="activity-status {{ option.options.details.status_color }}"></div>
<div class="activity-label"/>
<label>
<input
{% if not widget.value and option.options.prefill %}checked="checked"{% endif %}
{% if option.selected %}checked="checked"
{% elif widget.readonly or option.disabled %}disabled{% endif %}
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}
type="checkbox"
{% if widget.readonly %}value="yes" disabled
{% else %}name="{{ option.name }}" value="yes"
{% endif %} />
<span>{{ option.options.details.activity_label }}</span>
</label>
{% if widget.readonly and option.selected %}<input type="hidden" name="{{ option.name }}" value="yes">{% endif %}
</div>
{% with options=widget.get_options|list %}
{% with first_monday=options.0.options.details.JOURDATE|adjust_to_week_monday last_option=options|last %}
{% with last_day=last_option.options.details.JOURDATE|adjust_to_week_monday|add_days:6 %}
{% now 'Y-m-W' as current_week %}
{% spaceless %}
<button class="previous-week"></button>
<div class="week-list">
<div class="slider">
{% for day in first_monday|iterate_days_until:last_day %}
{% if day.weekday == 0 %}
{% with sunday=day|add_days:6 %}
<div class="week-title {% if form.var.current_day == day|date:"Y-m-d" or not form.var.current_day and current_week == day|date:"Y-m-W" %}current{% endif %}">
Du {{ day|date:"d/m" }} au {{ sunday|date:"d/m" }}
</div>
{% endif %}
{% endfor %}
{% endwith %}
{% endwith %}
{% endif %}
<div class="day-item" data-weekday="{{ day.weekday }}">
<div class="day-title">
{{ day|date:"l d/m" }}
</div>
{% with day_str=day|date:"Y-m-d" %}
{% for option in options %}
{% if option.options.details.JOURDATE == day_str %}
<div class="activity-item {% if option.disabled %}disabled{% endif %} {% if widget.readonly %}readonly{% endif %}"
data-activity-type="{{ option.options.details.activity_type }}"
data-activity-id="{{ option.options.details.activity_id }}"
data-date="{{ option.options.details.JOURDATE }}"
{% if widget.readonly and not option.disabled %}
{% if option.selected and not option.options.prefill %}data-has-change
{% elif not option.selected and option.options.prefill %}data-has-change
{% endif %}
{% endif %}
>
<div class="activity-status {{ option.options.details.status_color }}"></div>
<div class="activity-label"/>
<label>
<input
{% if not widget.value and option.options.prefill %}checked="checked"{% endif %}
{% if option.selected %}checked="checked"
{% elif widget.readonly or option.disabled %}disabled{% endif %}
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}
type="checkbox"
{% if widget.readonly %}value="yes" disabled
{% else %}name="{{ option.name }}" value="yes"
{% endif %} />
<span>{{ option.options.details.activity_label }}</span>
</label>
{% if widget.readonly and option.selected %}<input type="hidden" name="{{ option.name }}" value="yes">{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
{% endwith %}
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
<button class="next-week"></button>
{% endspaceless %}
</div>
<button class="next-week"></button>
{% endspaceless %}
{% endwith %}
{% endwith %}
{% endwith %}
{% endwith %}
<style>
.template-caluire-reservations-enfant .content {
margin-top: 1em;
display: grid;
grid-template-columns: repeat(3, auto);
grid-template-rows: repeat(2, auto);
justify-items: left;
--min-column-width: 250;
}
.template-caluire-reservations-enfant .previous-week,
.template-caluire-reservations-enfant .next-week {
height: 3em;
width: 3em;
}
.template-caluire-reservations-enfant .next-week {
margin-left: 1rem;
}
.template-caluire-reservations-enfant .edit-btn {
grid-column: 2;
grid-row: 2;
}
.template-caluire-reservations-enfant .week-list {
overflow: hidden;
margin-bottom: 2rem;
width: 100%;
}
.template-caluire-reservations-enfant .slider {
column-gap: 0px;
display: grid;
grid-auto-columns: 0px;
grid-auto-rows: 0px;
grid-auto-flow: column;
position: relative;
}
.template-caluire-reservations-enfant .week-title {
display: block;
height: 3em;
line-height: 3em;
}
.template-caluire-reservations-enfant .week-item:nth-child(even) {
background: #fafafa;
}
.template-caluire-reservations-enfant .week-title {
border-bottom: 1px solid #888;
font-weight: bold;
margin-bottom: 1rem;
display: flex;
justify-content: center;
align-items: center;
height: 3.2rem;
}
.template-caluire-reservations-enfant .day-item {
margin: 0 1rem;
}
.template-caluire-reservations-enfant .day-title {
border-bottom: 1px solid #888;
margin: 1rem 0;
font-weight: bold;
}
.template-caluire-reservations-enfant .activity-item {
display: flex;
align-items: baseline;
margin: 0.3rem 0;
}
.template-caluire-reservations-enfant .activity-item.disabled {
color: #888;
}
.template-caluire-reservations-enfant .activity-status {
min-height: calc(0.66rem + 2px);
min-width: calc(0.66rem + 2px);
background: transparent;
border: 1px solid #aaa;
border-radius: 2px;
margin-right: 1rem;
}
.template-caluire-reservations-enfant .activity-status.green {
background: #3c3;
}
.template-caluire-reservations-enfant .activity-status.grey {
background: #aaa;
}
.template-caluire-reservations-enfant .activity-status.orange {
background: orange;
}
.template-caluire-reservations-enfant .activity-status.red {
background: red;
}
.template-caluire-reservations-enfant .activity-status.yellow {
background: yellow;
}
.template-caluire-reservations-enfant .activity-item[data-has-change] .activity-status:not(.green) {
background: #3f3;
}
.template-caluire-reservations-enfant .activity-item[data-has-change] .activity-status.green {
background: orange;
}
.template-caluire-reservations-enfant .activity-item[data-has-change] label {
font-weight: bold;
}
.template-caluire-reservations-enfant .activity-item:not(.readonly):not(.disabled) .activity-status {
display: none;
}
.template-caluire-reservations-enfant .activity-item input {
flex-shrink: 0;
margin-right: 1rem;
margin-bottom: 0;
}
.template-caluire-reservations-enfant .activity-item input[disabled] {
display: none;
}
.template-caluire-reservations-enfant .activity-label {
flex-grow: 1;
}
.template-caluire-reservations-enfant .activity-label label {
display: flex;
align-items: baseline;
}
</style>
<script>
function initAgendaWidget($widget) {
const $weekList = $('.week-list', $widget);
const $slider = $('.slider', $widget);
const $currentWeek = $('.week-title.current', $widget);
const $nextWeekButton = $('.next-week', $widget);
const $previousWeekButton = $('.previous-week', $widget);
const $editAgendaBtn = $('.edit-btn', $widget);
let $selectedWeek = $currentWeek;
function getPreviousWeek() { return $selectedWeek.prevAll('.week-title:first'); }
function getNextWeek() { return $selectedWeek.nextAll('.week-title:first'); }
function setCurrentWeek($week, enableTransition) {
if(!$week.length) {
return;
<style>
.template-caluire-reservations-enfant .content {
margin-top: 1em;
display: grid;
grid-template-columns: repeat(3, auto);
grid-template-rows: repeat(2, auto);
justify-items: left;
--min-column-width: 250;
}
const currentOffset = $week[0].offsetLeft;
$slider.css({
'transform': `translate(-${currentOffset}px)`,
'transition': (enableTransition ? 'transform 0.5s' : '')
});
$selectedWeek = $week;
$nextWeekButton.prop('disabled', getNextWeek().length == 0);
$previousWeekButton.prop('disabled', getPreviousWeek().length == 0);
const selectedWeekIsInPast = $selectedWeek.nextAll('.week-title.current').length;
$weekToEdit = selectedWeekIsInPast ? $currentWeek : $selectedWeek;
$editAgendaBtn.prop('href', $weekToEdit.attr('data-edit-url'));
}
function setPreviousWeek() { setCurrentWeek(getPreviousWeek(), true); return false; }
function setNextWeek() { setCurrentWeek(getNextWeek(), true); return false; }
$previousWeekButton.on('click', setPreviousWeek);
$nextWeekButton.on('click', setNextWeek);
let touchStartX = 0;
$widget.on('touchstart', (e) => {
touchStartX = e.changedTouches[0].screenX;
});
$widget.on('touchend', (e) => {
const touchEndX = e.changedTouches[0].screenX
if (touchEndX - touchStartX < -30) {
setNextWeek();
} else if (touchEndX - touchStartX > 30) {
setPreviousWeek();
.template-caluire-reservations-enfant .previous-week,
.template-caluire-reservations-enfant .next-week {
height: 3em;
width: 3em;
}
});
function updateColumnsWidth() {
const minWidth = $slider.css('--min-column-width');
const availableWidth = $weekList[0].offsetWidth;
let columnsWidth = availableWidth < minWidth ? availableWidth : availableWidth / Math.floor(availableWidth / minWidth);
$slider.css('grid-template-columns', `repeat(53, ${columnsWidth}px)`);
if($selectedWeek) {
// Update slider offset to bring it at the new position of the selectedWeek
setCurrentWeek($selectedWeek, false);
.template-caluire-reservations-enfant .next-week {
margin-left: 1rem;
}
}
function hideEmptyDays() {
let nbRows = 8;
for(let i = 0; i < 7; ++i) {
const $days = $(`.day-item[data-weekday=${i}]`, $widget);
const $activities = $('.activity-item', $days);
if(!$activities.length) {
$days.css('display', 'none');
nbRows -= 1;
.template-caluire-reservations-enfant .edit-btn {
grid-column: 2;
grid-row: 2;
}
.template-caluire-reservations-enfant .week-list {
overflow: hidden;
margin-bottom: 2rem;
width: 100%;
}
.template-caluire-reservations-enfant .slider {
column-gap: 0px;
display: grid;
grid-auto-columns: 0px;
grid-auto-rows: 0px;
grid-auto-flow: column;
position: relative;
}
.template-caluire-reservations-enfant .week-title {
display: block;
height: 3em;
line-height: 3em;
}
.template-caluire-reservations-enfant .week-item:nth-child(even) {
background: #fafafa;
}
.template-caluire-reservations-enfant .week-title {
border-bottom: 1px solid #888;
font-weight: bold;
margin-bottom: 1rem;
display: flex;
justify-content: center;
align-items: center;
height: 3.2rem;
}
.template-caluire-reservations-enfant .day-item {
margin: 0 1rem;
}
.template-caluire-reservations-enfant .day-title {
border-bottom: 1px solid #888;
margin: 1rem 0;
font-weight: bold;
}
.template-caluire-reservations-enfant .activity-item {
display: flex;
align-items: baseline;
margin: 0.3rem 0;
}
.template-caluire-reservations-enfant .activity-item.disabled {
color: #888;
}
.template-caluire-reservations-enfant .activity-status {
min-height: calc(0.66rem + 2px);
min-width: calc(0.66rem + 2px);
background: transparent;
border: 1px solid #aaa;
border-radius: 2px;
margin-right: 1rem;
}
.template-caluire-reservations-enfant .activity-status.green {
background: #3c3;
}
.template-caluire-reservations-enfant .activity-status.grey {
background: #aaa;
}
.template-caluire-reservations-enfant .activity-status.orange {
background: orange;
}
.template-caluire-reservations-enfant .activity-status.red {
background: red;
}
.template-caluire-reservations-enfant .activity-status.yellow {
background: yellow;
}
.template-caluire-reservations-enfant .activity-item[data-has-change] .activity-status:not(.green) {
background: #3f3;
}
.template-caluire-reservations-enfant .activity-item[data-has-change] .activity-status.green {
background: orange;
}
.template-caluire-reservations-enfant .activity-item[data-has-change] label {
font-weight: bold;
}
.template-caluire-reservations-enfant .activity-item:not(.readonly):not(.disabled) .activity-status {
display: none;
}
.template-caluire-reservations-enfant .activity-item input {
flex-shrink: 0;
margin-right: 1rem;
margin-bottom: 0;
}
.template-caluire-reservations-enfant .activity-item input[disabled] {
display: none;
}
.template-caluire-reservations-enfant .activity-label {
flex-grow: 1;
}
.template-caluire-reservations-enfant .activity-label label {
display: flex;
align-items: baseline;
}
</style>
<script>
function initAgendaWidget($widget) {
const $weekList = $('.week-list', $widget);
const $slider = $('.slider', $widget);
const $currentWeek = $('.week-title.current', $widget);
const $nextWeekButton = $('.next-week', $widget);
const $previousWeekButton = $('.previous-week', $widget);
const $editAgendaBtn = $('.edit-btn', $widget);
let $selectedWeek = $currentWeek;
function getPreviousWeek() { return $selectedWeek.prevAll('.week-title:first'); }
function getNextWeek() { return $selectedWeek.nextAll('.week-title:first'); }
function setCurrentWeek($week, enableTransition) {
if(!$week.length) {
return;
}
const currentOffset = $week[0].offsetLeft;
$slider.css({
'transform': `translate(-${currentOffset}px)`,
'transition': (enableTransition ? 'transform 0.5s' : '')
});
$selectedWeek = $week;
$nextWeekButton.prop('disabled', getNextWeek().length == 0);
$previousWeekButton.prop('disabled', getPreviousWeek().length == 0);
const selectedWeekIsInPast = $selectedWeek.nextAll('.week-title.current').length;
$weekToEdit = selectedWeekIsInPast ? $currentWeek : $selectedWeek;
$editAgendaBtn.prop('href', $weekToEdit.attr('data-edit-url'));
}
$slider.css('grid-template-rows', `repeat(${nbRows}, auto`);
function setPreviousWeek() { setCurrentWeek(getPreviousWeek(), true); return false; }
function setNextWeek() { setCurrentWeek(getNextWeek(), true); return false; }
$previousWeekButton.on('click', setPreviousWeek);
$nextWeekButton.on('click', setNextWeek);
let touchStartX = 0;
$widget.on('touchstart', (e) => {
touchStartX = e.changedTouches[0].screenX;
});
$widget.on('touchend', (e) => {
const touchEndX = e.changedTouches[0].screenX
if (touchEndX - touchStartX < -30) {
setNextWeek();
} else if (touchEndX - touchStartX > 30) {
setPreviousWeek();
}
});
function updateColumnsWidth() {
const minWidth = $slider.css('--min-column-width');
const availableWidth = $weekList[0].offsetWidth;
let columnsWidth = availableWidth < minWidth ? availableWidth : availableWidth / Math.floor(availableWidth / minWidth);
$slider.css('grid-template-columns', `repeat(53, ${columnsWidth}px)`);
if($selectedWeek) {
// Update slider offset to bring it at the new position of the selectedWeek
setCurrentWeek($selectedWeek, false);
}
}
function hideEmptyDays() {
let nbRows = 8;
for(let i = 0; i < 7; ++i) {
const $days = $(`.day-item[data-weekday=${i}]`, $widget);
const $activities = $('.activity-item', $days);
if(!$activities.length) {
$days.css('display', 'none');
nbRows -= 1;
}
$slider.css('grid-template-rows', `repeat(${nbRows}, auto`);
}
}
hideEmptyDays();
new ResizeObserver(updateColumnsWidth).observe($weekList[0]);
addEventListener('resize', updateColumnsWidth);
}
}
hideEmptyDays();
new ResizeObserver(updateColumnsWidth).observe($weekList[0]);
addEventListener('resize', updateColumnsWidth);
}
initAgendaWidget($('.template-caluire-reservations-enfant'));
initAgendaWidget($('.template-caluire-reservations-enfant'));
$('.template-caluire-reservations-enfant input').on('change', function() {
if ($(this).is(':checked')) {
var $current_item = $(this).parents('.activity-item').first();
$(this).parents('.day-item').find('.activity-item[data-activity-type="' +
$current_item.data('activity-type') + '"][data-date="' +
$current_item.data('date') + '"]:not([data-activity-id="' +
$current_item.data('activity-id') + '"])').find('input').prop('checked', false);
}
});
</script>
$('.template-caluire-reservations-enfant input').on('change', function() {
if ($(this).is(':checked')) {
var $current_item = $(this).parents('.activity-item').first();
$(this).parents('.day-item').find('.activity-item[data-activity-type="' +
$current_item.data('activity-type') + '"][data-date="' +
$current_item.data('date') + '"]:not([data-activity-id="' +
$current_item.data('activity-id') + '"])').find('input').prop('checked', false);
}
});
</script>
{% endblock %}

View File

@ -1,241 +1,241 @@
{% extends "qommon/forms/widget.html" %}
{% block widget-control %}
{% with options=widget.get_options|list %}
{% with options=widget.get_options|list %}
{% with first_monday=options.0.options.date|date|adjust_to_week_monday last_option=options|last %}
{% with last_day=last_option.options.date|date|adjust_to_week_monday|add_days:6 %}
{% now 'Y-m-d' as now %}
{% with first_monday=options.0.options.date|date|adjust_to_week_monday last_option=options|last %}
{% with last_day=last_option.options.date|date|adjust_to_week_monday|add_days:6 %}
{% now 'Y-m-d' as now %}
<button class="previous-week"></button>
<ul>
{% for day in first_monday|iterate_days_until:last_day %}
{% if day.weekday == 0 %}
{% if not forloop.first %}</ul></li>{% endif %}
<li class="week{% if forloop.first %} shown{% endif %}"><span class="week-title">Semaine<br class="weekbreak"> du {{day|date:"d/m"}} au {{day|add_days:6|date:"d/m"}}</span><ul>
{% endif %}
<li class="day-title {% if form.var.current_day == day|date:"Y-m-d" or not form.var.current_day and now == day|date:"Y-m-d" %}current{% endif %}" data-weekday="{{day.weekday}}"><strong>{{day|date:"l d/m"}}</strong></li>
{% with day_str=day|date:"Y-m-d" %}
{% for option in options %}
{% if option.options.date == day_str %}
<button class="previous-week"></button>
<ul>
{% for day in first_monday|iterate_days_until:last_day %}
{% if day.weekday == 0 %}
{% if not forloop.first %}</ul></li>{% endif %}
<li class="week{% if forloop.first %} shown{% endif %}"><span class="week-title">Semaine<br class="weekbreak"> du {{day|date:"d/m"}} au {{day|add_days:6|date:"d/m"}}</span><ul>
{% endif %}
<li class="day-title {% if form.var.current_day == day|date:"Y-m-d" or not form.var.current_day and now == day|date:"Y-m-d" %}current{% endif %}" data-weekday="{{day.weekday}}"><strong>{{day|date:"l d/m"}}</strong></li>
{% with day_str=day|date:"Y-m-d" %}
{% for option in options %}
{% if option.options.date == day_str %}
<li {% if option.disabled %}class="disabled"{% endif %}
data-date="{{ option.options.date }}"
{% if option.options.status %}data-status="{{ option.options.status }}"{% endif %}
{% if widget.readonly and not option.disabled %}
{% if option.selected and not option.options.booked_for_external_user %}data-has-change
{% elif not option.selected and option.options.booked_for_external_user %}data-has-change
{% endif %}
{% endif %}
><label><input
{% if not widget.value and option.options.booked_for_external_user %}checked="checked"
{% elif widget.value and option.options.booked_for_external_user and option.disabled %}checked="checked"
{% elif option.selected %}checked="checked"{% endif %}
{% if widget.readonly or option.disabled %}disabled{% endif %}
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}
type="checkbox"
data-event-id="{{ option.options.id }}"
data-overlaps="{{ option.options.overlaps|join:" " }}"
{% if widget.readonly %}value="yes" disabled
{% else %}name="{{ option.name }}" value="yes"
{% endif %}><span>{{ option.options.label }}</span></label>
{% if widget.readonly and option.selected %}<input type="hidden" name="{{ option.name }}" value="yes">{% endif %}
</li>
<li {% if option.disabled %}class="disabled"{% endif %}
data-date="{{ option.options.date }}"
{% if option.options.status %}data-status="{{ option.options.status }}"{% endif %}
{% if widget.readonly and not option.disabled %}
{% if option.selected and not option.options.booked_for_external_user %}data-has-change
{% elif not option.selected and option.options.booked_for_external_user %}data-has-change
{% endif %}
{% endif %}
><label><input
{% if not widget.value and option.options.booked_for_external_user %}checked="checked"
{% elif widget.value and option.options.booked_for_external_user and option.disabled %}checked="checked"
{% elif option.selected %}checked="checked"{% endif %}
{% if widget.readonly or option.disabled %}disabled{% endif %}
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}
type="checkbox"
data-event-id="{{ option.options.id }}"
data-overlaps="{{ option.options.overlaps|join:" " }}"
{% if widget.readonly %}value="yes" disabled
{% else %}name="{{ option.name }}" value="yes"
{% endif %}><span>{{ option.options.label }}</span></label>
{% if widget.readonly and option.selected %}<input type="hidden" name="{{ option.name }}" value="yes">{% endif %}
</li>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endwith %}
{% if forloop.last %}</ul></li>{% endif %}
{% endfor %}
</ul>
<button class="next-week"></button>
{% endwith %}
{% endwith %}
{% endwith %}
{% if forloop.last %}</ul></li>{% endif %}
{% endfor %}
</ul>
<button class="next-week"></button>
{% endwith %}
{% endwith %}
{% endwith %}
<style>
.template-famille-reservations-par-semaine .content {
margin-top: 1em;
display: flex;
}
<style>
.template-famille-reservations-par-semaine .content {
margin-top: 1em;
display: flex;
}
.template-famille-reservations-par-semaine .content ul li label {
.template-famille-reservations-par-semaine .content ul li label {
line-height: 150%;
}
.template-famille-reservations-par-semaine.widget-readonly .content {
margin-right: 1em;
}
.template-famille-reservations-par-semaine .content > ul {
width: 100%;
}
.template-famille-reservations-par-semaine .content > ul > li {
display: none;
}
.template-famille-reservations-par-semaine .content > ul > li.shown {
display: block;
}
.template-famille-reservations-par-semaine button.previous-week,
.template-famille-reservations-par-semaine button.next-week {
height: 3em;
z-index: 10;
}
.template-famille-reservations-par-semaine button.previous-week {
margin-left: 0;
margin-right: 1em;
}
.template-famille-reservations-par-semaine button.next-week {
margin-left: 1em;
margin-right: 0;
}
.template-famille-reservations-par-semaine .week-title {
display: block;
height: 3em;
line-height: 3em;
}
.template-famille-reservations-par-semaine li.day-title {
margin: 1em 0 0.5em 0;
}
.template-famille-reservations-par-semaine .content label {
position: relative;
}
.template-famille-reservations-par-semaine .content input[disabled] {
position: absolute;
opacity: 0;
}
.template-famille-reservations-par-semaine .content input[disabled] + span {
padding-left: 1.66rem;
}
.template-famille-reservations-par-semaine .content input[disabled] + span::before {
display: block;
content: '';
position: absolute;
margin: auto;
height: calc(0.66rem + 2px);
width: calc(0.66rem + 2px);
background: transparent;
top: 0.33rem;
left: 0;
border: 1px solid black;
border-radius: 2px;
}
.template-famille-reservations-par-semaine .content input[disabled] + span::before {
border: 1px solid #aaa;
}
.template-famille-reservations-par-semaine .content input[disabled] + span::after {
display: block;
content: '';
position: absolute;
margin: auto;
height: calc(0.66rem);
width: calc(0.66rem);
background: transparent;
transition: background 0.1s linear;
top: calc(0.33rem + 1px);
left: 1px;
}
.template-famille-reservations-par-semaine .content input:checked + span::after {
background: #3c3;
}
.template-famille-reservations-par-semaine .content [data-status=booked] input[disabled] + span::after {
background: #3c3;
}
.template-famille-reservations-par-semaine .content [data-status=absence] input[disabled] + span::after {
background: red;
}
.template-famille-reservations-par-semaine .content [data-status=cancelled] input[disabled] + span::after {
background: yellow;
}
div.CheckboxesWidget.template-famille-reservations-par-semaine div.content ul li.disabled {
color: #888;
}
.template-famille-reservations-par-semaine.widget-readonly .content [data-has-change] input[disabled]:checked + span::after {
background: #3f3;
}
.template-famille-reservations-par-semaine.widget-readonly .content [data-status=booked][data-has-change] input[disabled]:not(:checked) + span::after {
background: yellow;
}
.template-famille-reservations-par-semaine .content [data-has-change] label {
font-weight: bold;
}
br.weekbreak { display: none; }
@media screen and (max-width: 500px) {
br.weekbreak { display: block; }
div.template-famille-reservations-par-semaine div.content > ul {
margin: 0 -4em;
}
div.template-famille-reservations-par-semaine div.content > ul .week-title {
margin: 0 4em;
line-height: 150%;
}
text-align: center;
}
.template-famille-reservations-par-semaine.widget-readonly .content {
margin-right: 1em;
}
}
</style>
<script>
.template-famille-reservations-par-semaine .content > ul {
width: 100%;
}
function refresh_week_classes() {
$('p.activite').hide();
$('.week.shown [data-date]').each(function(idx, elem) {
$('.activite-' + $(elem).data('date')).show();
});
}
.template-famille-reservations-par-semaine .content > ul > li {
display: none;
}
.template-famille-reservations-par-semaine .content > ul > li.shown {
display: block;
}
.template-famille-reservations-par-semaine button.previous-week,
.template-famille-reservations-par-semaine button.next-week {
height: 3em;
z-index: 10;
}
.template-famille-reservations-par-semaine button.previous-week {
margin-left: 0;
margin-right: 1em;
}
.template-famille-reservations-par-semaine button.next-week {
margin-left: 1em;
margin-right: 0;
}
.template-famille-reservations-par-semaine .week-title {
display: block;
height: 3em;
line-height: 3em;
}
.template-famille-reservations-par-semaine li.day-title {
margin: 1em 0 0.5em 0;
}
.template-famille-reservations-par-semaine .content label {
position: relative;
}
.template-famille-reservations-par-semaine .content input[disabled] {
position: absolute;
opacity: 0;
}
.template-famille-reservations-par-semaine .content input[disabled] + span {
padding-left: 1.66rem;
}
.template-famille-reservations-par-semaine .content input[disabled] + span::before {
display: block;
content: '';
position: absolute;
margin: auto;
height: calc(0.66rem + 2px);
width: calc(0.66rem + 2px);
background: transparent;
top: 0.33rem;
left: 0;
border: 1px solid black;
border-radius: 2px;
}
.template-famille-reservations-par-semaine .content input[disabled] + span::before {
border: 1px solid #aaa;
}
.template-famille-reservations-par-semaine .content input[disabled] + span::after {
display: block;
content: '';
position: absolute;
margin: auto;
height: calc(0.66rem);
width: calc(0.66rem);
background: transparent;
transition: background 0.1s linear;
top: calc(0.33rem + 1px);
left: 1px;
}
.template-famille-reservations-par-semaine .content input:checked + span::after {
background: #3c3;
}
$('.template-famille-reservations-par-semaine .previous-week').on('click', function() {
var $prev = $('li.shown').prev();
if ($prev.length) { $('li.shown').removeClass('shown'); $prev.addClass('shown'); }
refresh_week_classes();
return false;
});
$('.template-famille-reservations-par-semaine .next-week').on('click', function() {
var $next = $('li.shown').next();
if ($next.length) { $('li.shown').removeClass('shown'); $next.addClass('shown'); }
refresh_week_classes();
return false;
});
$('.template-famille-reservations-par-semaine li.day-title').each(function(idx, elem) {
/* hide empty days */
var $next = $(elem).next();
if ($next.length == 0 || $next.is('.day-title')) {
$(elem).hide();
}
});
/* check overlaps */
$('.template-famille-reservations-par-semaine input').on('change', function() {
if ($(this).is(':checked')) {
$(this).parents('ul').find("input[data-overlaps~='"+$(this).data('event-id')+"']").prop('checked', false);
}
});
$('.template-famille-reservations-par-semaine input:disabled').each(function(index) {
if ($(this).attr('checked')) {
$(this).parents('ul').find("input[data-overlaps~='"+$(this).data('event-id')+"']").prop('disabled', true);
}
});
/* init first week shown */
var $cell = $('.template-famille-reservations-par-semaine');
$cell.find('li').removeClass('shown');
if ($('li.day-title.current', $cell).length) {
$('li.day-title.current', $cell).parents('li.week').addClass('shown');
} else {
$('li', $cell).first().addClass('shown');
}
.template-famille-reservations-par-semaine .content [data-status=booked] input[disabled] + span::after {
background: #3c3;
}
.template-famille-reservations-par-semaine .content [data-status=absence] input[disabled] + span::after {
background: red;
}
.template-famille-reservations-par-semaine .content [data-status=cancelled] input[disabled] + span::after {
background: yellow;
}
refresh_week_classes();
div.CheckboxesWidget.template-famille-reservations-par-semaine div.content ul li.disabled {
color: #888;
}
var observer = new MutationObserver(refresh_week_classes);
$('.comment-field').each(function(idx, elem) {
observer.observe(elem, {attributes: true, childList: true})
});
.template-famille-reservations-par-semaine.widget-readonly .content [data-has-change] input[disabled]:checked + span::after {
background: #3f3;
}
.template-famille-reservations-par-semaine.widget-readonly .content [data-status=booked][data-has-change] input[disabled]:not(:checked) + span::after {
background: yellow;
}
.template-famille-reservations-par-semaine .content [data-has-change] label {
font-weight: bold;
}
br.weekbreak { display: none; }
@media screen and (max-width: 500px) {
br.weekbreak { display: block; }
div.template-famille-reservations-par-semaine div.content > ul {
margin: 0 -4em;
}
div.template-famille-reservations-par-semaine div.content > ul .week-title {
margin: 0 4em;
line-height: 150%;
text-align: center;
}
}
</style>
<script>
function refresh_week_classes() {
$('p.activite').hide();
$('.week.shown [data-date]').each(function(idx, elem) {
$('.activite-' + $(elem).data('date')).show();
});
}
$('.template-famille-reservations-par-semaine .previous-week').on('click', function() {
var $prev = $('li.shown').prev();
if ($prev.length) { $('li.shown').removeClass('shown'); $prev.addClass('shown'); }
refresh_week_classes();
return false;
});
$('.template-famille-reservations-par-semaine .next-week').on('click', function() {
var $next = $('li.shown').next();
if ($next.length) { $('li.shown').removeClass('shown'); $next.addClass('shown'); }
refresh_week_classes();
return false;
});
$('.template-famille-reservations-par-semaine li.day-title').each(function(idx, elem) {
/* hide empty days */
var $next = $(elem).next();
if ($next.length == 0 || $next.is('.day-title')) {
$(elem).hide();
}
});
/* check overlaps */
$('.template-famille-reservations-par-semaine input').on('change', function() {
if ($(this).is(':checked')) {
$(this).parents('ul').find("input[data-overlaps~='"+$(this).data('event-id')+"']").prop('checked', false);
}
});
$('.template-famille-reservations-par-semaine input:disabled').each(function(index) {
if ($(this).attr('checked')) {
$(this).parents('ul').find("input[data-overlaps~='"+$(this).data('event-id')+"']").prop('disabled', true);
}
});
/* init first week shown */
var $cell = $('.template-famille-reservations-par-semaine');
$cell.find('li').removeClass('shown');
if ($('li.day-title.current', $cell).length) {
$('li.day-title.current', $cell).parents('li.week').addClass('shown');
} else {
$('li', $cell).first().addClass('shown');
}
refresh_week_classes();
var observer = new MutationObserver(refresh_week_classes);
$('.comment-field').each(function(idx, elem) {
observer.observe(elem, {attributes: true, childList: true})
});
</script>
</script>
{% endblock %}

View File

@ -1,90 +1,90 @@
{% extends "qommon/forms/widget.html" %}
{% block widget-control %}
<ul>
{% regroup widget.get_options by options.day as options_list %}
{% for day, options in options_list %}
<li class="day-title"><strong>{{ day }}</strong></li>
<ul>
{% for option in options %}
<li data-date="{{ option.options.date }}"><label><input
{% if option.selected %}checked="checked"
{% elif widget.readonly or option.disabled %}disabled{% endif %}
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}
type="checkbox"
data-event-id="{{ option.options.id }}"
data-overlaps="{{ option.options.overlaps|join:" " }}"
{% if widget.readonly %}value="yes" disabled
{% else %}name="{{ option.name }}" value="yes"
{% endif %}><span>{{ option.options.label }}</span></label>
{% if widget.readonly and option.selected %}<input type="hidden" name="{{ option.name }}" value="yes">{% endif %}
</li>
{% endfor %}
</ul>
{% endfor %}
</ul>
<style>
.template-famille-reservations-recurrentes .content {
margin-top: 1em;
display: flex;
}
.template-famille-reservations-recurrentes .content ul li label {
line-height: 150%;
}
.template-famille-reservations-recurrentes.widget-readonly .content {
margin-right: 1em;
}
.template-famille-reservations-recurrentes .content > ul {
width: 100%;
}
.template-famille-reservations-recurrentes li.day-title {
margin: 1em 0 0.5em 0;
}
.template-famille-reservations-recurrentes .content label {
position: relative;
}
.template-famille-reservations-recurrentes .content input[disabled] {
position: absolute;
opacity: 0;
}
.template-famille-reservations-recurrentes .content input[disabled] + span {
padding-left: 1.66rem;
}
.template-famille-reservations-recurrentes .content input[disabled] + span::before {
display: block;
content: '';
position: absolute;
margin: auto;
height: calc(0.66rem + 2px);
width: calc(0.66rem + 2px);
background: transparent;
top: 0.33rem;
left: 0;
border: 1px solid #aaa;
border-radius: 2px;
}
.template-famille-reservations-recurrentes .content input[disabled] + span::after {
display: block;
content: '';
position: absolute;
margin: auto;
height: calc(0.66rem);
width: calc(0.66rem);
background: transparent;
transition: background 0.1s linear;
top: calc(0.33rem + 1px);
left: 1px;
}
.template-famille-reservations-recurrentes .content input[disabled]:checked + span::after {
background: #3c3;
}
</style>
<script>
/* check overlaps */
$('.template-famille-reservations-recurrentes input').on('change', function() {
if ($(this).is(':checked')) {
$(this).parents('ul').find("input[data-overlaps~='"+$(this).data('event-id')+"']").prop('checked', false);
}
});
</script>
<ul>
{% regroup widget.get_options by options.day as options_list %}
{% for day, options in options_list %}
<li class="day-title"><strong>{{ day }}</strong></li>
<ul>
{% for option in options %}
<li data-date="{{ option.options.date }}"><label><input
{% if option.selected %}checked="checked"
{% elif widget.readonly or option.disabled %}disabled{% endif %}
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}
type="checkbox"
data-event-id="{{ option.options.id }}"
data-overlaps="{{ option.options.overlaps|join:" " }}"
{% if widget.readonly %}value="yes" disabled
{% else %}name="{{ option.name }}" value="yes"
{% endif %}><span>{{ option.options.label }}</span></label>
{% if widget.readonly and option.selected %}<input type="hidden" name="{{ option.name }}" value="yes">{% endif %}
</li>
{% endfor %}
</ul>
{% endfor %}
</ul>
<style>
.template-famille-reservations-recurrentes .content {
margin-top: 1em;
display: flex;
}
.template-famille-reservations-recurrentes .content ul li label {
line-height: 150%;
}
.template-famille-reservations-recurrentes.widget-readonly .content {
margin-right: 1em;
}
.template-famille-reservations-recurrentes .content > ul {
width: 100%;
}
.template-famille-reservations-recurrentes li.day-title {
margin: 1em 0 0.5em 0;
}
.template-famille-reservations-recurrentes .content label {
position: relative;
}
.template-famille-reservations-recurrentes .content input[disabled] {
position: absolute;
opacity: 0;
}
.template-famille-reservations-recurrentes .content input[disabled] + span {
padding-left: 1.66rem;
}
.template-famille-reservations-recurrentes .content input[disabled] + span::before {
display: block;
content: '';
position: absolute;
margin: auto;
height: calc(0.66rem + 2px);
width: calc(0.66rem + 2px);
background: transparent;
top: 0.33rem;
left: 0;
border: 1px solid #aaa;
border-radius: 2px;
}
.template-famille-reservations-recurrentes .content input[disabled] + span::after {
display: block;
content: '';
position: absolute;
margin: auto;
height: calc(0.66rem);
width: calc(0.66rem);
background: transparent;
transition: background 0.1s linear;
top: calc(0.33rem + 1px);
left: 1px;
}
.template-famille-reservations-recurrentes .content input[disabled]:checked + span::after {
background: #3c3;
}
</style>
<script>
/* check overlaps */
$('.template-famille-reservations-recurrentes input').on('change', function() {
if ($(this).is(':checked')) {
$(this).parents('ul').find("input[data-overlaps~='"+$(this).data('event-id')+"']").prop('checked', false);
}
});
</script>
{% endblock %}

View File

@ -3,46 +3,46 @@
<script type="text/javascript" src="/static/js/qommon.fileupload.js"></script>
<script>
$.CartaDs = {
change: function() {
var $widget = $(this).parents('.file-upload-widget');
var token = $widget.find('input[type=hidden]').val();
if (! token) return;
var url = $(this).data('url');
$widget.find('.remove').on('click', function() {
$.ajax({
url: url + token + '/delete/',
method: 'POST'
$.CartaDs = {
change: function() {
var $widget = $(this).parents('.file-upload-widget');
var token = $widget.find('input[type=hidden]').val();
if (! token) return;
var url = $(this).data('url');
$widget.find('.remove').on('click', function() {
$.ajax({
url: url + token + '/delete/',
method: 'POST'
});
});
});
}
}
}
$('.file-upload-widget input[type=file]').on('change', $.CartaDs.change);
$('.file-upload-widget.has-file input[type=file]').each($.CartaDs.change);
$('.file-upload-widget input[type=file]').on('change', $.CartaDs.change);
$('.file-upload-widget.has-file input[type=file]').each($.CartaDs.change);
$('button.plus').on('click', function() {
var $orig_file_button = $(this).parent().prev();
if (! $orig_file_button.is(':visible')) {
$orig_file_button.addClass('visible');
$('button.plus').on('click', function() {
var $orig_file_button = $(this).parent().prev();
if (! $orig_file_button.is(':visible')) {
$orig_file_button.addClass('visible');
return false;
}
var $file_button = $orig_file_button.clone();
$file_button.find('div.title').remove();
$file_button.find('input[type=hidden]').val('');
$file_button.find('.fileinfo').hide();
$file_button.find('input[type=file]').show().on('change', $.CartaDs.change);
$file_button.removeClass('has-file').addClass('has-no-file');
$(this).parent().before($file_button);
$file_button.each($.WcsFileUpload.prepare);
if ($(this).parents('.cartads-piece').find('.file-upload-widget').length == 6) {
$(this).attr('disabled', true);
}
return false;
}
var $file_button = $orig_file_button.clone();
$file_button.find('div.title').remove();
$file_button.find('input[type=hidden]').val('');
$file_button.find('.fileinfo').hide();
$file_button.find('input[type=file]').show().on('change', $.CartaDs.change);
$file_button.removeClass('has-file').addClass('has-no-file');
$(this).parent().before($file_button);
$file_button.each($.WcsFileUpload.prepare);
if ($(this).parents('.cartads-piece').find('.file-upload-widget').length == 6) {
$(this).attr('disabled', true);
}
return false;
});
});
$(function() {
$('.cartads-piece .file-upload-widget').each($.WcsFileUpload.prepare);
});
$(function() {
$('.cartads-piece .file-upload-widget').each($.WcsFileUpload.prepare);
});
</script>

View File

@ -1,42 +1,42 @@
{% load i18n %}
<div class="cartads-piece view-{{ view_name }} ">
<div class="cartads-piece view-{{ view_name }} ">
<div class="title grid-1-1 newline">{% if piece.codePiece %}{{ piece.codePiece }} - {% endif %}{{ piece.text }}
{% if piece.reglementaire and view_name != 'validation' %}<span class="required">*</span>{% endif %}</div>
{% if piece.reglementaire and view_name != 'validation' %}<span class="required">*</span>{% endif %}</div>
{% for file in piece.files %}
{% if view_name != 'validation' or file.token %}
<div class="file-upload-widget short {{ grid }} {% if file.token %}has-file{% endif %}">
<div class="file-button">
<input type="file" data-url="{{ file.url }}" data-max-file-size="26214400"
{% if piece.codePiece %}accept="application/pdf,image/jpeg"{% else %}accept="application/pdf"{% endif %}>
<input type="hidden" value="{{ file.token }}">
<div class="widget-message click-to-upload">
{% trans "Drop a file or click to select one" %}
</div>
<div class="widget-message upload-done">
{% if view_name != 'validation' %}{% trans "Upload done" %}{% endif %}
</div>
<style>.click-to-upload, .upload-done { display: none; }</style>
<div class="fileprogress" style="display: none;">
<div class="bar"
data-upload="{% trans "Upload in progress..." %}"
data-error="{% trans "Error during upload." %}"></div>
</div>
<div class="fileinfo">
<span class="filename">{{ file.name }}</span>
{% if view_name != 'validation' %}
<a href="#" class="remove" title="{% trans 'Remove this file' %}">{% trans "remove" %}</a>
{% endif %}
</div>
</div>
</div>
{% elif view_name == 'validation' and not piece.files.0.token %}
-
{% endif %}
{% if view_name != 'validation' or file.token %}
<div class="file-upload-widget short {{ grid }} {% if file.token %}has-file{% endif %}">
<div class="file-button">
<input type="file" data-url="{{ file.url }}" data-max-file-size="26214400"
{% if piece.codePiece %}accept="application/pdf,image/jpeg"{% else %}accept="application/pdf"{% endif %}>
<input type="hidden" value="{{ file.token }}">
<div class="widget-message click-to-upload">
{% trans "Drop a file or click to select one" %}
</div>
<div class="widget-message upload-done">
{% if view_name != 'validation' %}{% trans "Upload done" %}{% endif %}
</div>
<style>.click-to-upload, .upload-done { display: none; }</style>
<div class="fileprogress" style="display: none;">
<div class="bar"
data-upload="{% trans "Upload in progress..." %}"
data-error="{% trans "Error during upload." %}"></div>
</div>
<div class="fileinfo">
<span class="filename">{{ file.name }}</span>
{% if view_name != 'validation' %}
<a href="#" class="remove" title="{% trans 'Remove this file' %}">{% trans "remove" %}</a>
{% endif %}
</div>
</div>
</div>
{% elif view_name == 'validation' and not piece.files.0.token %}
-
{% endif %}
{% endfor %}
{% if piece.max_files > 1 and view_name != 'validation' %}
<div class="grid-1-12 button-plus">
<button class="plus">+</button>
</div>
<div class="grid-1-12 button-plus">
<button class="plus">+</button>
</div>
{% endif %}
</div>
</div>

View File

@ -5,51 +5,51 @@
{% endblock %}
{% block widget-content %}
{% if form %}
<input type="hidden" name="{{widget.name}}$latlng">
<div id="map-{{widget.name}}" class="qommon-map nearby-forms--map"
data-readonly="true"
{% for key, value in widget.map_attributes.items %}{{key}}="{{value}}" {% endfor %}
{% localize off %}
data-init-lat="{{ global_context.form_var_carte_lat }}"
data-init-lng="{{ global_context.form_var_carte_lon }}"
{% endlocalize %}
></div>
{% block list-header %}
<h3>Si votre signalement ne figure pas dans la liste ci-dessous, continuez</h3>
{% endblock %}
<ul class="nearby-forms">
{% with distance=global_context.form_option_distance|default:100|add:50 %}
{% with demands=form.objects.pending|distance_filter:distance %}
{% for formdata in demands %}
<li data-id="{{formdata.number}}" class="nearby-form"
{% localize off %}
data-geoloc-lat="{{formdata.geoloc.base.lat}}"
data-geoloc-lon="{{formdata.geoloc.base.lon}}"
{% endlocalize %}
>
{% if form %}
<input type="hidden" name="{{widget.name}}$latlng">
<div id="map-{{widget.name}}" class="qommon-map nearby-forms--map"
data-readonly="true"
{% for key, value in widget.map_attributes.items %}{{key}}="{{value}}" {% endfor %}
{% localize off %}
data-init-lat="{{ global_context.form_var_carte_lat }}"
data-init-lng="{{ global_context.form_var_carte_lon }}"
{% endlocalize %}
></div>
{% block list-header %}
<h3>Si votre signalement ne figure pas dans la liste ci-dessous, continuez</h3>
{% endblock %}
<ul class="nearby-forms">
{% with distance=global_context.form_option_distance|default:100|add:50 %}
{% with demands=form.objects.pending|distance_filter:distance %}
{% for formdata in demands %}
<li data-id="{{formdata.number}}" class="nearby-form"
{% localize off %}
data-geoloc-lat="{{formdata.geoloc.base.lat}}"
data-geoloc-lon="{{formdata.geoloc.base.lon}}"
{% endlocalize %}
>
<span class="nearby-form--marker-counter" id="nearby-{{forloop.counter}}">{{forloop.counter}}</span>
{% block problem-digest %}
<span class="nearby-form--digest">{{ formdata.digest }}</span>
<span class="nearby-form--digest">{{ formdata.digest }}</span>
{% endblock %}
<span class="nearby-form--datetime">Signalé le <time datetime="{{ formdata.receipt_date|datetime|date:"c" }}">{{ formdata.receipt_date }}</time></span>
{% if activate_plus1_action == "True" %}
<button class="nearby-form--plus1" role="button" data-plus1-url="{{formdata.api_url}}hooks/plus1/" aria-label="Même signalement">+1</button>
<button class="nearby-form--plus1" role="button" data-plus1-url="{{formdata.api_url}}hooks/plus1/" aria-label="Même signalement">+1</button>
{% endif %}
</li>
{% endfor %}
{% endwith %}
{% endwith %}
</ul>
<script src="{% static 'xstatic/jquery-ui.js' %}"></script>
<script src="{% static 'js/plus1.js' %}"></script>
{% else %} {# no form, this is the admin preview #}
<div class="infonotice">
{% block preview-impossible %}
Signalements à proximité, prévisualisation impossible.
{% endblock %}
</div>
{% endif %}
</li>
{% endfor %}
{% endwith %}
{% endwith %}
</ul>
<script src="{% static 'xstatic/jquery-ui.js' %}"></script>
<script src="{% static 'js/plus1.js' %}"></script>
{% else %} {# no form, this is the admin preview #}
<div class="infonotice">
{% block preview-impossible %}
Signalements à proximité, prévisualisation impossible.
{% endblock %}
</div>
{% endif %}
{% endblock %}

View File

@ -1,17 +1,17 @@
{% extends "qommon/forms/widgets/comment.html" %}
{% block widget-content %}
{% if form_tracking_code %}
{% with webservice.cartads_pieces.data as pieces %}
{% for piece in pieces %}
{% if piece.section_start %}<div class="grid-1-1 newline {{ piece.section_start|slugify }}"><h3>{{ piece.section_start }}</h3></div>{% endif %}
{% include "qommon/forms/widgets/includes/cartads-piece.html" with piece=piece grid="grid-1-3" view_name=publisher.get_request.view_name only %}
{% endfor %}
{% endwith %}
{% if publisher.get_request.view_name != 'validation' %}
{% include "qommon/forms/widgets/includes/cartads-js.html" only %}
{% endif %}
{% else %}
<div class="infonotice">Prévisualisation impossible.</div>
{% endif %}
{% if form_tracking_code %}
{% with webservice.cartads_pieces.data as pieces %}
{% for piece in pieces %}
{% if piece.section_start %}<div class="grid-1-1 newline {{ piece.section_start|slugify }}"><h3>{{ piece.section_start }}</h3></div>{% endif %}
{% include "qommon/forms/widgets/includes/cartads-piece.html" with piece=piece grid="grid-1-3" view_name=publisher.get_request.view_name only %}
{% endfor %}
{% endwith %}
{% if publisher.get_request.view_name != 'validation' %}
{% include "qommon/forms/widgets/includes/cartads-js.html" only %}
{% endif %}
{% else %}
<div class="infonotice">Prévisualisation impossible.</div>
{% endif %}
{% endblock %}

View File

@ -1,14 +1,14 @@
{% extends "qommon/forms/widgets/comment.html" %}
{% block widget-content %}
{% if form_tracking_code %}
{% with webservice.cartads_pieces_complementaires.data as pieces %}
{% for piece in pieces %}
{% include "qommon/forms/widgets/includes/cartads-piece.html" with piece=piece grid="grid-1-2" only %}
{% endfor %}
{% endwith %}
{% include "qommon/forms/widgets/includes/cartads-js.html" only %}
{% else %}
<div class="infonotice">Prévisualisation impossible.</div>
{% endif %}
{% if form_tracking_code %}
{% with webservice.cartads_pieces_complementaires.data as pieces %}
{% for piece in pieces %}
{% include "qommon/forms/widgets/includes/cartads-piece.html" with piece=piece grid="grid-1-2" only %}
{% endfor %}
{% endwith %}
{% include "qommon/forms/widgets/includes/cartads-js.html" only %}
{% else %}
<div class="infonotice">Prévisualisation impossible.</div>
{% endif %}
{% endblock %}

View File

@ -1,14 +1,14 @@
{% extends "qommon/forms/widgets/comment.html" %}
{% block widget-content %}
{% if global_context.form_var_dossier_tracking_code %}
{% with webservice.cartads_pieces_daact.data as pieces %}
{% for piece in pieces %}
{% include "qommon/forms/widgets/includes/cartads-piece.html" with piece=piece grid="grid-1-3" only %}
{% endfor %}
{% endwith %}
{% include "qommon/forms/widgets/includes/cartads-js.html" only %}
{% else %}
<div class="infonotice">Prévisualisation impossible.</div>
{% endif %}
{% if global_context.form_var_dossier_tracking_code %}
{% with webservice.cartads_pieces_daact.data as pieces %}
{% for piece in pieces %}
{% include "qommon/forms/widgets/includes/cartads-piece.html" with piece=piece grid="grid-1-3" only %}
{% endfor %}
{% endwith %}
{% include "qommon/forms/widgets/includes/cartads-js.html" only %}
{% else %}
<div class="infonotice">Prévisualisation impossible.</div>
{% endif %}
{% endblock %}

View File

@ -1,14 +1,14 @@
{% extends "qommon/forms/widgets/comment.html" %}
{% block widget-content %}
{% if global_context.form_var_dossier_tracking_code %}
{% with webservice.cartads_pieces_doc.data as pieces %}
{% for piece in pieces %}
{% include "qommon/forms/widgets/includes/cartads-piece.html" with piece=piece grid="grid-1-3" only %}
{% endfor %}
{% endwith %}
{% include "qommon/forms/widgets/includes/cartads-js.html" only %}
{% else %}
<div class="infonotice">Prévisualisation impossible.</div>
{% endif %}
{% if global_context.form_var_dossier_tracking_code %}
{% with webservice.cartads_pieces_doc.data as pieces %}
{% for piece in pieces %}
{% include "qommon/forms/widgets/includes/cartads-piece.html" with piece=piece grid="grid-1-3" only %}
{% endfor %}
{% endwith %}
{% include "qommon/forms/widgets/includes/cartads-js.html" only %}
{% else %}
<div class="infonotice">Prévisualisation impossible.</div>
{% endif %}
{% endblock %}

View File

@ -5,30 +5,30 @@
{% block widget-control %}
{% for option in widget.get_options %}
<label class="star-choice"
title="{{ option.label }}"
{% if option.disabled %}class="disabled"{% endif %}><input
{% if option.selected %}checked="checked"
{% elif widget.readonly or option.disabled %}disabled="disabled"{% endif %}
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}
type="radio" name="{{ widget.name }}"
value="{{ option.value }}"><span class="star" aria-hidden="true"></span><span class="star-label">{{ option.label }}</span></label>
{% if not forloop.last %}{{ widget.delim|safe }}{% endif %}
{% endfor %}
{% for option in widget.get_options %}
<label class="star-choice"
title="{{ option.label }}"
{% if option.disabled %}class="disabled"{% endif %}><input
{% if option.selected %}checked="checked"
{% elif widget.readonly or option.disabled %}disabled="disabled"{% endif %}
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}
type="radio" name="{{ widget.name }}"
value="{{ option.value }}"><span class="star" aria-hidden="true"></span><span class="star-label">{{ option.label }}</span></label>
{% if not forloop.last %}{{ widget.delim|safe }}{% endif %}
{% endfor %}
<script>
$(function() {
var $widget = $('#form_label_{{widget.name}}').parents('div.widget');
$widget.find('.star-choice input').on('change', function() {
if ($(this).is(':checked')) {
$(this).parent().nextAll().find('.star').removeClass('selected');
$(this).parent().prevAll().find('.star').addClass('selected');
$(this).next().addClass('selected');
}
});
$widget.find('input:checked').trigger('change');
});
</script>
<script>
$(function() {
var $widget = $('#form_label_{{widget.name}}').parents('div.widget');
$widget.find('.star-choice input').on('change', function() {
if ($(this).is(':checked')) {
$(this).parent().nextAll().find('.star').removeClass('selected');
$(this).parent().prevAll().find('.star').addClass('selected');
$(this).next().addClass('selected');
}
});
$widget.find('input:checked').trigger('change');
});
</script>
{% endblock %}

View File

@ -1,32 +1,32 @@
{% extends "qommon/forms/widget.html" %}
{% load qommon %}
{% block widget-control %}
<select style="display: none;" id="form_{{widget.name}}" name="{{widget.name}}"
<select style="display: none;" id="form_{{widget.name}}" name="{{widget.name}}"
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}>
<option value="">---</option>
{% for option in widget.get_options %}
<option data-index="{{ forloop.counter }}" {% for attr in option.attrs.items %} {{attr.0}}="{{attr.1}}"{% endfor %}
<option value="">---</option>
{% for option in widget.get_options %}
<option data-index="{{ forloop.counter }}" {% for attr in option.attrs.items %} {{attr.0}}="{{attr.1}}"{% endfor %}
>{{ option.description }}</option>
{% endfor %}
</select>
<div class="star-choice">
{% for option in widget.get_options %}
<span class="star" data-index="{{ forloop.counter }}"></span>
{% endfor %}
</div>
<script>
$(function() {
$('#form_{{widget.name}}').parent().find('.star-choice span').on('click', function() {
if ($(this).hasClass('selected')) {
$(this).nextAll().removeClass('selected');
} else {
$(this).prevAll().addClass('selected');
$(this).addClass('selected');
$(this).nextAll().removeClass('selected');
}
$('#form_{{widget.name}} option[data-index=' + $(this).data('index') + ']').prop('selected', true);
});
$('#form_{{widget.name}}').parent().find('.star-choice [data-index=' + $('#form_{{widget.name}} option:selected').data('index') + ']').trigger('click');
});
</script>
{% endfor %}
</select>
<div class="star-choice">
{% for option in widget.get_options %}
<span class="star" data-index="{{ forloop.counter }}"></span>
{% endfor %}
</div>
<script>
$(function() {
$('#form_{{widget.name}}').parent().find('.star-choice span').on('click', function() {
if ($(this).hasClass('selected')) {
$(this).nextAll().removeClass('selected');
} else {
$(this).prevAll().addClass('selected');
$(this).addClass('selected');
$(this).nextAll().removeClass('selected');
}
$('#form_{{widget.name}} option[data-index=' + $(this).data('index') + ']').prop('selected', true);
});
$('#form_{{widget.name}}').parent().find('.star-choice [data-index=' + $('#form_{{widget.name}} option:selected').data('index') + ']').trigger('click');
});
</script>
{% endblock %}

View File

@ -1,10 +1,10 @@
{% extends "qommon/forms/widgets/select-timetable.html" %}
{% block widget-control %}
{{ block.super }}
<style>
.template-timetable-radiobutton div.timetable-widget span.timetable-cell span { display: none; }
.template-timetable-radiobutton div.timetable-widget span.timetable-cell::before { content: "○"; }
.template-timetable-radiobutton div.timetable-widget span.timetable-cell.on::before { content: "●"; }
</style>
{{ block.super }}
<style>
.template-timetable-radiobutton div.timetable-widget span.timetable-cell span { display: none; }
.template-timetable-radiobutton div.timetable-widget span.timetable-cell::before { content: "○"; }
.template-timetable-radiobutton div.timetable-widget span.timetable-cell.on::before { content: "●"; }
</style>
{% endblock %}

View File

@ -1,96 +1,96 @@
{% extends "qommon/forms/widget.html" %}
{% block widget-error %}
{{ block.super }}
<span class="franceconnect--error" id="form_{{widget.name}}_error" style="display: none">Une erreur s'est produite lors de la récupération des données.</span>
{{ block.super }}
<span class="franceconnect--error" id="form_{{widget.name}}_error" style="display: none">Une erreur s'est produite lors de la récupération des données.</span>
{% endblock %}
{% block widget-control %}
<input id="form_{{widget.name}}" type="hidden" name="{{widget.name}}" data-initial-display-value="{{widget.get_display_value|default_if_none:''}}" data-url="{{widget.get_select2_url}}"{% if widget.value %} value="{{ widget.value }}"{% endif %} />
<input id="form_{{widget.name}}_display" type="text" name="{{widget.name}}_display" style="display: none" readonly />
<a class="franceconnect--clear" id="form_{{widget.name}}_clear" title="Supprimer" role="button" data-field-id="form_{{widget.name}}"></a>
<button class="franceconnect--button" id="form_{{widget.name}}_fc_button" data-field-id="form_{{widget.name}}" role="button">Obtenir avec FranceConnect</button>
<input id="form_{{widget.name}}" type="hidden" name="{{widget.name}}" data-initial-display-value="{{widget.get_display_value|default_if_none:''}}" data-url="{{widget.get_select2_url}}"{% if widget.value %} value="{{ widget.value }}"{% endif %} />
<input id="form_{{widget.name}}_display" type="text" name="{{widget.name}}_display" style="display: none" readonly />
<a class="franceconnect--clear" id="form_{{widget.name}}_clear" title="Supprimer" role="button" data-field-id="form_{{widget.name}}"></a>
<button class="franceconnect--button" id="form_{{widget.name}}_fc_button" data-field-id="form_{{widget.name}}" role="button">Obtenir avec FranceConnect</button>
{% if not request.is_in_backoffice %}
<script>
$(function () {
const fc_popup = function(url) {
const height = 670;
const width = 1000;
const left = (screen.width/2)-(width/2);
const top = (screen.height/2)-(height/2);
const popup = window.open(url, 'FranceConnect',
'scrollbars=true, width='+width+', height='+height+',top='+top+', left='+left+', resizable=no,copyhistory=no'
);
if (window.focus) popup.focus();
return popup;
};
{% if not request.is_in_backoffice %}
<script>
$(function () {
const fc_popup = function(url) {
const height = 670;
const width = 1000;
const left = (screen.width/2)-(width/2);
const top = (screen.height/2)-(height/2);
const popup = window.open(url, 'FranceConnect',
'scrollbars=true, width='+width+', height='+height+',top='+top+', left='+left+', resizable=no,copyhistory=no'
);
if (window.focus) popup.focus();
return popup;
};
const reset_field = function() {
const field_id = '#' + $(this).data('field-id');
$(field_id + '_fc_button').show();
$(field_id).val('');
$(this).hide();
$(field_id + '_display').val('');
$(field_id + '_display').hide();
};
const reset_field = function() {
const field_id = '#' + $(this).data('field-id');
$(field_id + '_fc_button').show();
$(field_id).val('');
$(this).hide();
$(field_id + '_display').val('');
$(field_id + '_display').hide();
};
const fill_field = function(field_id, value, display_value) {
const field_selector = '#' + field_id;
$(field_selector).val(value);
const fill_field = function(field_id, value, display_value) {
const field_selector = '#' + field_id;
$(field_selector).val(value);
const $field_display_value = $(field_selector + '_display');
$field_display_value.val(display_value);
$field_display_value.show();
$(field_selector + '_fc_button').hide();
$(field_selector + '_clear').show();
};
const $field_display_value = $(field_selector + '_display');
$field_display_value.val(display_value);
$field_display_value.show();
$(field_selector + '_fc_button').hide();
$(field_selector + '_clear').show();
};
let popup_window = null;
let field_id = null;
const $input = $('div.template-franceconnect-data #form_{{widget.name}}');
let popup_window = null;
let field_id = null;
const $input = $('div.template-franceconnect-data #form_{{widget.name}}');
if ($input.val()) {
fill_field($input.attr('id'), $input.val(), $input.data('initial-display-value'));
}
if ($input.val()) {
fill_field($input.attr('id'), $input.val(), $input.data('initial-display-value'));
}
$('.franceconnect--clear').on('click', reset_field);
$('.franceconnect--clear').on('click', reset_field);
$.getJSON($input.data('url') + '?q=', function (response) {
const init_request_url = response.data[0].init_request_url;
$('.franceconnect--button').on('click', function (event) {
$.getJSON($input.data('url') + '?q=', function (response) {
const init_request_url = response.data[0].init_request_url;
$('.franceconnect--button').on('click', function (event) {
if (popup_window) {
popup_window.close();
}
field_id = $(this).data('field-id');
let popup_url = init_request_url;
const origin = 'origin=' + window.location.href;
if (init_request_url.indexOf('?') != -1) {
popup_url += '&' + origin;
} else {
popup_url += '?' + origin;
}
popup_window = fc_popup(popup_url);
return false;
});
});
$(window).on('message', function (event) {
if (!event.originalEvent.data.error) {
fill_field(field_id, event.originalEvent.data.id, event.originalEvent.data.text);
} else {
$('#' + field_id + '_error').show();
console.error(event.originalEvent.data.error);
console.error(event.originalEvent.data.data);
}
if (popup_window) {
popup_window.close();
}
field_id = $(this).data('field-id');
let popup_url = init_request_url;
const origin = 'origin=' + window.location.href;
if (init_request_url.indexOf('?') != -1) {
popup_url += '&' + origin;
} else {
popup_url += '?' + origin;
}
popup_window = fc_popup(popup_url);
return false;
});
});
$(window).on('message', function (event) {
if (!event.originalEvent.data.error) {
fill_field(field_id, event.originalEvent.data.id, event.originalEvent.data.text);
} else {
$('#' + field_id + '_error').show();
console.error(event.originalEvent.data.error);
console.error(event.originalEvent.data.data);
}
if (popup_window) {
popup_window.close();
}
popup_window = null;
field_id = null;
});
});
</script>
{% endif %}
popup_window = null;
field_id = null;
});
});
</script>
{% endif %}
{% endblock %}

View File

@ -1,59 +1,59 @@
{% extends "emails/body_base.html" %}
{% block content %}
{% if existing_accounts %}
<p>Bonjour,</p>
{% if existing_accounts %}
<p>Bonjour,</p>
<p>
Vous possédez déjà un compte associé à cette adresse électronique.
</p>
<p>
Vous possédez déjà un compte associé à cette adresse électronique.
</p>
<p>
Pour vous connecter, vous pouvez cliquer sur le bouton suivant :
</p>
<p>
Pour vous connecter, vous pouvez cliquer sur le bouton suivant :
</p>
{% include "emails/button-link.html" with url=registration_url label="Me connecter" %}
{% include "emails/button-link.html" with url=registration_url label="Me connecter" %}
<p>
{% if expiration_days == 1 %}
Attention, ce bouton nest valable que pendant 24h.
{% else %}
Attention, ce bouton nest valable que pendant {{expiration_days}} jours.
{% endif %}
</p>
<p>
Après connexion vous pourrez si besoin modifier votre mot de passe sur la page de votre
compte.
</p>
<p>
En cas de mot de passe perdu, vous pouvez à tout moment utiliser le formulaire de récupération de
mot de passe sur la page de connexion.
</p>
<p>
{% if expiration_days == 1 %}
Attention, ce bouton nest valable que pendant 24h.
{% else %}
Attention, ce bouton nest valable que pendant {{expiration_days}} jours.
<p>Bonjour,</p>
<p>
Vous venez de créer votre compte, nous vous en remercions.
</p>
<p>
Pour choisir un mot de passe et finaliser la création de votre compte, veuillez cliquer
sur le bouton suivant :
</p>
{% include "emails/button-link.html" with url=registration_url label="Finaliser linscription" %}
<p>
{% if expiration_days == 1 %}
Attention, sans validation de votre part dans les 24 heures, votre demande de compte
sera annulée.
{% else %}
Attention, sans validation de votre part dans les {{expiration_days}} jours, votre
demande de compte sera annulée.
{% endif %}
</p>
{% endif %}
</p>
<p>
Après connexion vous pourrez si besoin modifier votre mot de passe sur la page de votre
compte.
</p>
<p>
En cas de mot de passe perdu, vous pouvez à tout moment utiliser le formulaire de récupération de
mot de passe sur la page de connexion.
</p>
{% else %}
<p>Bonjour,</p>
<p>
Vous venez de créer votre compte, nous vous en remercions.
</p>
<p>
Pour choisir un mot de passe et finaliser la création de votre compte, veuillez cliquer
sur le bouton suivant :
</p>
{% include "emails/button-link.html" with url=registration_url label="Finaliser linscription" %}
<p>
{% if expiration_days == 1 %}
Attention, sans validation de votre part dans les 24 heures, votre demande de compte
sera annulée.
{% else %}
Attention, sans validation de votre part dans les {{expiration_days}} jours, votre
demande de compte sera annulée.
{% endif %}
</p>
{% endif %}
{% endblock %}

View File

@ -2,23 +2,23 @@
{% load gadjo i18n %}
{% block title %}
{% trans "Resetting password" %}
{% trans "Resetting password" %}
{% endblock %}
{% block content %}
<div class="password-reset-form">
<div class="password-reset-form">
<p>
Si vous avez égaré votre mot de passe et que vous souhaitez pouvoir vous
connecter à nouveau indiquez votre adresse électronique. Vous recevrez un
courriel vous permettant de définir un nouveau mot de passe.
</p>
<p>
Si vous avez égaré votre mot de passe et que vous souhaitez pouvoir vous
connecter à nouveau indiquez votre adresse électronique. Vous recevrez un
courriel vous permettant de définir un nouveau mot de passe.
</p>
<form method="post" class="pk-mark-optional-fields">
{% csrf_token %}
{{ form|with_template }}
<button class="submit-button">{% trans 'Submit' %}</button>
</form>
<form method="post" class="pk-mark-optional-fields">
{% csrf_token %}
{{ form|with_template }}
<button class="submit-button">{% trans 'Submit' %}</button>
</form>
</div>
</div>
{% endblock %}

View File

@ -2,36 +2,36 @@
{% load i18n %}
{% block title %}
{% trans "Registration" %}
{% trans "Registration" %}
{% endblock %}
{% block extra-body-class %}{{ block.super }} registration-page{% endblock %}
{% block placeholder-content %}
{% include "authentic2/service_info_fragment.html" %}
{% include "authentic2/service_info_fragment.html" %}
{% block registration-pre %}{% endblock %}
<div id="registration-blocks" class="methods{{frontends.items|length}}">
{% block registration-top %}{% endblock %}
{% block registration-pre %}{% endblock %}
<div id="registration-blocks" class="methods{{frontends.items|length}}">
{% block registration-top %}{% endblock %}
{% block registration-other-methods %}
{% for id, block in frontends.items %}
{% if id == "password" %}
<div id="frontend-registration-email" class="a2-block">
{{ block.content|safe }}
{% else %}
<div id="frontend-registration-{{ id }}" class="a2-block">
<h2>{{ block.name }}</h2>
<div>
{{ block.content|safe }}
{% block registration-other-methods %}
{% for id, block in frontends.items %}
{% if id == "password" %}
<div id="frontend-registration-email" class="a2-block">
{{ block.content|safe }}
{% else %}
<div id="frontend-registration-{{ id }}" class="a2-block">
<h2>{{ block.name }}</h2>
<div>
{{ block.content|safe }}
</div>
{% endif %}
</div>
{% endif %}
</div>
{% endfor %}
{% endblock %}
{% endfor %}
{% endblock %}
{% block registration-bottom %}{% endblock %}
</div> <!-- #registration-blocks -->
{% block registration-post %}{% endblock %}
{% block registration-bottom %}{% endblock %}
</div> <!-- #registration-blocks -->
{% block registration-post %}{% endblock %}
{% endblock %}

View File

@ -8,35 +8,35 @@
<title>{% firstof global_title site_title "Compte Citoyen" %} {% block title %}{% endblock %}</title>
{% if site_base %}<link rel="preconnect" href="{{ site_base }}">{% endif %}
{% if meta_robots %}
<meta name="robots" content="{{ meta_robots }}" />
<meta name="robots" content="{{ meta_robots }}" />
{% elif environment_label %}
<meta name="robots" content="noindex, nofollow, noarchive, nosnippet, notranslate, noimageindex" />
<meta name="robots" content="noindex, nofollow, noarchive, nosnippet, notranslate, noimageindex" />
{% endif %}
{% if meta_description %}
<meta name="description" content="{{ meta_description }}" />
<meta name="description" content="{{ meta_description }}" />
{% endif %}
{% if meta_keywords %}
<meta name="keywords" content="{{ meta_keywords }}" />
<meta name="keywords" content="{{ meta_keywords }}" />
{% endif %}
{% block meta_icons %}{% endblock %}
{% if theme_color %}
<meta name="theme-color" content="{{theme_color}}">
<meta name="msapplication-navbutton-color" content="{{theme_color}}">
<meta name="theme-color" content="{{theme_color}}">
<meta name="msapplication-navbutton-color" content="{{theme_color}}">
{% endif %}
<meta name="apple-mobile-web-app-title" content="{{ pwa_settings.get_application_name }}">
<link rel="manifest" href="{{site_base}}/manifest.json">
{% if pwa_display == "standalone" %}
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
{% endif %}
{% block extra_top_head %}
{% endblock %}
{{ media }}
{% block css-variant %}
{% if css_variant %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "" %}{{css_variant}}/style.css?{% start_timestamp %}">
{% else %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "style.css" %}?{% start_timestamp %}">
{% endif %}
{% if css_variant %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "" %}{{css_variant}}/style.css?{% start_timestamp %}">
{% else %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "style.css" %}?{% start_timestamp %}">
{% endif %}
{% endblock %}
{% block extra_css %}
{% endblock %}
@ -44,94 +44,94 @@
{% endblock %}
</head>
<body {% block bodyargs %}class="{% block bodyclasses %}{% endblock %}" {% block bodyattrs %}{% endblock %}{% endblock %}>
<div id="nav-skip">
<ul>
<li><a href="#main-content">Aller au contenu</a></li>
<li><a href="#nav">Aller au menu</a></li>
</ul>
</div>
<div id="nav-skip">
<ul>
<li><a href="#main-content">Aller au contenu</a></li>
<li><a href="#nav">Aller au menu</a></li>
</ul>
</div>
<div id="page" {% block page-args %}{% endblock %}>
<header role="banner" class="site-header">
<div id="header-wrapper" >
{% block header-pre %}{% endblock %}
<div id="header">
{% block header-top %}{% endblock %}
<div id="top">
{% block header-title %}
<h1 id="logo"><a accesskey="1" href="{% firstof logo_link_url portal_url '/' %}">{% firstof global_title site_title "Compte Citoyen" %}</a></h1>
{% endblock %}
<div id="page" {% block page-args %}{% endblock %}>
<header role="banner" class="site-header">
<div id="header-wrapper" >
{% block header-pre %}{% endblock %}
<div id="header">
{% block header-top %}{% endblock %}
<div id="top">
{% block header-title %}
<h1 id="logo"><a accesskey="1" href="{% firstof logo_link_url portal_url '/' %}">{% firstof global_title site_title "Compte Citoyen" %}</a></h1>
{% endblock %}
{% block header-content %}
{% block top-links %}
{% endblock %}
{% endblock %}
</div>
{% block header-bottom %}{% endblock %}
</div> <!-- header -->
{% block header-post %}{% endblock %}
</div> <!-- header-wrapper -->
</header>
{% block header-content %}
{% block top-links %}
{% endblock %}
{% endblock %}
</div>
{% block header-bottom %}{% endblock %}
</div> <!-- header -->
{% block header-post %}{% endblock %}
</div> <!-- header-wrapper -->
</header>
{% block after-header %}
{% block nav %}
{% endblock %}
{% endblock %}
{% block after-header %}
{% block nav %}
{% endblock %}
{% endblock %}
{% block before-main-content %}
{% endblock %}
{% block before-main-content %}
{% endblock %}
<main role="main">
<div id="main-content-wrapper">
<div id="main-content">
<main role="main">
<div id="main-content-wrapper">
<div id="main-content">
{% block content-messages %}
{% 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 %}
{% endblock %}
{% block content-pre %}{% endblock %}
<div id="content" class="central-content gru-content">
{% block content-top %}{% endblock %}
{% block content %}
{% block content-messages %}
{% 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 %}
{% endblock %}
{% block content-bottom %}{% endblock %}
</div> <!-- #content -->
{% block content-post %}{% endblock %}
</div> <!-- #main-content -->
</div> <!-- #main-content-wrapper -->
</main>
{% block content-pre %}{% endblock %}
<div id="content" class="central-content gru-content">
{% block content-top %}{% endblock %}
{% block content %}
{% endblock %}
{% block content-bottom %}{% endblock %}
</div> <!-- #content -->
{% block content-post %}{% endblock %}
<footer role="contentinfo">
{% block footer-pre %}{% endblock %}
<div id="footer-wrapper">
<div id="footer" class="clearfix">
{% block footer-top %}{% endblock %}
{% block footer %}
<p id="legal">Copyright © 2005-2016 Entr'ouvert</p>
{% endblock %}
{% block footer-bottom %}
{% block back-top %}
{% endblock %}
{% endblock %}
</div>
</div>
{% block footer-post %}{% endblock %}
</footer>
</div> <!-- #page -->
{% if environment_label %}<span id="environment-label">{{ environment_label }}</span>{% endif %}
{% include "includes/tracking.html" %}
{% block body-bottom %}
{% endblock %}
</div> <!-- #main-content -->
</div> <!-- #main-content-wrapper -->
</main>
<footer role="contentinfo">
{% block footer-pre %}{% endblock %}
<div id="footer-wrapper">
<div id="footer" class="clearfix">
{% block footer-top %}{% endblock %}
{% block footer %}
<p id="legal">Copyright © 2005-2016 Entr'ouvert</p>
{% endblock %}
{% block footer-bottom %}
{% block back-top %}
{% endblock %}
{% endblock %}
</div>
</div>
{% block footer-post %}{% endblock %}
</footer>
</div> <!-- #page -->
{% if environment_label %}<span id="environment-label">{{ environment_label }}</span>{% endif %}
{% include "includes/tracking.html" %}
{% block body-bottom %}
{% endblock %}
</body>
</html>

View File

@ -1,8 +1,8 @@
{% extends "authentic2/login.html" %}
{% block login-pre %}
<div class="cell">
<h2>AUTHENTIFIEZ-VOUS</h2>
<h2>SUR MES DEMARCHES 06</h2>
</div>
<div class="cell">
<h2>AUTHENTIFIEZ-VOUS</h2>
<h2>SUR MES DEMARCHES 06</h2>
</div>
{% endblock %}

View File

@ -1,14 +1,14 @@
{% load gadjo %}
<form method="post" action="" class="pk-mark-optional-fields">
{% csrf_token %}
{{ form|with_template }}
{% if can_reset_password %}
<p class="forgot-password"><a href="{% url 'password_reset' %}{% if request.GET.next %}?next={{ request.GET.next|urlencode }}{% endif %}">Vous avez oublié votre mot de passe ?</a></p>
<div class="buttons">
<button name="{{ submit_name }}">SIDENTIFIER</button>
{% if cancel %}
<button class="cancel-button" name="cancel" formnovalidate>ANNULER</button>
{% csrf_token %}
{{ form|with_template }}
{% if can_reset_password %}
<p class="forgot-password"><a href="{% url 'password_reset' %}{% if request.GET.next %}?next={{ request.GET.next|urlencode }}{% endif %}">Vous avez oublié votre mot de passe ?</a></p>
<div class="buttons">
<button name="{{ submit_name }}">SIDENTIFIER</button>
{% if cancel %}
<button class="cancel-button" name="cancel" formnovalidate>ANNULER</button>
{% endif %}
</div>
</form>
{% endif %}
</div>
</form>
{% endif %}

View File

@ -7,8 +7,8 @@
<h2>AVEC FRANCE CONNECT</h2>
<div id="fc-button">
<a href="{{ login_url }}"
title="{% trans 'Log in with FranceConnect' %}"
class="button connexion{% if popup %} js-fc-popup{% endif %}">
title="{% trans 'Log in with FranceConnect' %}"
class="button connexion{% if popup %} js-fc-popup{% endif %}">
</a>
</div>
</div>

View File

@ -2,11 +2,11 @@
{% load i18n static %}
{% block login %}
<!-- <p>Vous êtes agent et disposez d'un compte dans l'annuaire du département des Bouches-du-Rhône.</p> -->
<form method="post">
<!-- <p>Vous êtes agent et disposez d'un compte dans l'annuaire du département des Bouches-du-Rhône.</p> -->
<form method="post">
<button class="submit-button cd06-adfs" name="{{ submit_name }}" title="{% trans "Login" %}"></button>
{% if cancel %}
<button class="cancel-button" name="cancel" formnovalidate>{% trans 'Cancel' %}</button>
<button class="cancel-button" name="cancel" formnovalidate>{% trans 'Cancel' %}</button>
{% endif %}
</form>
</form>
{% endblock %}

View File

@ -2,16 +2,16 @@
{% if json.data %}
{% if json.data.dossier.DEMANDES %}
{% if json.data.dossier.DEMANDES %}
{% for demande in json.data.dossier.DEMANDES %}
{% if demande.ETAPE == "Décision d'accord" %}
<p style="text-align: center;"><a href="{{ eservices_url}}social/aggravation-revision-apa/?session_var_dossier={{json.data.id}}&cancelurl={{ portal_url }}social">Faire une déclaration daggravation ou une demande de révision</a></p>
{% endif %}
{% endfor %}
{% endif %}
<p style="text-align: center;"><a href="{{ eservices_url}}social/supprimer-un-beneficiaire/?session_var_dossier={{json.data.id}}&cancelurl={{ portal_url }}social">&nbsp;D&eacute;sappairer mon dossier</a></p>
{% for demande in json.data.dossier.DEMANDES %}
{% if demande.ETAPE == "Décision d'accord" %}
<p style="text-align: center;"><a href="{{ eservices_url}}social/aggravation-revision-apa/?session_var_dossier={{json.data.id}}&cancelurl={{ portal_url }}social">Faire une déclaration daggravation ou une demande de révision</a></p>
{% endif %}
{% endfor %}
{% endif %}
<p style="text-align: center;"><a href="{{ eservices_url}}social/supprimer-un-beneficiaire/?session_var_dossier={{json.data.id}}&cancelurl={{ portal_url }}social">&nbsp;D&eacute;sappairer mon dossier</a></p>
{% endif %}

View File

@ -2,63 +2,63 @@
{% if json.data %}
<h2>Dossier Autonomie : {% if json.data.dossier.IDENTIFICATION.0.PRENOM %}{{json.data.dossier.IDENTIFICATION.0.PRENOM}}{% endif %} {% if json.data.dossier.IDENTIFICATION.0.NOM %}{{json.data.dossier.IDENTIFICATION.0.NOM}}{% endif %}</h2>
<h2>Dossier Autonomie : {% if json.data.dossier.IDENTIFICATION.0.PRENOM %}{{json.data.dossier.IDENTIFICATION.0.PRENOM}}{% endif %} {% if json.data.dossier.IDENTIFICATION.0.NOM %}{{json.data.dossier.IDENTIFICATION.0.NOM}}{% endif %}</h2>
<div class="cell turquoise-header">
{% if json.data.dossier.DEMANDES.AD %}
{% for demande in json.data.dossier.DEMANDES.AD %}
{% if demande.ID_MES == request.GET.demande %}
<div class="cell turquoise-header">
{% if json.data.dossier.DEMANDES.AD %}
{% for demande in json.data.dossier.DEMANDES.AD %}
{% if demande.ID_MES == request.GET.demande %}
<h3>{{ demande.TYPE_MESURE }}</h3>
<h4>Progression de la demande</h4>
<div id="social-steps">
<ol>
{% for etape in demande.LISTE_ETAPES %}
<li{% if etape.A_SURLIGNER == "O" %} class="current"{% endif %}>
<span class="marker">{{ forloop.counter }}</span>
<span class="label">{{ etape.CATEGORIE }}</span>
</li>
{% endfor %}
</ol>
</div>
<h3>{{ demande.TYPE_MESURE }}</h3>
<h4>Progression de la demande</h4>
<div id="social-steps">
<ol>
{% for etape in demande.LISTE_ETAPES %}
<li{% if etape.A_SURLIGNER == "O" %} class="current"{% endif %}>
<span class="marker">{{ forloop.counter }}</span>
<span class="label">{{ etape.CATEGORIE }}</span>
</li>
{% endfor %}
</ol>
</div>
{% for etape in demande.LISTE_ETAPES %}
{% if etape.A_SURLIGNER == "O" %}
{% for etape in demande.LISTE_ETAPES %}
{% if etape.A_SURLIGNER == "O" %}
{% for etp in etape.ETP %}
{% if etp.TYP_CHAMP == "L" %}
<p><strong>Étape actuelle</strong> : {{etp.ETAPE}}</p>
<div class="infonotice"><p>{{etp.LIBELLE_CHAMP}}</p></div>
{% endif %}
{% endfor %}
{% for etp in etape.ETP %}
{% if etp.TYP_CHAMP == "L" %}
<p><strong>Étape actuelle</strong> : {{etp.ETAPE}}</p>
<div class="infonotice"><p>{{etp.LIBELLE_CHAMP}}</p></div>
{% endif %}
{% endfor %}
{% if etape.ETP|length > 1 %}
<h3>Informations supplémentaires</h3>
{% for etp in etape.ETP %}
{% if etp.TYP_CHAMP == "D" %}
<p>{{etp.LIBELLE_CHAMP}} : {{etp.VALEUR_CHAMP}}</p>
{% endif %}
{% if etp.TYP_CHAMP == "S" %}
<p>{{etp.LIBELLE_CHAMP}} :
<ul>
{% for e in etp.VALEUR_LIST_CHAMP %}
<li>{{e.LIBELLE}} : {{e.COMMENTAIRE}}</li>
{% endfor %}
</ul>
</p>
{% endif %}
{% if etp.TYP_CHAMP == "M" and etp.VALEUR_MEMO_CHAMP %}
<div class="infonotice">
<p>{{etp.LIBELLE_CHAMP}} :<br /> {{etp.VALEUR_MEMO_CHAMP}}</p>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% if etape.ETP|length > 1 %}
<h3>Informations supplémentaires</h3>
{% for etp in etape.ETP %}
{% if etp.TYP_CHAMP == "D" %}
<p>{{etp.LIBELLE_CHAMP}} : {{etp.VALEUR_CHAMP}}</p>
{% endif %}
{% if etp.TYP_CHAMP == "S" %}
<p>{{etp.LIBELLE_CHAMP}} :
<ul>
{% for e in etp.VALEUR_LIST_CHAMP %}
<li>{{e.LIBELLE}} : {{e.COMMENTAIRE}}</li>
{% endfor %}
</ul>
</p>
{% endif %}
{% if etp.TYP_CHAMP == "M" and etp.VALEUR_MEMO_CHAMP %}
<div class="infonotice">
<p>{{etp.LIBELLE_CHAMP}} :<br /> {{etp.VALEUR_MEMO_CHAMP}}</p>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endif %}

View File

@ -2,66 +2,66 @@
{% if json.data %}
<h2>Dossier Handicap : {% if json.data.dossier.IDENTIFICATION.0.PRENOM %}{{json.data.dossier.IDENTIFICATION.0.PRENOM}}{% endif %} {% if json.data.dossier.IDENTIFICATION.0.NOM %}{{json.data.dossier.IDENTIFICATION.0.NOM}}{% endif %}</h2>
<div class="cell turquoise-header">
{% if json.data.dossier.DEMANDES.PH %}
{% for demande in json.data.dossier.DEMANDES.PH %}
{% if demande.ID_MES == request.GET.demande %}
<h2>Dossier Handicap : {% if json.data.dossier.IDENTIFICATION.0.PRENOM %}{{json.data.dossier.IDENTIFICATION.0.PRENOM}}{% endif %} {% if json.data.dossier.IDENTIFICATION.0.NOM %}{{json.data.dossier.IDENTIFICATION.0.NOM}}{% endif %}</h2>
<div class="cell turquoise-header">
{% if json.data.dossier.DEMANDES.PH %}
{% for demande in json.data.dossier.DEMANDES.PH %}
{% if demande.ID_MES == request.GET.demande %}
<h3>{{ demande.TYPE_MESURE }}</h3>
<h3>{{ demande.TYPE_MESURE }}</h3>
<h4>Progression de la demande</h4>
<div id="social-steps">
<ol>
{% for etape in demande.LISTE_ETAPES %}
<li{% if etape.A_SURLIGNER == "O" %} class="current"{% endif %}>
<span class="marker">{{ forloop.counter }}</span>
<span class="label">
{{ etape.CATEGORIE }}
</span>
</li>
{% endfor %}
</ol>
</div>
<h4>Progression de la demande</h4>
<div id="social-steps">
<ol>
{% for etape in demande.LISTE_ETAPES %}
<li{% if etape.A_SURLIGNER == "O" %} class="current"{% endif %}>
<span class="marker">{{ forloop.counter }}</span>
<span class="label">
{{ etape.CATEGORIE }}
</span>
</li>
{% endfor %}
</ol>
</div>
{% for etape in demande.LISTE_ETAPES %}
{% if etape.A_SURLIGNER == "O" %}
{% for etp in etape.ETP %}
{% if etp.TYP_CHAMP == "L" %}
<p><strong>Étape actuelle</strong> : {{etp.ETAPE}}</p>
<div class="infonotice"><p>{{etp.LIBELLE_CHAMP}}</p></div>
{% endif %}
{% endfor %}
{% for etape in demande.LISTE_ETAPES %}
{% if etape.A_SURLIGNER == "O" %}
{% for etp in etape.ETP %}
{% if etp.TYP_CHAMP == "L" %}
<p><strong>Étape actuelle</strong> : {{etp.ETAPE}}</p>
<div class="infonotice"><p>{{etp.LIBELLE_CHAMP}}</p></div>
{% endif %}
{% endfor %}
{% if etape.ETP|length > 1 %}
<h3>Informations supplémentaires</h3>
{% for etp in etape.ETP %}
{% if etp.TYP_CHAMP == "D" %}
<p>{{etp.LIBELLE_CHAMP}} : {{etp.VALEUR_CHAMP}}</p>
{% endif %}
{% if etp.TYP_CHAMP == "S" %}
<p>{{etp.LIBELLE_CHAMP}} :
<ul>
{% for e in etp.VALEUR_LIST_CHAMP %}
{% if e.LIBELLE != e.COMMENTAIRE %}
<li>{{e.LIBELLE}} : {{e.COMMENTAIRE}}</li>
{% endif %}
{% endfor %}
</ul>
</p>
{% endif %}
{% if etp.TYP_CHAMP == "M" and etp.VALEUR_MEMO_CHAMP %}
<div class="infonotice">
<p>{{etp.LIBELLE_CHAMP}} :<br /> {{etp.VALEUR_MEMO_CHAMP}}</p>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% if etape.ETP|length > 1 %}
<h3>Informations supplémentaires</h3>
{% for etp in etape.ETP %}
{% if etp.TYP_CHAMP == "D" %}
<p>{{etp.LIBELLE_CHAMP}} : {{etp.VALEUR_CHAMP}}</p>
{% endif %}
{% if etp.TYP_CHAMP == "S" %}
<p>{{etp.LIBELLE_CHAMP}} :
<ul>
{% for e in etp.VALEUR_LIST_CHAMP %}
{% if e.LIBELLE != e.COMMENTAIRE %}
<li>{{e.LIBELLE}} : {{e.COMMENTAIRE}}</li>
{% endif %}
{% endfor %}
</ul>
</p>
{% endif %}
{% if etp.TYP_CHAMP == "M" and etp.VALEUR_MEMO_CHAMP %}
<div class="infonotice">
<p>{{etp.LIBELLE_CHAMP}} :<br /> {{etp.VALEUR_MEMO_CHAMP}}</p>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endif %}

View File

@ -3,187 +3,187 @@
{% if json.data %}
<div>
<h1><strong>{{json.data.dossier.IDENTIFICATION.0.PRENOM}}</strong> <strong>{{json.data.dossier.IDENTIFICATION.0.NOM}}</strong></h1>
</div>
<div>
<h1><strong>{{json.data.dossier.IDENTIFICATION.0.PRENOM}}</strong> <strong>{{json.data.dossier.IDENTIFICATION.0.NOM}}</strong></h1>
</div>
<div class="cell foldable">
<div id="references">
<h2>Vos références</h2>
<p>
{% if json.data.dossier.IDENTIFICATION.0.REF_UTI_DOS %}Numéro de dossier (REF_UTI_DOS) : <strong>{{json.data.dossier.IDENTIFICATION.0.REF_UTI_DOS}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.IDDOS %}Numéro de dossier (IDDOS) : <strong>{{json.data.dossier.IDENTIFICATION.0.IDDOS}}</strong><br/>{% endif %}
</p>
</div>
</div>
<div class="cell foldable">
<div id="references">
<h2>Vos références</h2>
<p>
{% if json.data.dossier.IDENTIFICATION.0.REF_UTI_DOS %}Numéro de dossier (REF_UTI_DOS) : <strong>{{json.data.dossier.IDENTIFICATION.0.REF_UTI_DOS}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.IDDOS %}Numéro de dossier (IDDOS) : <strong>{{json.data.dossier.IDENTIFICATION.0.IDDOS}}</strong><br/>{% endif %}
</p>
</div>
</div>
<div class="cell foldable">
<div id="vous">
<h2>Vous</h2>
<p>
{% if json.data.dossier.IDENTIFICATION.0.PRENOM %}Prénom : <strong>{{json.data.dossier.IDENTIFICATION.0.PRENOM}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.NOM %}Nom : <strong>{{json.data.dossier.IDENTIFICATION.0.NOM}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.NOM_NAISSANCE %}Nom de naissance : <strong>{{json.data.dossier.IDENTIFICATION.0.NOM_NAISSANCE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.SEXE %}Sexe : <strong>{{json.data.dossier.IDENTIFICATION.0.SEXE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.DATE_NAISSANCE %}Date de naissance : <strong>{{json.data.dossier.IDENTIFICATION.0.DATE_NAISSANCE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.DPT_NAIS %}Département de naissance : <strong>{{json.data.dossier.IDENTIFICATION.0.DPT_NAIS}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.PAYS_NAIS %}Pays de naissance : <strong>{{json.data.dossier.IDENTIFICATION.0.PAYS_NAIS}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.NATIONALITE %}Nationalité : <strong>{{json.data.dossier.IDENTIFICATION.0.NATIONALITE}}</strong><br/>{% endif %}
</p>
</div>
</div>
<div class="cell foldable">
<div id="vous">
<h2>Vous</h2>
<p>
{% if json.data.dossier.IDENTIFICATION.0.PRENOM %}Prénom : <strong>{{json.data.dossier.IDENTIFICATION.0.PRENOM}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.NOM %}Nom : <strong>{{json.data.dossier.IDENTIFICATION.0.NOM}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.NOM_NAISSANCE %}Nom de naissance : <strong>{{json.data.dossier.IDENTIFICATION.0.NOM_NAISSANCE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.SEXE %}Sexe : <strong>{{json.data.dossier.IDENTIFICATION.0.SEXE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.DATE_NAISSANCE %}Date de naissance : <strong>{{json.data.dossier.IDENTIFICATION.0.DATE_NAISSANCE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.DPT_NAIS %}Département de naissance : <strong>{{json.data.dossier.IDENTIFICATION.0.DPT_NAIS}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.PAYS_NAIS %}Pays de naissance : <strong>{{json.data.dossier.IDENTIFICATION.0.PAYS_NAIS}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.NATIONALITE %}Nationalité : <strong>{{json.data.dossier.IDENTIFICATION.0.NATIONALITE}}</strong><br/>{% endif %}
</p>
</div>
</div>
<div class="cell foldable">
<div id="coordonnees">
<h2>Vos coordonnées</h2>
<p>
Adresse :
{% if json.data.dossier.IDENTIFICATION.0.NU_VOIE_ADR %}<strong>{{json.data.dossier.IDENTIFICATION.0.NU_VOIE_ADR}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.LB_COD_BTQ_ADR %}<strong>{{json.data.dossier.IDENTIFICATION.0.LB_COD_BTQ_ADR}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.LB_COD_VOIE_ADR %}<strong>{{json.data.dossier.IDENTIFICATION.0.LB_COD_VOIE_ADR}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.LB_VOIE_ADR %}<strong>{{json.data.dossier.IDENTIFICATION.0.LB_VOIE_ADR}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.CODE_POSTAL %}<strong>{{json.data.dossier.IDENTIFICATION.0.CODE_POSTAL}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.VILLE %}<strong>{{json.data.dossier.IDENTIFICATION.0.VILLE}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.LB_PAY_ADR %}<strong>{{json.data.dossier.IDENTIFICATION.0.LB_PAY_ADR}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.COMPLEMENT_ADRESSE %}<br/>Complément dadresse : <strong>{{json.data.dossier.IDENTIFICATION.0.COMPLEMENT_ADRESSE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.TEL_FIXE %}Téléphone fixe : <strong>{{json.data.dossier.IDENTIFICATION.0.TEL_FIXE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.TEL_MOBILE %}Téléphone mobile : <strong>{{json.data.dossier.IDENTIFICATION.0.TEL_MOBILE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.MAIL %}Adresse de courriel : <strong>{{json.data.dossier.IDENTIFICATION.0.MAIL}}</strong><br/>{% endif %}
</p>
</div>
</div>
<div class="cell foldable">
<div id="coordonnees">
<h2>Vos coordonnées</h2>
<p>
Adresse :
{% if json.data.dossier.IDENTIFICATION.0.NU_VOIE_ADR %}<strong>{{json.data.dossier.IDENTIFICATION.0.NU_VOIE_ADR}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.LB_COD_BTQ_ADR %}<strong>{{json.data.dossier.IDENTIFICATION.0.LB_COD_BTQ_ADR}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.LB_COD_VOIE_ADR %}<strong>{{json.data.dossier.IDENTIFICATION.0.LB_COD_VOIE_ADR}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.LB_VOIE_ADR %}<strong>{{json.data.dossier.IDENTIFICATION.0.LB_VOIE_ADR}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.CODE_POSTAL %}<strong>{{json.data.dossier.IDENTIFICATION.0.CODE_POSTAL}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.VILLE %}<strong>{{json.data.dossier.IDENTIFICATION.0.VILLE}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.LB_PAY_ADR %}<strong>{{json.data.dossier.IDENTIFICATION.0.LB_PAY_ADR}}</strong> {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.COMPLEMENT_ADRESSE %}<br/>Complément dadresse : <strong>{{json.data.dossier.IDENTIFICATION.0.COMPLEMENT_ADRESSE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.TEL_FIXE %}Téléphone fixe : <strong>{{json.data.dossier.IDENTIFICATION.0.TEL_FIXE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.TEL_MOBILE %}Téléphone mobile : <strong>{{json.data.dossier.IDENTIFICATION.0.TEL_MOBILE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.MAIL %}Adresse de courriel : <strong>{{json.data.dossier.IDENTIFICATION.0.MAIL}}</strong><br/>{% endif %}
</p>
</div>
</div>
<div class="cell foldable">
<div id="ass">
<h2>Vos informations dassuré social</h2>
<p>
{% if json.data.dossier.IDENTIFICATION.0.NSS %}Numéro dassuré social : <strong>{{json.data.dossier.IDENTIFICATION.0.NSS}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.CAISSE_RETRAITE %}Caisse de retraite : <strong>{{json.data.dossier.IDENTIFICATION.0.CAISSE_RETRAITE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.NUM_AFFILIATION %}Numéro daffiliation à la caisse de retraite : <strong>{{json.data.dossier.IDENTIFICATION.0.NUM_AFFILIATION}}</strong><br/>{% endif %}
</p>
</div>
</div>
<div class="cell foldable">
<div id="ass">
<h2>Vos informations dassuré social</h2>
<p>
{% if json.data.dossier.IDENTIFICATION.0.NSS %}Numéro dassuré social : <strong>{{json.data.dossier.IDENTIFICATION.0.NSS}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.CAISSE_RETRAITE %}Caisse de retraite : <strong>{{json.data.dossier.IDENTIFICATION.0.CAISSE_RETRAITE}}</strong><br/>{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.NUM_AFFILIATION %}Numéro daffiliation à la caisse de retraite : <strong>{{json.data.dossier.IDENTIFICATION.0.NUM_AFFILIATION}}</strong><br/>{% endif %}
</p>
</div>
</div>
<div class="cell foldable">
<div id="situation">
<h2>Votre situation familiale</h2>
<p>
{% if json.data.dossier.IDENTIFICATION.0.SIT_FAM%}Situation familiale : <strong>{{json.data.dossier.IDENTIFICATION.0.SIT_FAM}}</strong><br/>{% endif %}
</p>
</div>
</div>
<div class="cell foldable">
<div id="situation">
<h2>Votre situation familiale</h2>
<p>
{% if json.data.dossier.IDENTIFICATION.0.SIT_FAM%}Situation familiale : <strong>{{json.data.dossier.IDENTIFICATION.0.SIT_FAM}}</strong><br/>{% endif %}
</p>
</div>
</div>
{% if json.data.dossier.IDENTIFICATION.0.CONJOINT %}
<div class="cell foldable">
<div id="conjoint">
<h2>Votre conjoint</h2>
{% for conjoint in json.data.dossier.IDENTIFICATION.0.CONJOINT%}
<p>
{% if conjoint.PRENOM %}Prénom : <strong>{{conjoint.PRENOM}}</strong><br/>{% endif %}
{% if conjoint.NOM %}Nom : <strong>{{conjoint.NOM}}</strong><br/>{% endif %}
{% if conjoint.NU_VOIE_ADR %}<strong>{{conjoint.NU_VOIE_ADR}}</strong> {% endif %}
{% if conjoint.LB_COD_BTQ_ADR %}<strong>{{conjoint.LB_COD_BTQ_ADR}}</strong> {% endif %}
{% if conjoint.LB_COD_VOIE_ADR %}<strong>{{conjoint.LB_COD_VOIE_ADR}}</strong> {% endif %}
{% if conjoint.LB_VOIE_ADR %}<strong>{{conjoint.LB_VOIE_ADR}}</strong> {% endif %}
{% if conjoint.CODE_POSTAL %}<strong>{{conjoint.CODE_POSTAL}}</strong> {% endif %}
{% if conjoint.VILLE %}<strong>{{conjoint.VILLE}}</strong> {% endif %}
{% if conjoint.LB_PAY_ADR %}<strong>{{conjoint.LB_PAY_ADR}}</strong> {% endif %}
{% if conjoint.COMPLEMENT_ADRESSE %}Complément dadresse : <strong>{{conjoint.COMPLEMENT_ADRESSE}}</strong><br/>{% endif %}
{% if conjoint.TEL_FIXE %}Téléphone fixe : <strong>{{conjoint.TEL_FIXE}}</strong><br/>{% endif %}
{% if conjoint.TEL_MOBILE %}Téléphone mobile : <strong>{{conjoint.TEL_MOBILE}}</strong><br/>{% endif %}
{% if conjoint.MAIL %}Adresse de courriel : <strong>{{conjoint.MAIL}}</strong><br/>{% endif %}
{% if conjoint.NSS %}Numéro dassuré social : <strong>{{conjoint.NSS}}</strong><br/>{% endif %}
{% if conjoint.CAISSE_RETRAITE %}Caisse de retraite : <strong>{{conjoint.CAISSE_RETRAITE}}</strong><br/>{% endif %}
</p>
{% endfor %}
</div>
</div>
{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.CONJOINT %}
<div class="cell foldable">
<div id="conjoint">
<h2>Votre conjoint</h2>
{% for conjoint in json.data.dossier.IDENTIFICATION.0.CONJOINT%}
<p>
{% if conjoint.PRENOM %}Prénom : <strong>{{conjoint.PRENOM}}</strong><br/>{% endif %}
{% if conjoint.NOM %}Nom : <strong>{{conjoint.NOM}}</strong><br/>{% endif %}
{% if conjoint.NU_VOIE_ADR %}<strong>{{conjoint.NU_VOIE_ADR}}</strong> {% endif %}
{% if conjoint.LB_COD_BTQ_ADR %}<strong>{{conjoint.LB_COD_BTQ_ADR}}</strong> {% endif %}
{% if conjoint.LB_COD_VOIE_ADR %}<strong>{{conjoint.LB_COD_VOIE_ADR}}</strong> {% endif %}
{% if conjoint.LB_VOIE_ADR %}<strong>{{conjoint.LB_VOIE_ADR}}</strong> {% endif %}
{% if conjoint.CODE_POSTAL %}<strong>{{conjoint.CODE_POSTAL}}</strong> {% endif %}
{% if conjoint.VILLE %}<strong>{{conjoint.VILLE}}</strong> {% endif %}
{% if conjoint.LB_PAY_ADR %}<strong>{{conjoint.LB_PAY_ADR}}</strong> {% endif %}
{% if conjoint.COMPLEMENT_ADRESSE %}Complément dadresse : <strong>{{conjoint.COMPLEMENT_ADRESSE}}</strong><br/>{% endif %}
{% if conjoint.TEL_FIXE %}Téléphone fixe : <strong>{{conjoint.TEL_FIXE}}</strong><br/>{% endif %}
{% if conjoint.TEL_MOBILE %}Téléphone mobile : <strong>{{conjoint.TEL_MOBILE}}</strong><br/>{% endif %}
{% if conjoint.MAIL %}Adresse de courriel : <strong>{{conjoint.MAIL}}</strong><br/>{% endif %}
{% if conjoint.NSS %}Numéro dassuré social : <strong>{{conjoint.NSS}}</strong><br/>{% endif %}
{% if conjoint.CAISSE_RETRAITE %}Caisse de retraite : <strong>{{conjoint.CAISSE_RETRAITE}}</strong><br/>{% endif %}
</p>
{% endfor %}
</div>
</div>
{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.CONTACTS %}
<div class="cell foldable">
<div id="contacts">
<h2>Vos contacts</h2>
{% for contact in json.data.dossier.IDENTIFICATION.0.CONTACTS %}
<p>
{% if contact.PRENOM %}Prénom : <strong>{{contact.PRENOM}}</strong><br/>{% endif %}
{% if contact.NOM %}Nom : <strong>{{contact.NOM}}</strong><br/>{% endif %}
{% if contact.NU_VOIE_ADR %}<strong>{{contact.NU_VOIE_ADR}}</strong> {% endif %}
{% if contact.LB_COD_BTQ_ADR %}<strong>{{contact.LB_COD_BTQ_ADR}}</strong> {% endif %}
{% if contact.LB_COD_VOIE_ADR %}<strong>{{contact.LB_COD_VOIE_ADR}}</strong> {% endif %}
{% if contact.LB_VOIE_ADR %}<strong>{{contact.LB_VOIE_ADR}}</strong> {% endif %}
{% if contact.CODE_POSTAL %}<strong>{{contact.CODE_POSTAL}}</strong> {% endif %}
{% if contact.VILLE %}<strong>{{contact.VILLE}}</strong> {% endif %}
{% if contact.LB_PAY_ADR %}<strong>{{contact.LB_PAY_ADR}}</strong> {% endif %}
{% if contact.COMPLEMENT_ADRESSE %}Complément dadresse : <strong>{{contact.COMPLEMENT_ADRESSE}}</strong><br/>{% endif %}
{% if contact.TEL_FIXE %}Téléphone fixe : <strong>{{contact.TEL_FIXE}}</strong><br/>{% endif %}
{% if contact.TEL_MOBILE %}Téléphone mobile : <strong>{{contact.TEL_MOBILE}}</strong><br/>{% endif %}
{% if contact.MAIL %}Adresse de courriel : <strong>{{contact.MAIL}}</strong><br/>{% endif %}
{% if contact.RELATION %}Type de relation :
<strong>{% if contact.RELATION == 'TYP_CNT_AID' %}Aidant
{% elif contact.RELATION == 'TYP_CNT_PAR' %}Parent
{% else %}Inconnu
{% endif %}</strong>
<br/>{% endif %}
</p>
{% endfor %}
</div>
</div>
{% endif %}
{% if json.data.dossier.IDENTIFICATION.0.CONTACTS %}
<div class="cell foldable">
<div id="contacts">
<h2>Vos contacts</h2>
{% for contact in json.data.dossier.IDENTIFICATION.0.CONTACTS %}
<p>
{% if contact.PRENOM %}Prénom : <strong>{{contact.PRENOM}}</strong><br/>{% endif %}
{% if contact.NOM %}Nom : <strong>{{contact.NOM}}</strong><br/>{% endif %}
{% if contact.NU_VOIE_ADR %}<strong>{{contact.NU_VOIE_ADR}}</strong> {% endif %}
{% if contact.LB_COD_BTQ_ADR %}<strong>{{contact.LB_COD_BTQ_ADR}}</strong> {% endif %}
{% if contact.LB_COD_VOIE_ADR %}<strong>{{contact.LB_COD_VOIE_ADR}}</strong> {% endif %}
{% if contact.LB_VOIE_ADR %}<strong>{{contact.LB_VOIE_ADR}}</strong> {% endif %}
{% if contact.CODE_POSTAL %}<strong>{{contact.CODE_POSTAL}}</strong> {% endif %}
{% if contact.VILLE %}<strong>{{contact.VILLE}}</strong> {% endif %}
{% if contact.LB_PAY_ADR %}<strong>{{contact.LB_PAY_ADR}}</strong> {% endif %}
{% if contact.COMPLEMENT_ADRESSE %}Complément dadresse : <strong>{{contact.COMPLEMENT_ADRESSE}}</strong><br/>{% endif %}
{% if contact.TEL_FIXE %}Téléphone fixe : <strong>{{contact.TEL_FIXE}}</strong><br/>{% endif %}
{% if contact.TEL_MOBILE %}Téléphone mobile : <strong>{{contact.TEL_MOBILE}}</strong><br/>{% endif %}
{% if contact.MAIL %}Adresse de courriel : <strong>{{contact.MAIL}}</strong><br/>{% endif %}
{% if contact.RELATION %}Type de relation :
<strong>{% if contact.RELATION == 'TYP_CNT_AID' %}Aidant
{% elif contact.RELATION == 'TYP_CNT_PAR' %}Parent
{% else %}Inconnu
{% endif %}</strong>
<br/>{% endif %}
</p>
{% endfor %}
</div>
</div>
{% endif %}
{% if json.data.dossier.DEMANDES %}
<div class="cell foldable">
<div id="demandes">
{% if json.data.dossier.DEMANDES %}
<div class="cell foldable">
<div id="demandes">
<h2>Vos Demandes</h2>
<h2>Vos Demandes</h2>
{% for demande in json.data.dossier.DEMANDES %}
<h3>{{demande.DT_DMD}} - {{demande.TYPE_MESURE}} - {{demande.ETAPE}}</h3>
<p>
Identifiant de la demande : <strong>{{demande.ID_MES}}</strong><br/>
Type de mesure : <strong>{{demande.TYPE_MESURE}}</strong><br/>
Catégorie : <strong>{{demande.CATEGORIE}}</strong><br/>
Statut actuel : <strong>{{demande.ETAPE}}</strong><br/>
Date de la demande : <strong>{{demande.DT_DMD}}</strong><br/>
</p>
{% for demande in json.data.dossier.DEMANDES %}
<h3>{{demande.DT_DMD}} - {{demande.TYPE_MESURE}} - {{demande.ETAPE}}</h3>
<p>
Identifiant de la demande : <strong>{{demande.ID_MES}}</strong><br/>
Type de mesure : <strong>{{demande.TYPE_MESURE}}</strong><br/>
Catégorie : <strong>{{demande.CATEGORIE}}</strong><br/>
Statut actuel : <strong>{{demande.ETAPE}}</strong><br/>
Date de la demande : <strong>{{demande.DT_DMD}}</strong><br/>
</p>
<ul>
{% for etape in demande.LISTE_ETAPES %}
{% if etape.ETP %}
<li>{{etape.CATEGORIE}} : <strong>{{etape.LB_ETP}}</strong><br/>
<ul>
{% for et in etape.ETP %}
<li>{{et.LIBELLE_CHAMP}}</li>
{% endfor %}
</ul>
</li>
{% else %}
<li>{{etape.CATEGORIE}}</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
<ul>
{% for etape in demande.LISTE_ETAPES %}
{% if etape.ETP %}
<li>{{etape.CATEGORIE}} : <strong>{{etape.LB_ETP}}</strong><br/>
<ul>
{% for et in etape.ETP %}
<li>{{et.LIBELLE_CHAMP}}</li>
{% endfor %}
</ul>
</li>
{% else %}
<li>{{etape.CATEGORIE}}</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
{% if json.data.dossier.DROITS %}
<div class="cell foldable">
<div id="droits">
<h2>Vos Droits</h2>
<ul>
{% for droit in json.data.dossier.DROITS %}
<li>
{{droit.LIBELLE}} du {{droit.DATE_DEBUT}} au {{droit.DATE_FIN}}.
</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% if json.data.dossier.DROITS %}
<div class="cell foldable">
<div id="droits">
<h2>Vos Droits</h2>
<ul>
{% for droit in json.data.dossier.DROITS %}
<li>
{{droit.LIBELLE}} du {{droit.DATE_DEBUT}} au {{droit.DATE_FIN}}.
</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% endif %}

View File

@ -1,4 +1,4 @@
{% load combo %}
{% if json.data %}
<p><a href="{{ eservices_url }}enlever-un-dossier-a-mon-profil/?cancelurl={{ portal_url }}solidarite-social/page-de-suivi-social" class="turquoise-button">Je souhaite enlever un dossier à mon profil</a></p>
<p><a href="{{ eservices_url }}enlever-un-dossier-a-mon-profil/?cancelurl={{ portal_url }}solidarite-social/page-de-suivi-social" class="turquoise-button">Je souhaite enlever un dossier à mon profil</a></p>
{% endif %}

Some files were not shown because too many files have changed in this diff Show More