toulouse-2022: toulouse-maelis-enfant-agenda cell for backoffice (#73678) #136

Merged
lguerin merged 1 commits from wip/73678-toulouse-maelis-agenda-cell-config into main 2023-01-23 10:03:15 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@
"cache_duration": 0,
"force_async": true,
"name": "Toulouse - Maelis: Agenda",
"url": "{{ passerelle_url }}toulouse-maelis/{{ slug }}/read-child-agenda?NameID={{ user_nameid }}&child_id={{ child_id }}{% now 'Y' as current_year %}{% now 'n' as current_month %}&start_date={% if current_month in '87654321' %}{{ current_year|add:'-1' }}{% else %}{{ current_year }}{% endif %}-09-01&end_date={% if current_month in '87654321' %}{{ current_year }}{% else %}{{ current_year|add:'1' }}{% endif %}-08-31",
"url": "{{ passerelle_url }}toulouse-maelis/{{ slug }}/read-child-agenda?{% if foyer_id %}family_id={{ foyer_id }}{% else %}NameID={{ user_nameid }}{% endif %}&child_id={{ child_id }}{% now 'Y' as current_year %}{% now 'n' as current_month %}&start_date={% if current_month in '87654321' %}{{ current_year|add:'-1' }}{% else %}{{ current_year }}{% endif %}-09-01&end_date={% if current_month in '87654321' %}{{ current_year }}{% else %}{{ current_year|add:'1' }}{% endif %}-08-31",
"form": [
{"label": "Identifiant du connecteur", "varname": "slug", "required": true},
{"label": "URL de la démarche de réservation", "varname": "form_url", "required": true}

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:"W" %}current{% endif %}"
data-edit-url="{{ eservices_url }}{{ form_url }}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 }}{{ form_url }}tryauth?child_id={{ child_id }}{% if foyer_id %}&family_id={{ foyer_id }}{% endif %}&reference_year={{ first_monday.year }}&current={{ day|adjust_to_week_monday|date:"Y-m-d" }}">
Du {{ day|date:"d/m" }} au {{ sunday|date:"d/m" }}
</div>
{% endwith %}