toulouse-2022: extend agenda to pass person_id to wcs form (#80567) #373

Merged
nroche merged 1 commits from wip/80567-toulouse-2022-extend-agenda-to-pass-person-id into main 2023-08-28 16:57:57 +02:00
3 changed files with 5 additions and 2 deletions

View File

@ -12,7 +12,7 @@
{% if day.weekday == 0 %}
{% with sunday=day|add_days:6 %}
<div class="{{ cell_prefix }}-agenda-cell--week-title {% if current_week == day|date:"WY" %}current{% endif %}"
data-edit-url="{{ eservices_url }}{{ form_url }}{% if not is_portal_agent %}tryauth{% endif %}?child_id={{ child_id }}{% if is_portal_agent %}&family_id={{ foyer_id }}{% endif %}&reference_year={{ first_monday.year }}&current={{ day|adjust_to_week_monday|date:"Y-m-d" }}">
data-edit-url={% block edit_url %}<"{{ eservices_url }}{{ form_url }}{% if not is_portal_agent %}tryauth{% endif %}?child_id={{ child_id }}{% if is_portal_agent %}&family_id={{ foyer_id }}{% endif %}&reference_year={{ first_monday.year }}&current={{ day|adjust_to_week_monday|date:"Y-m-d" }}"{% endblock edit_url %}>
Du {{ day|date:"d/m" }} au {{ sunday|date:"d/m" }}
</div>
{% endwith %}

View File

@ -0,0 +1,3 @@
{% extends "combo/json/enfant-agenda.html" %}
{% block edit_url %}<"{{ eservices_url }}{{ form_url }}{% if not is_portal_agent %}tryauth{% endif %}?person_id={{ person_id }}{% if is_portal_agent %}&family_id={{ foyer_id }}{% endif %}&reference_year={{ first_monday.year }}&current={{ day|adjust_to_week_monday|date:"Y-m-d" }}"{% endblock edit_url %}>

View File

@ -1 +1 @@
{% include "combo/json/enfant-agenda.html" with form_url=parameters.form_url cell_prefix="toulouse-maelis" %}
{% include "combo/json/toulouse-maelis-enfant-agenda-extended.html" with form_url=parameters.form_url cell_prefix="toulouse-maelis" %}