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

View File

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

View File

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

View File

@ -5,85 +5,85 @@
{% block extra-body-class %}{{ block.super }} account-page{% endblock %} {% block extra-body-class %}{{ block.super }} account-page{% endblock %}
{% block content %} {% block content %}
<div class="column profile"> <div class="column profile">
{% block profile-pre %}{% endblock %} {% block profile-pre %}{% endblock %}
<div class="block" id="a2-profile"> <div class="block" id="a2-profile">
{% block profile-top %}{% endblock %} {% block profile-top %}{% endblock %}
{% block profile-data-title %} {% block profile-data-title %}
<h2>Données du compte</h2> <h2>Données du compte</h2>
{% endblock %} {% endblock %}
{% block profile-data %} {% block profile-data %}
<div id="profile"> <div id="profile">
{% if attributes %} {% if attributes %}
{% for attribute in attributes %} {% for attribute in attributes %}
<div class="field"> <div class="field">
<span class="label">{{ attribute.attribute.label|capfirst }}</span> <span class="label">{{ attribute.attribute.label|capfirst }}</span>
<div class="value"> <div class="value">
{% if attribute.values|length == 0 %}<span class="nodata">(non spécifié)</span> {% if attribute.values|length == 0 %}<span class="nodata">(non spécifié)</span>
{% elif attribute.values|length == 1 %}{{ attribute.values.0 }}{% else %} {% elif attribute.values|length == 1 %}{{ attribute.values.0 }}{% else %}
<ul> <ul>
{% for value in attribute.values %} {% for value in attribute.values %}
<li>{{ value }}</li> <li>{{ value }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endfor %} {% endfor %}
</ul> {% endif %}
{% if LAST_LOGIN %}
<div class="field">
<span class="label">Dernière connexion</span>
<span class="value">{{ LAST_LOGIN }}</span>
</div>
{% endif %} {% endif %}
</div> </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 %} {% endblock %}
{% if allow_email_change %} {% block profile-bottom %}{% endblock %}
<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> </div>
{% endif %} {% block profile-post %}{% endblock %}
{% endfor %} </div>
{% endblock %} <div class="column account-management">
{% block account-management-post %}{% endblock %} {% block account-management-pre %}{% endblock %}
</div> <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 %} {% endblock %}

View File

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

View File

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

View File

@ -3,8 +3,8 @@
{% block extra-body-class %}{{ block.super }} authentic-page{% endblock %} {% block extra-body-class %}{{ block.super }} authentic-page{% endblock %}
{% block extra-body-args %} {% block extra-body-args %}
{% block bodyargs %} {% block bodyargs %}
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}
{% block placeholder-content %} {% block placeholder-content %}
@ -13,15 +13,15 @@
{% endblock %} {% endblock %}
{% block messages %} {% block messages %}
{% if messages %} {% if messages %}
<div id="messages" class="messages-login"> <div id="messages" class="messages-login">
<ul class="messages"> <ul class="messages">
{% for message in messages %} {% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li> <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block extra-top-head %} {% block extra-top-head %}

View File

@ -1,16 +1,16 @@
{% extends "emails/body_base.html" %} {% extends "emails/body_base.html" %}
{% block content %} {% block content %}
<p>Bonjour,</p> <p>Bonjour,</p>
<p> <p>
Vous avez demandé à changer ladresse électronique de votre compte Vous avez demandé à changer ladresse électronique de votre compte
de {{ old_email }} à {{ email }}. de {{ old_email }} à {{ email }}.
</p> </p>
<p> <p>
Pour valider ce changement, veuillez cliquer sur le bouton suivant : Pour valider ce changement, veuillez cliquer sur le bouton suivant :
</p> </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 %} {% endblock %}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,17 +1,17 @@
{% extends "emails/body_base.html" %} {% extends "emails/body_base.html" %}
{% block content %} {% block content %}
<p>Bonjour {{ user.get_full_name }},</p> <p>Bonjour {{ user.get_full_name }},</p>
<p> <p>
Votre compte a été créé. Pour vous connecter, utilisez les informations suivantes : Votre compte a été créé. Pour vous connecter, utilisez les informations suivantes :
</p> </p>
<ul> <ul>
<li>{% if user.email %}Courriel : {{ user.email }}{% else %}Identifiant : {{ user.username }}{% endif %}</li> <li>{% if user.email %}Courriel : {{ user.email }}{% else %}Identifiant : {{ user.username }}{% endif %}</li>
{% if user.has_usable_password %} {% if user.has_usable_password %}
<li>Mot de passe : celui que vous venez de choisir lors de linscription.</li> <li>Mot de passe : celui que vous venez de choisir lors de linscription.</li>
{% endif %} {% endif %}
</ul> </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 %} {% endblock %}

View File

@ -2,12 +2,12 @@
{% load humanize %} {% load humanize %}
{% block content %} {% 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>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>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 %} {% endblock %}

View File

@ -2,7 +2,7 @@
{% load humanize %} {% load humanize %}
{% block content %} {% 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 %} {% endblock %}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -8,14 +8,14 @@
{% for dossier in json.data.demandeAsg %} {% for dossier in json.data.demandeAsg %}
<div class="apa-dossier"> <div class="apa-dossier">
<h3>{{ dossier.demande.type }} ({{ dossier.demande.nature }})</h3> <h3>{{ dossier.demande.type }} ({{ dossier.demande.nature }})</h3>
<ul> <ul>
<li>Aide attribuée le {{ dossier.suivi.dateDecision|parse_date|date:"j F Y" }}</li> <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>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> <li>Fin des droits : {{ dossier.droit.dateFin|parse_date|date:"j F Y" }}</li>
</ul> </ul>
<p><a href="apa-droits/?user_id={{ user_id }}&detail_id={{ forloop.counter }}"> <p><a href="apa-droits/?user_id={{ user_id }}&detail_id={{ forloop.counter }}">
→ consulter le dossier</a></p> → consulter le dossier</a></p>
</div> </div>
{% empty %} {% empty %}
@ -31,101 +31,101 @@
<div> <div>
{% with individu=user_info.data.individu %} {% with individu=user_info.data.individu %}
<div class="grid-2-3 individu"> <div class="grid-2-3 individu">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3> <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> <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 %}
</div> </div>
{% endwith %}
<table class="pk-data-table pk-table-headers pk-table-zebra"> {% for dossier in json.data.demandeAsg %}
<thead> {% if forloop.counter|floatformat == detail_id %}
<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 %} <div class="grid-2-3 dossier">
{% endfor %} <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> </div>
{% endif %} {% endif %}

View File

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

View File

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

View File

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

View File

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

View File

@ -3,62 +3,62 @@
<h2>Le bénéficiaire</h2> <h2>Le bénéficiaire</h2>
<div class="apa-user-info"> <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"> <div class="individu">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3> <h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p class="birthdate"> <p class="birthdate">
<span class="label">Date de naissance :</span> {{ individu.dateNaissance|parse_date|date:"j F Y" }} <span class="label">Date de naissance :</span> {{ individu.dateNaissance|parse_date|date:"j F Y" }}
</p> </p>
<p class="address"> <p class="address">
<span class="label">Adresse :</span> <span class="label">Adresse :</span>
{% with adresse=individu.adresse %} {% 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 %}
{{ adresse.numeroLieu }} {{ adresse.natureLieu|default:"" }} {{ 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.complementLieu %}{{ adresse.complementLieu }}<br />{% endif %}
{% if adresse.cedex %}Cedex {{ adresse.cedex }}<br />{% endif %} {% if adresse.cedex %}Cedex {{ adresse.cedex }}<br />{% endif %}
{{ adresse.codePostal }} {{ adresse.commune }} {{ adresse.codePostal }} {{ adresse.commune }}
{% endwith %} {% endwith %}
<br /> </p>
{% 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 %} <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> </div>

View File

@ -4,19 +4,19 @@
<div class="apa-users clearfix"> <div class="apa-users clearfix">
{% for item in json.data|dictsort:"id" %} {% for item in json.data|dictsort:"id" %}
{% with individu=item.information.individu %} {% with individu=item.information.individu %}
<div class="apa-user apa-user-{{ individu.civilite|slugify }} {{ apa_users_grid|default:"grid-1-2" }}"> <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 }}"> <a class="apa-user-link" href="apa-details/?user_id={{ item.id }}">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3> <h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p> <p>
{{ individu.adresse.numeroLieu }} {{ individu.adresse.nomLieu }}<br /> {{ individu.adresse.numeroLieu }} {{ individu.adresse.nomLieu }}<br />
{% if individu.adresse.complementLieu %}{{ individu.adresse.complementLieu }}<br />{% endif %} {% if individu.adresse.complementLieu %}{{ individu.adresse.complementLieu }}<br />{% endif %}
{{ individu.adresse.codePostal }} {{ individu.adresse.commune }} {{ individu.adresse.codePostal }} {{ individu.adresse.commune }}
</p> </p>
</a> </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> <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> </div>
{% endwith %} {% endwith %}
{% endfor %} {% endfor %}
</div> </div>

View File

@ -1,254 +1,254 @@
{% if json.extra_data %} {% if json.extra_data %}
<h2>Agenda de l'année scolaire {{ json.extra_data.school_year }}</h2> <h2>Agenda de l'année scolaire {{ json.extra_data.school_year }}</h2>
<div class="caluire-agenda-cell caluire-agenda-cell-{{ cell.pk }}"> <div class="caluire-agenda-cell caluire-agenda-cell-{{ cell.pk }}">
{% with first_monday=json.extra_data.start_date|adjust_to_week_monday %} {% 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 %} {% with last_day=json.extra_data.end_date|adjust_to_week_monday|add_days:6 %}
{% now 'Y-m-W' as current_week %} {% now 'Y-m-W' as current_week %}
{% spaceless %} {% spaceless %}
<button class="caluire-agenda-cell--previous-week"></button> <button class="caluire-agenda-cell--previous-week"></button>
<div class="caluire-agenda-cell--week-list"> <div class="caluire-agenda-cell--week-list">
<div class="caluire-agenda-cell--slider"> <div class="caluire-agenda-cell--slider">
{% for day in first_monday|iterate_days_until:last_day %} {% for day in first_monday|iterate_days_until:last_day %}
{% if day.weekday == 0 %} {% if day.weekday == 0 %}
{% with sunday=day|add_days:6 %} {% with sunday=day|add_days:6 %}
<div class="caluire-agenda-cell--week-title {% if current_week == day|date:"Y-m-W" %}current{% endif %}" <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" }}"> 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" }} 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>
</div> </div>
{% endif %} {% endwith %}
{% endfor %} {% endif %}
{% endwith %} <div class="caluire-agenda-cell--day-item" data-weekday="{{ day.weekday }}">
<div class="caluire-agenda-cell--day-no-activity"> <div class="caluire-agenda-cell--day-title" >
Pas d'activité ce jour. {{ day|date:"l d/m" }}
</div> </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> </div>
{% endfor %} </div>
</div> <button class="caluire-agenda-cell--next-week"></button>
</div> <a class="pk-button caluire-agenda-cell--edit-btn">
<button class="caluire-agenda-cell--next-week"></button> Modifier l'agenda
<a class="pk-button caluire-agenda-cell--edit-btn"> </a>
Modifier l'agenda {% endspaceless %}
</a> {% endwith %}
{% endspaceless %} {% endwith %}
{% endwith %} <style>
{% endwith %} .caluire-agenda-cell {
<style> margin-top: 1em;
.caluire-agenda-cell { display: grid;
margin-top: 1em; grid-template-columns: repeat(3, auto);
display: grid; grid-template-rows: repeat(2, auto);
grid-template-columns: repeat(3, auto); justify-items: left;
grid-template-rows: repeat(2, auto); --min-column-width: 250;
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;
} }
$slider.css('grid-template-rows', `repeat(${nbRows}, auto`); .caluire-agenda-cell--previous-week,
} .caluire-agenda-cell--next-week {
} height: 3em;
width: 3em;
}
hideEmptyDays(); .caluire-agenda-cell--next-week {
new ResizeObserver(updateColumnsWidth).observe($weekList[0]); margin-left: 1rem;
addEventListener('resize', updateColumnsWidth); }
}
.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> </script>
</div> </div>
{% endif %} {% endif %}

View File

@ -1,4 +1,4 @@
<h2>{{ json.data.PRENOM }} {{ json.data.NOM }}</h2> <h2>{{ json.data.PRENOM }} {{ json.data.NOM }}</h2>
<div> <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> </div>

View File

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

View File

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

View File

@ -1,13 +1,13 @@
<h2>Ma Famille</h2> <h2>Ma Famille</h2>
<div> <div>
<p>Identifiant famille </br> <p>Identifiant famille </br>
<b>n° {{ json.data.RESPONSABLE1.FAMILLE.0.IDENTFAMILLE }}</b></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> <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> <p><b>Adresse</b></br>
{{ json.data.RESPONSABLE1.ADRESSE.NORUE|default:"" }} {{ json.data.RESPONSABLE1.ADRESSE.ADRESSE1|default:"" }}</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> {{ 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> <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> </div>

View File

@ -1,16 +1,16 @@
<h2>Responsables</h2> <h2>Responsables</h2>
<div> <div>
<p><b>Responsable du foyer</b> <p><b>Responsable du foyer</b>
<p>{{ json.data.RESPONSABLE1.CIVILITE|default:"" }} {{ json.data.RESPONSABLE1.PRENOM|default:"" }} {{ json.data.RESPONSABLE1.NOM|default:"" }}</br> <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> Tél : {{ json.data.RESPONSABLE1.TELFIXE|default:"" }} / Mob : {{ json.data.RESPONSABLE1.TELPORTABLE|default:"" }}</br>
Courriel : {{ json.data.RESPONSABLE1.MAIL|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> <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><b>Responsable du foyer</b>
<p>{{ json.data.RESPONSABLE2.CIVILITE|default:"" }} {{ json.data.RESPONSABLE2.PRENOM|default:"" }} {{ json.data.RESPONSABLE2.NOM|default:"" }}</br> <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> Tél : {{ json.data.RESPONSABLE2.TELFIXE|default:"" }} / Mob : {{ json.data.RESPONSABLE2.TELPORTABLE|default:"" }}</br>
Courriel : {{ json.data.RESPONSABLE2.MAIL|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> <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> <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> </div>

View File

@ -1,51 +1,51 @@
<h2>Informations abonnement stationnement</h2> <h2>Informations abonnement stationnement</h2>
<div> <div>
{% if not json.data %} {% 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> <div><p>Vous pouvez relier votre compte Publik à votre compte D-Park via <a href="{{pairing_form_url}}">ce formulaire</a>.</p></div>
{% else %} {% else %}
<div class="dpark-infos"> <div class="dpark-infos">
{% for info in json.data %} {% for info in json.data %}
<h3>{{ info.text }}</h3> <h3>{{ info.text }}</h3>
<div class="dpark-info-identity section"> <div class="dpark-info-identity section">
<h4>Identité</h4> <h4>Identité</h4>
<div> <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">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">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">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 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">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 class="field"><span class="label">Adresse de courriel</span>: <span class="value">{{info.demandeur_email}}</span></div>
</div>
</div> </div>
</div> <div class="dpark-info-address section">
<div class="dpark-info-address section"> <h4>Adresse</h4>
<h4>Adresse</h4> <div>
<div>
<div class="field"> <div class="field">
<span class="label">Adresse</span>: <span class="label">Adresse</span>:
<span class="value">{{info.adresse_numerovoie}} {{info.adresse_nomvoie}}, {{info.adresse_codepostal}} {{info.adresse_localite}} </span> <span class="value">{{info.adresse_numerovoie}} {{info.adresse_nomvoie}}, {{info.adresse_codepostal}} {{info.adresse_localite}} </span>
</div> </div>
<div class="field"><span class="label">Quartier</span>: <span class="value">{{info.adresse_quartier}}</span></div> <div class="field"><span class="label">Quartier</span>: <span class="value">{{info.adresse_quartier}}</span></div>
</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>
<div class="dpark-info-subscription section"> {% endif %}
<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 %}

View File

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

View File

@ -1,35 +1,35 @@
{% if not json_brsa.err %} {% if not json_brsa.err %}
<h2>Mes actions dinsertion</h2> <h2>Mes actions dinsertion</h2>
<div> <div>
<div class="rsa-cell--introduction"> <div class="rsa-cell--introduction">
<p>Le Département propose des actions qui vont maider selon mes besoins.</p> <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> <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> </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 %} {% endif %}

View File

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

View File

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

View File

@ -1,30 +1,30 @@
{% if not json.err and json.data %} {% if not json.err and json.data %}
<h2>Mes indus</h2> <h2>Mes indus</h2>
<div> <div>
<div class="rsa-cell--introduction"> <div class="rsa-cell--introduction">
<p>Jai perçu à tort trop de RSA.</p> <p>Jai perçu à tort trop de RSA.</p>
<p>Jai fait une demande pour réduire ou annuler ma dette.</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>
<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 %} {% 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 %} {% 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 %} {% with cli=json.data.dossier.adresse.lieu.localisation.cli %}
<ul> <ul>
{% if cli.lcCli %}<li><strong>{{ cli.lcCli }}</strong></li>{% endif %} {% 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.telephoneCli %}<li>Téléphone : <strong>{{ cli.telephoneCli|phonenumber_fr }}</strong></li>{% endif %}
{% if cli.emailCli %}<li>Email : <strong>{{ cli.emailCli }}</strong></li>{% endif %} {% if cli.emailCli %}<li>Email : <strong>{{ cli.emailCli }}</strong></li>{% endif %}
<ul> <ul>
{% endwith %} {% endwith %}
{% else %} {% else %}
{% if json_allocataires.data.soumisDD == "Soumis à droit et devoir" %} {% if json_allocataires.data.soumisDD == "Soumis à droit et devoir" %}
<!-- SDD --> <!-- SDD -->
{% if json_evaluations.data.typeorientation == 'Social' %} {% if json_evaluations.data.typeorientation == 'Social' %}
<!-- SDD OS --> <!-- SDD OS -->
{% if json_evaluations.data.corrOrientationChoix == 'CONSEIL_DEPARTEMENTAL' %} {% if json_evaluations.data.corrOrientationChoix == 'CONSEIL_DEPARTEMENTAL' %}
<!-- SDD OS Interne --> <!-- SDD OS Interne -->
<ul> <ul>
<li><strong>{{ json_evaluations.data.corrOrientIntervenantSocial|default:"" }}{% if json_evaluations.data.corrOrientStructureAccompagnement %} - {{ json_evaluations.data.corrOrientStructureAccompagnement }}{% endif %}</strong></li> <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.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 %} {% 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 %} {% else %}
<!-- SDD OS Externe --> <!-- SDD OS Externe -->
<ul> <ul>
{% if json_evaluations.data.refOrientIntervenantSocial %}<li><strong>{{ json_evaluations.data.refOrientIntervenantSocial }}</strong></li>{% endif %} {% 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.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 %} {% 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 %} {% endif %}
{% else %} {% else %}
<!-- SDD OE--> <!-- SDD OE-->
{% with cli=json.data.dossier.adresse.lieu.localisation.cli %} {% with cli=json.data.dossier.adresse.lieu.localisation.cli %}
<ul> <ul>
{% if cli.lcCli %}<li><strong>{{ cli.lcCli }}</strong></li>{% endif %} {% 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.telecopieCli %}<li>Téléphone : <strong>{{ cli.telecopieCli|phonenumber_fr }}</strong></li>{% endif %}
{% if cli.emailCli %}<li>Email : <strong>{{ cli.emailCli }}</strong></li>{% endif %} {% if cli.emailCli %}<li>Email : <strong>{{ cli.emailCli }}</strong></li>{% endif %}
<ul> <ul>
{% endwith %} {% endwith %}
{% endif %} {% endif %}

View File

@ -6,9 +6,9 @@
{% for item in json.data|dictsort:"id" %} {% for item in json.data|dictsort:"id" %}
<div class="apa-user grid-1-1" }}"> <div class="apa-user grid-1-1" }}">
<a class="apa-user-link" href="fiche/{{ item.id }}"><h3>{{ item.text }}</h3></a> <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> <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> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<div style="clear: both;"></div> <div style="clear: both;"></div>
</div> </div>

View File

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

View File

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

View File

@ -1,5 +1,5 @@
{% if not json_evenements.data or json_evenements.data.0.dateProposition|date < "31/12/2018"|date %} {% 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 %} {% if json_allocataires.data.rsa_links.conjoint.content %}
<h2>Réductions / radiations</h2> <h2>Réductions / radiations</h2>
<div> <div>
@ -10,27 +10,101 @@
{% endif %} {% endif %}
{% else %} {% else %}
<!-- Dernier événement récent --> <!-- Dernier événement récent -->
{% with evenement=json_evenements.data.0 %} {% with evenement=json_evenements.data.0 %}
{% with code=evenement.codeTypeEvenementRsa %} {% with code=evenement.codeTypeEvenementRsa %}
{% if code == 4 or code == 19 or code == 20 %} {% if code == 4 or code == 19 or code == 20 %}
{% if not evenement.commission.dateDecision or evenement.commission.decision.lcDecisionRsa == "Refus" %} {% if not evenement.commission.dateDecision or evenement.commission.decision.lcDecisionRsa == "Refus" %}
<h2>Réductions / radiations</h2> <h2>Réductions / radiations</h2>
<div> <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"> <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> </div>
{% endif %} {% if json_allocataires.data.rsa_links.conjoint.content %}
</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>
</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 %} {% elif json_allocataires.data.rsa_links.conjoint.content %}
<h2>Réductions / radiations</h2> <h2>Réductions / radiations</h2>
<div> <div>
@ -40,81 +114,7 @@
</div> </div>
{% endif %} {% 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 %} {% endwith %}
{% 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 %} {% endif %}

View File

@ -1,168 +1,168 @@
{% if not json.err %} {% if not json.err %}
<h2>Ma situation en terme daccompagnement</h2> <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 %}
<div> <div>
{% if data.typeorientation == "Emploi" %}
<!-- Orienté emploi --> <!-- Début : Introduction -->
<p>Mon référent est : <strong>{{ data.rsa_links.structAcc.0.content.libelleReferentiel|default:"Pôle Emploi" }}</strong></p> <div class="rsa-cell--introduction">
<p>Depuis le : <strong>{{ data.commission.dateDecision|default:"date inconnue" }}</strong></p> <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> <strong>
{% if json.data.soumisDD == "Soumis à droit et devoir" %}
{% else %} « Jai des droits et des obligations. »
{% else %}
<!-- Orienté social --> « Je nai pas daccompagnement obligatoire. »
{% if data.corrOrientationChoix == 'CONSEIL_DEPARTEMENTAL' %} {% endif %}
<!-- Interne --> </strong>
<p>Mon référent est : <strong>{{ data.corrOrientIntervenantSocial }}{% if data.corrOrientStructureAccompagnement %} - {{ data.corrOrientStructureAccompagnement }}{% endif %}</strong></p> </p>
<p>Depuis le : <strong>{{ data.commission.dateDecision|default:"date inconnue" }}</strong></p> <p>
<p>Coordonnées :</p> <strong>
<ul> {% if json.data.oriente %}
{% 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 %} « Jai un référent. »
{% if data.rsa_links.corrOrientStructAcc.content.email %}<li>Email : <strong>{{ data.rsa_links.corrOrientStructAcc.content.email }}</strong></li>{% endif %} {% else %}
</ul> « Je nai pas de référent. »
{% else %} {% endif %}
<p>Mon référent est : <strong>{{ data.refOrientIntervenantSocial|default:"" }}{% if data.refOrientStructureAccompagnement %} - {{ data.refOrientStructureAccompagnement }}{% endif %}</strong></p> </strong>
<p>Depuis le : <strong>{{ data.commission.dateDecision|default:"date inconnue" }}</strong></p> </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> </div>
{% endwith %} <!-- Fin : Introduction -->
{% 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 %} <!-- Début : Non orienté -->
{% endif %} {% if not json.data.oriente %}
<!-- Fin : Orienté --> <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 --> {% endif %} <!-- if not json.err -->

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,11 +1,11 @@
<br> <br>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" style="margin: auto;"> <table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" style="margin: auto;">
<tr> <tr>
<td style="border-radius: 3px; background: #7D7D7D; background-color: #7D7D7D; text-align: center;" class="button-td"> <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"> <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> <span style="color:#ffffff;" class="button-link">{{label}}</span>
</a> </a>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>

View File

@ -2,9 +2,9 @@
<tr> <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"> <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 %} {% block footer %}
{% if email_signature %} {% if email_signature %}
{{ email_signature|linebreaks }} {{ email_signature|linebreaks }}
{% endif %} {% endif %}
{% endblock %} {% endblock %}
</td> </td>
</tr> </tr>

View File

@ -4,7 +4,7 @@
<span style="font-size: 15px; line-height: 20px;"> <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 %}"/> {% 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 %} {% else %}
{% firstof global_title "Compte Citoyen" %} {% firstof global_title "Compte Citoyen" %}
{% endif %} {% endif %}
</span> </span>
</td> </td>

View File

@ -1,13 +1,13 @@
{% extends theme_base %} {% extends theme_base %}
{% block messages %} {% block messages %}
{% if messages %} {% if messages %}
<div id="messages" class="messages-login"> <div id="messages" class="messages-login">
<ul class="messages"> <ul class="messages">
{% for message in messages %} {% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li> <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,309 +1,309 @@
{% extends "qommon/forms/widget.html" %} {% extends "qommon/forms/widget.html" %}
{% block widget-control %} {% block widget-control %}
{% with options=widget.get_options|list %} {% with options=widget.get_options|list %}
{% with first_monday=options.0.options.details.JOURDATE|adjust_to_week_monday last_option=options|last %} {% 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 %} {% with last_day=last_option.options.details.JOURDATE|adjust_to_week_monday|add_days:6 %}
{% now 'Y-m-W' as current_week %} {% now 'Y-m-W' as current_week %}
{% spaceless %} {% spaceless %}
<button class="previous-week"></button> <button class="previous-week"></button>
<div class="week-list"> <div class="week-list">
<div class="slider"> <div class="slider">
{% for day in first_monday|iterate_days_until:last_day %} {% for day in first_monday|iterate_days_until:last_day %}
{% if day.weekday == 0 %} {% if day.weekday == 0 %}
{% with sunday=day|add_days:6 %} {% 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 %}"> <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" }} 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>
</div> </div>
{% endif %} {% endwith %}
{% endfor %} {% endif %}
{% endwith %} <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> </div>
{% endfor %} </div>
</div> <button class="next-week"></button>
</div> {% endspaceless %}
<button class="next-week"></button> {% endwith %}
{% endspaceless %}
{% endwith %} {% endwith %}
{% endwith %} {% endwith %}
{% endwith %} <style>
<style> .template-caluire-reservations-enfant .content {
.template-caluire-reservations-enfant .content { margin-top: 1em;
margin-top: 1em; display: grid;
display: grid; grid-template-columns: repeat(3, auto);
grid-template-columns: repeat(3, auto); grid-template-rows: repeat(2, auto);
grid-template-rows: repeat(2, auto); justify-items: left;
justify-items: left; --min-column-width: 250;
--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;
} }
const currentOffset = $week[0].offsetLeft;
$slider.css({
'transform': `translate(-${currentOffset}px)`,
'transition': (enableTransition ? 'transform 0.5s' : '')
});
$selectedWeek = $week; .template-caluire-reservations-enfant .previous-week,
$nextWeekButton.prop('disabled', getNextWeek().length == 0); .template-caluire-reservations-enfant .next-week {
$previousWeekButton.prop('disabled', getPreviousWeek().length == 0); height: 3em;
width: 3em;
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();
} }
});
function updateColumnsWidth() { .template-caluire-reservations-enfant .next-week {
const minWidth = $slider.css('--min-column-width'); margin-left: 1rem;
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; .template-caluire-reservations-enfant .edit-btn {
for(let i = 0; i < 7; ++i) { grid-column: 2;
const $days = $(`.day-item[data-weekday=${i}]`, $widget); grid-row: 2;
const $activities = $('.activity-item', $days); }
if(!$activities.length) {
$days.css('display', 'none'); .template-caluire-reservations-enfant .week-list {
nbRows -= 1; 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() { $('.template-caluire-reservations-enfant input').on('change', function() {
if ($(this).is(':checked')) { if ($(this).is(':checked')) {
var $current_item = $(this).parents('.activity-item').first(); var $current_item = $(this).parents('.activity-item').first();
$(this).parents('.day-item').find('.activity-item[data-activity-type="' + $(this).parents('.day-item').find('.activity-item[data-activity-type="' +
$current_item.data('activity-type') + '"][data-date="' + $current_item.data('activity-type') + '"][data-date="' +
$current_item.data('date') + '"]:not([data-activity-id="' + $current_item.data('date') + '"]:not([data-activity-id="' +
$current_item.data('activity-id') + '"])').find('input').prop('checked', false); $current_item.data('activity-id') + '"])').find('input').prop('checked', false);
} }
}); });
</script> </script>
{% endblock %} {% endblock %}

View File

@ -1,241 +1,241 @@
{% extends "qommon/forms/widget.html" %} {% extends "qommon/forms/widget.html" %}
{% block widget-control %} {% 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 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 %} {% with last_day=last_option.options.date|date|adjust_to_week_monday|add_days:6 %}
{% now 'Y-m-d' as now %} {% now 'Y-m-d' as now %}
<button class="previous-week"></button> <button class="previous-week"></button>
<ul> <ul>
{% for day in first_monday|iterate_days_until:last_day %} {% for day in first_monday|iterate_days_until:last_day %}
{% if day.weekday == 0 %} {% if day.weekday == 0 %}
{% if not forloop.first %}</ul></li>{% endif %} {% 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> <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 %} {% 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> <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" %} {% with day_str=day|date:"Y-m-d" %}
{% for option in options %} {% for option in options %}
{% if option.options.date == day_str %} {% if option.options.date == day_str %}
<li {% if option.disabled %}class="disabled"{% endif %} <li {% if option.disabled %}class="disabled"{% endif %}
data-date="{{ option.options.date }}" data-date="{{ option.options.date }}"
{% if option.options.status %}data-status="{{ option.options.status }}"{% endif %} {% if option.options.status %}data-status="{{ option.options.status }}"{% endif %}
{% if widget.readonly and not option.disabled %} {% if widget.readonly and not option.disabled %}
{% if option.selected and not option.options.booked_for_external_user %}data-has-change {% 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 {% elif not option.selected and option.options.booked_for_external_user %}data-has-change
{% endif %} {% endif %}
{% endif %} {% endif %}
><label><input ><label><input
{% if not widget.value and option.options.booked_for_external_user %}checked="checked" {% 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 widget.value and option.options.booked_for_external_user and option.disabled %}checked="checked"
{% elif option.selected %}checked="checked"{% endif %} {% elif option.selected %}checked="checked"{% endif %}
{% if widget.readonly or option.disabled %}disabled{% endif %} {% if widget.readonly or option.disabled %}disabled{% endif %}
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %} {% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}
type="checkbox" type="checkbox"
data-event-id="{{ option.options.id }}" data-event-id="{{ option.options.id }}"
data-overlaps="{{ option.options.overlaps|join:" " }}" data-overlaps="{{ option.options.overlaps|join:" " }}"
{% if widget.readonly %}value="yes" disabled {% if widget.readonly %}value="yes" disabled
{% else %}name="{{ option.name }}" value="yes" {% else %}name="{{ option.name }}" value="yes"
{% endif %}><span>{{ option.options.label }}</span></label> {% endif %}><span>{{ option.options.label }}</span></label>
{% if widget.readonly and option.selected %}<input type="hidden" name="{{ option.name }}" value="yes">{% endif %} {% if widget.readonly and option.selected %}<input type="hidden" name="{{ option.name }}" value="yes">{% endif %}
</li> </li>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endwith %}
{% if forloop.last %}</ul></li>{% endif %}
{% endfor %}
</ul>
<button class="next-week"></button>
{% endwith %}
{% endwith %}
{% endwith %} {% endwith %}
{% if forloop.last %}</ul></li>{% endif %} <style>
{% endfor %} .template-famille-reservations-par-semaine .content {
</ul> margin-top: 1em;
<button class="next-week"></button> display: flex;
{% endwith %} }
{% endwith %}
{% endwith %}
<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%; 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 { function refresh_week_classes() {
width: 100%; $('p.activite').hide();
} $('.week.shown [data-date]').each(function(idx, elem) {
$('.activite-' + $(elem).data('date')).show();
});
}
.template-famille-reservations-par-semaine .content > ul > li { $('.template-famille-reservations-par-semaine .previous-week').on('click', function() {
display: none; var $prev = $('li.shown').prev();
} if ($prev.length) { $('li.shown').removeClass('shown'); $prev.addClass('shown'); }
.template-famille-reservations-par-semaine .content > ul > li.shown { refresh_week_classes();
display: block; return false;
} });
.template-famille-reservations-par-semaine button.previous-week, $('.template-famille-reservations-par-semaine .next-week').on('click', function() {
.template-famille-reservations-par-semaine button.next-week { var $next = $('li.shown').next();
height: 3em; if ($next.length) { $('li.shown').removeClass('shown'); $next.addClass('shown'); }
z-index: 10; refresh_week_classes();
} return false;
.template-famille-reservations-par-semaine button.previous-week { });
margin-left: 0; $('.template-famille-reservations-par-semaine li.day-title').each(function(idx, elem) {
margin-right: 1em; /* hide empty days */
} var $next = $(elem).next();
.template-famille-reservations-par-semaine button.next-week { if ($next.length == 0 || $next.is('.day-title')) {
margin-left: 1em; $(elem).hide();
margin-right: 0; }
} });
.template-famille-reservations-par-semaine .week-title { /* check overlaps */
display: block; $('.template-famille-reservations-par-semaine input').on('change', function() {
height: 3em; if ($(this).is(':checked')) {
line-height: 3em; $(this).parents('ul').find("input[data-overlaps~='"+$(this).data('event-id')+"']").prop('checked', false);
} }
.template-famille-reservations-par-semaine li.day-title { });
margin: 1em 0 0.5em 0; $('.template-famille-reservations-par-semaine input:disabled').each(function(index) {
} if ($(this).attr('checked')) {
.template-famille-reservations-par-semaine .content label { $(this).parents('ul').find("input[data-overlaps~='"+$(this).data('event-id')+"']").prop('disabled', true);
position: relative; }
} });
.template-famille-reservations-par-semaine .content input[disabled] { /* init first week shown */
position: absolute; var $cell = $('.template-famille-reservations-par-semaine');
opacity: 0; $cell.find('li').removeClass('shown');
} if ($('li.day-title.current', $cell).length) {
.template-famille-reservations-par-semaine .content input[disabled] + span { $('li.day-title.current', $cell).parents('li.week').addClass('shown');
padding-left: 1.66rem; } else {
} $('li', $cell).first().addClass('shown');
.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 { refresh_week_classes();
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 { var observer = new MutationObserver(refresh_week_classes);
color: #888; $('.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 { </script>
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>
{% endblock %} {% endblock %}

View File

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

View File

@ -3,46 +3,46 @@
<script type="text/javascript" src="/static/js/qommon.fileupload.js"></script> <script type="text/javascript" src="/static/js/qommon.fileupload.js"></script>
<script> <script>
$.CartaDs = { $.CartaDs = {
change: function() { change: function() {
var $widget = $(this).parents('.file-upload-widget'); var $widget = $(this).parents('.file-upload-widget');
var token = $widget.find('input[type=hidden]').val(); var token = $widget.find('input[type=hidden]').val();
if (! token) return; if (! token) return;
var url = $(this).data('url'); var url = $(this).data('url');
$widget.find('.remove').on('click', function() { $widget.find('.remove').on('click', function() {
$.ajax({ $.ajax({
url: url + token + '/delete/', url: url + token + '/delete/',
method: 'POST' method: 'POST'
});
}); });
}); }
} }
}
$('.file-upload-widget input[type=file]').on('change', $.CartaDs.change); $('.file-upload-widget input[type=file]').on('change', $.CartaDs.change);
$('.file-upload-widget.has-file input[type=file]').each($.CartaDs.change); $('.file-upload-widget.has-file input[type=file]').each($.CartaDs.change);
$('button.plus').on('click', function() { $('button.plus').on('click', function() {
var $orig_file_button = $(this).parent().prev(); var $orig_file_button = $(this).parent().prev();
if (! $orig_file_button.is(':visible')) { if (! $orig_file_button.is(':visible')) {
$orig_file_button.addClass('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; 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() { $(function() {
$('.cartads-piece .file-upload-widget').each($.WcsFileUpload.prepare); $('.cartads-piece .file-upload-widget').each($.WcsFileUpload.prepare);
}); });
</script> </script>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,96 +1,96 @@
{% extends "qommon/forms/widget.html" %} {% extends "qommon/forms/widget.html" %}
{% block widget-error %} {% block widget-error %}
{{ block.super }} {{ 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> <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 %} {% endblock %}
{% block widget-control %} {% 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}}" 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 /> <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> <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> <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 %} {% if not request.is_in_backoffice %}
<script> <script>
$(function () { $(function () {
const fc_popup = function(url) { const fc_popup = function(url) {
const height = 670; const height = 670;
const width = 1000; const width = 1000;
const left = (screen.width/2)-(width/2); const left = (screen.width/2)-(width/2);
const top = (screen.height/2)-(height/2); const top = (screen.height/2)-(height/2);
const popup = window.open(url, 'FranceConnect', const popup = window.open(url, 'FranceConnect',
'scrollbars=true, width='+width+', height='+height+',top='+top+', left='+left+', resizable=no,copyhistory=no' 'scrollbars=true, width='+width+', height='+height+',top='+top+', left='+left+', resizable=no,copyhistory=no'
); );
if (window.focus) popup.focus(); if (window.focus) popup.focus();
return popup; return popup;
}; };
const reset_field = function() { const reset_field = function() {
const field_id = '#' + $(this).data('field-id'); const field_id = '#' + $(this).data('field-id');
$(field_id + '_fc_button').show(); $(field_id + '_fc_button').show();
$(field_id).val(''); $(field_id).val('');
$(this).hide(); $(this).hide();
$(field_id + '_display').val(''); $(field_id + '_display').val('');
$(field_id + '_display').hide(); $(field_id + '_display').hide();
}; };
const fill_field = function(field_id, value, display_value) { const fill_field = function(field_id, value, display_value) {
const field_selector = '#' + field_id; const field_selector = '#' + field_id;
$(field_selector).val(value); $(field_selector).val(value);
const $field_display_value = $(field_selector + '_display'); const $field_display_value = $(field_selector + '_display');
$field_display_value.val(display_value); $field_display_value.val(display_value);
$field_display_value.show(); $field_display_value.show();
$(field_selector + '_fc_button').hide(); $(field_selector + '_fc_button').hide();
$(field_selector + '_clear').show(); $(field_selector + '_clear').show();
}; };
let popup_window = null; let popup_window = null;
let field_id = null; let field_id = null;
const $input = $('div.template-franceconnect-data #form_{{widget.name}}'); const $input = $('div.template-franceconnect-data #form_{{widget.name}}');
if ($input.val()) { if ($input.val()) {
fill_field($input.attr('id'), $input.val(), $input.data('initial-display-value')); 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) { $.getJSON($input.data('url') + '?q=', function (response) {
const init_request_url = response.data[0].init_request_url; const init_request_url = response.data[0].init_request_url;
$('.franceconnect--button').on('click', function (event) { $('.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) { if (popup_window) {
popup_window.close(); popup_window.close();
} }
field_id = $(this).data('field-id'); popup_window = null;
let popup_url = init_request_url; field_id = null;
const origin = 'origin=' + window.location.href; });
if (init_request_url.indexOf('?') != -1) { });
popup_url += '&' + origin; </script>
} else { {% endif %}
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 %}
{% endblock %} {% endblock %}

View File

@ -1,59 +1,59 @@
{% extends "emails/body_base.html" %} {% extends "emails/body_base.html" %}
{% block content %} {% block content %}
{% if existing_accounts %} {% if existing_accounts %}
<p>Bonjour,</p> <p>Bonjour,</p>
<p> <p>
Vous possédez déjà un compte associé à cette adresse électronique. Vous possédez déjà un compte associé à cette adresse électronique.
</p> </p>
<p> <p>
Pour vous connecter, vous pouvez cliquer sur le bouton suivant : Pour vous connecter, vous pouvez cliquer sur le bouton suivant :
</p> </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 %} {% 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 %} {% 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 %} {% endblock %}

View File

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

View File

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

View File

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

View File

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

View File

@ -1,14 +1,14 @@
{% load gadjo %} {% load gadjo %}
<form method="post" action="" class="pk-mark-optional-fields"> <form method="post" action="" class="pk-mark-optional-fields">
{% csrf_token %} {% csrf_token %}
{{ form|with_template }} {{ form|with_template }}
{% if can_reset_password %} {% 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> <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"> <div class="buttons">
<button name="{{ submit_name }}">SIDENTIFIER</button> <button name="{{ submit_name }}">SIDENTIFIER</button>
{% if cancel %} {% if cancel %}
<button class="cancel-button" name="cancel" formnovalidate>ANNULER</button> <button class="cancel-button" name="cancel" formnovalidate>ANNULER</button>
{% endif %}
</div>
</form>
{% endif %} {% endif %}
</div>
</form>
{% endif %}

View File

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

View File

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

View File

@ -2,16 +2,16 @@
{% if json.data %} {% if json.data %}
{% if json.data.dossier.DEMANDES %} {% if json.data.dossier.DEMANDES %}
{% for demande in json.data.dossier.DEMANDES %} {% for demande in json.data.dossier.DEMANDES %}
{% if demande.ETAPE == "Décision d'accord" %} {% 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> <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 %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% 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> <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 %} {% endif %}

View File

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

View File

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

View File

@ -3,187 +3,187 @@
{% if json.data %} {% if json.data %}
<div> <div>
<h1><strong>{{json.data.dossier.IDENTIFICATION.0.PRENOM}}</strong> <strong>{{json.data.dossier.IDENTIFICATION.0.NOM}}</strong></h1> <h1><strong>{{json.data.dossier.IDENTIFICATION.0.PRENOM}}</strong> <strong>{{json.data.dossier.IDENTIFICATION.0.NOM}}</strong></h1>
</div> </div>
<div class="cell foldable"> <div class="cell foldable">
<div id="references"> <div id="references">
<h2>Vos références</h2> <h2>Vos références</h2>
<p> <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.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 %} {% if json.data.dossier.IDENTIFICATION.0.IDDOS %}Numéro de dossier (IDDOS) : <strong>{{json.data.dossier.IDENTIFICATION.0.IDDOS}}</strong><br/>{% endif %}
</p> </p>
</div> </div>
</div> </div>
<div class="cell foldable"> <div class="cell foldable">
<div id="vous"> <div id="vous">
<h2>Vous</h2> <h2>Vous</h2>
<p> <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.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 %}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.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.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.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.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.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 %} {% if json.data.dossier.IDENTIFICATION.0.NATIONALITE %}Nationalité : <strong>{{json.data.dossier.IDENTIFICATION.0.NATIONALITE}}</strong><br/>{% endif %}
</p> </p>
</div> </div>
</div> </div>
<div class="cell foldable"> <div class="cell foldable">
<div id="coordonnees"> <div id="coordonnees">
<h2>Vos coordonnées</h2> <h2>Vos coordonnées</h2>
<p> <p>
Adresse : 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.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_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_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.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.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.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.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.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_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.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 %} {% if json.data.dossier.IDENTIFICATION.0.MAIL %}Adresse de courriel : <strong>{{json.data.dossier.IDENTIFICATION.0.MAIL}}</strong><br/>{% endif %}
</p> </p>
</div> </div>
</div> </div>
<div class="cell foldable"> <div class="cell foldable">
<div id="ass"> <div id="ass">
<h2>Vos informations dassuré social</h2> <h2>Vos informations dassuré social</h2>
<p> <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.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.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 %} {% 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> </p>
</div> </div>
</div> </div>
<div class="cell foldable"> <div class="cell foldable">
<div id="situation"> <div id="situation">
<h2>Votre situation familiale</h2> <h2>Votre situation familiale</h2>
<p> <p>
{% if json.data.dossier.IDENTIFICATION.0.SIT_FAM%}Situation familiale : <strong>{{json.data.dossier.IDENTIFICATION.0.SIT_FAM}}</strong><br/>{% endif %} {% if json.data.dossier.IDENTIFICATION.0.SIT_FAM%}Situation familiale : <strong>{{json.data.dossier.IDENTIFICATION.0.SIT_FAM}}</strong><br/>{% endif %}
</p> </p>
</div> </div>
</div> </div>
{% if json.data.dossier.IDENTIFICATION.0.CONJOINT %} {% if json.data.dossier.IDENTIFICATION.0.CONJOINT %}
<div class="cell foldable"> <div class="cell foldable">
<div id="conjoint"> <div id="conjoint">
<h2>Votre conjoint</h2> <h2>Votre conjoint</h2>
{% for conjoint in json.data.dossier.IDENTIFICATION.0.CONJOINT%} {% for conjoint in json.data.dossier.IDENTIFICATION.0.CONJOINT%}
<p> <p>
{% if conjoint.PRENOM %}Prénom : <strong>{{conjoint.PRENOM}}</strong><br/>{% endif %} {% if conjoint.PRENOM %}Prénom : <strong>{{conjoint.PRENOM}}</strong><br/>{% endif %}
{% if conjoint.NOM %}Nom : <strong>{{conjoint.NOM}}</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.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_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_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.LB_VOIE_ADR %}<strong>{{conjoint.LB_VOIE_ADR}}</strong> {% endif %}
{% if conjoint.CODE_POSTAL %}<strong>{{conjoint.CODE_POSTAL}}</strong> {% endif %} {% if conjoint.CODE_POSTAL %}<strong>{{conjoint.CODE_POSTAL}}</strong> {% endif %}
{% if conjoint.VILLE %}<strong>{{conjoint.VILLE}}</strong> {% endif %} {% if conjoint.VILLE %}<strong>{{conjoint.VILLE}}</strong> {% endif %}
{% if conjoint.LB_PAY_ADR %}<strong>{{conjoint.LB_PAY_ADR}}</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.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_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.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.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.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 %} {% if conjoint.CAISSE_RETRAITE %}Caisse de retraite : <strong>{{conjoint.CAISSE_RETRAITE}}</strong><br/>{% endif %}
</p> </p>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if json.data.dossier.IDENTIFICATION.0.CONTACTS %} {% if json.data.dossier.IDENTIFICATION.0.CONTACTS %}
<div class="cell foldable"> <div class="cell foldable">
<div id="contacts"> <div id="contacts">
<h2>Vos contacts</h2> <h2>Vos contacts</h2>
{% for contact in json.data.dossier.IDENTIFICATION.0.CONTACTS %} {% for contact in json.data.dossier.IDENTIFICATION.0.CONTACTS %}
<p> <p>
{% if contact.PRENOM %}Prénom : <strong>{{contact.PRENOM}}</strong><br/>{% endif %} {% if contact.PRENOM %}Prénom : <strong>{{contact.PRENOM}}</strong><br/>{% endif %}
{% if contact.NOM %}Nom : <strong>{{contact.NOM}}</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.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_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_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.LB_VOIE_ADR %}<strong>{{contact.LB_VOIE_ADR}}</strong> {% endif %}
{% if contact.CODE_POSTAL %}<strong>{{contact.CODE_POSTAL}}</strong> {% endif %} {% if contact.CODE_POSTAL %}<strong>{{contact.CODE_POSTAL}}</strong> {% endif %}
{% if contact.VILLE %}<strong>{{contact.VILLE}}</strong> {% endif %} {% if contact.VILLE %}<strong>{{contact.VILLE}}</strong> {% endif %}
{% if contact.LB_PAY_ADR %}<strong>{{contact.LB_PAY_ADR}}</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.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_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.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.MAIL %}Adresse de courriel : <strong>{{contact.MAIL}}</strong><br/>{% endif %}
{% if contact.RELATION %}Type de relation : {% if contact.RELATION %}Type de relation :
<strong>{% if contact.RELATION == 'TYP_CNT_AID' %}Aidant <strong>{% if contact.RELATION == 'TYP_CNT_AID' %}Aidant
{% elif contact.RELATION == 'TYP_CNT_PAR' %}Parent {% elif contact.RELATION == 'TYP_CNT_PAR' %}Parent
{% else %}Inconnu {% else %}Inconnu
{% endif %}</strong> {% endif %}</strong>
<br/>{% endif %} <br/>{% endif %}
</p> </p>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if json.data.dossier.DEMANDES %} {% if json.data.dossier.DEMANDES %}
<div class="cell foldable"> <div class="cell foldable">
<div id="demandes"> <div id="demandes">
<h2>Vos Demandes</h2> <h2>Vos Demandes</h2>
{% for demande in json.data.dossier.DEMANDES %} {% for demande in json.data.dossier.DEMANDES %}
<h3>{{demande.DT_DMD}} - {{demande.TYPE_MESURE}} - {{demande.ETAPE}}</h3> <h3>{{demande.DT_DMD}} - {{demande.TYPE_MESURE}} - {{demande.ETAPE}}</h3>
<p> <p>
Identifiant de la demande : <strong>{{demande.ID_MES}}</strong><br/> Identifiant de la demande : <strong>{{demande.ID_MES}}</strong><br/>
Type de mesure : <strong>{{demande.TYPE_MESURE}}</strong><br/> Type de mesure : <strong>{{demande.TYPE_MESURE}}</strong><br/>
Catégorie : <strong>{{demande.CATEGORIE}}</strong><br/> Catégorie : <strong>{{demande.CATEGORIE}}</strong><br/>
Statut actuel : <strong>{{demande.ETAPE}}</strong><br/> Statut actuel : <strong>{{demande.ETAPE}}</strong><br/>
Date de la demande : <strong>{{demande.DT_DMD}}</strong><br/> Date de la demande : <strong>{{demande.DT_DMD}}</strong><br/>
</p> </p>
<ul> <ul>
{% for etape in demande.LISTE_ETAPES %} {% for etape in demande.LISTE_ETAPES %}
{% if etape.ETP %} {% if etape.ETP %}
<li>{{etape.CATEGORIE}} : <strong>{{etape.LB_ETP}}</strong><br/> <li>{{etape.CATEGORIE}} : <strong>{{etape.LB_ETP}}</strong><br/>
<ul> <ul>
{% for et in etape.ETP %} {% for et in etape.ETP %}
<li>{{et.LIBELLE_CHAMP}}</li> <li>{{et.LIBELLE_CHAMP}}</li>
{% endfor %} {% endfor %}
</ul> </ul>
</li> </li>
{% else %} {% else %}
<li>{{etape.CATEGORIE}}</li> <li>{{etape.CATEGORIE}}</li>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if json.data.dossier.DROITS %} {% if json.data.dossier.DROITS %}
<div class="cell foldable"> <div class="cell foldable">
<div id="droits"> <div id="droits">
<h2>Vos Droits</h2> <h2>Vos Droits</h2>
<ul> <ul>
{% for droit in json.data.dossier.DROITS %} {% for droit in json.data.dossier.DROITS %}
<li> <li>
{{droit.LIBELLE}} du {{droit.DATE_DEBUT}} au {{droit.DATE_FIN}}. {{droit.LIBELLE}} du {{droit.DATE_DEBUT}} au {{droit.DATE_FIN}}.
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}

View File

@ -1,4 +1,4 @@
{% load combo %} {% load combo %}
{% if json.data %} {% 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 %} {% endif %}

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