debian: add agenda cells for caluire (#55585)

This commit is contained in:
Lauréline Guérin 2021-07-13 19:25:48 +02:00
parent 06c461e098
commit d827b280d5
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 27 additions and 2 deletions

29
debian/50gnm.py vendored
View File

@ -537,8 +537,33 @@ JSON_CELL_TYPES = {
"cache_duration": 0,
"force_async": True,
"name": "Caluire-et-Cuire - Teamnet Axel: Prochaines inscriptions",
"url": "{{ passerelle_url }}caluire-axel/{{ slug }}/child_activities_info?NameID={{ user_nameid }}&idpersonne={{ child_id }}"
"&schooling_date={% now 'Y' as current_year %}{{ current_year|add:'1' }}-{% now 'm-d' %}",
"url": "{% now 'n' as current_month %}{% if current_month in '678' %}"
"{{ passerelle_url }}caluire-axel/{{ slug }}/child_activities_info?NameID={{ user_nameid }}&idpersonne={{ child_id }}"
"&schooling_date={% now 'Y' as current_year %}{{ current_year|add:'1' }}-{% now 'm-d' %}{% endif %}",
"form": [
{"label": "Identifiant du connecteur", "varname": "slug", "required": True},
],
},
"caluire-enfant-agenda": {
"cache_duration": 0,
"force_async": True,
"name": "Caluire-et-Cuire - Teamnet Axel: Agenda",
"url": "{{ passerelle_url }}caluire-axel/{{ slug }}/get_agenda_full?NameID={{ user_nameid }}&idpersonne={{ 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},
],
},
"caluire-enfant-agenda-next-year": {
"cache_duration": 0,
"force_async": True,
"name": "Caluire-et-Cuire - Teamnet Axel: Agenda prochaine année scolaire",
"url": "{% now 'Y' as current_year %}{% now 'n' as current_month %}{% if current_month in '678' %}"
"{{ passerelle_url }}caluire-axel/{{ slug }}/get_agenda_full?NameID={{ user_nameid }}&idpersonne={{ child_id }}"
"&start_date={% if current_month in '87654321' %}{{ current_year }}{% else %}{{ current_year|add:'1' }}{% endif %}-09-01"
"&end_date={% if current_month in '87654321' %}{{ current_year|add:'1' }}{% else %}{{ current_year|add:'2' }}{% endif %}-08-31{% endif %}",
"form": [
{"label": "Identifiant du connecteur", "varname": "slug", "required": True},
],