toulouse-2022: [parsifal] add bouton label parameter on agenda cells (#81264) #388
|
@ -160,6 +160,7 @@
|
|||
"url": "{{ passerelle_url }}toulouse-maelis/{{ slug }}/read-person-agenda?{% if is_portal_agent %}family_id={{ foyer_id }}{% else %}NameID={{ user_nameid }}{% endif %}&person_id={{ person_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": "Libellé du bouton vers la démarche de réservation", "varname": "edit_btn_label", "required": false},
|
||||
{"label": "URL de la démarche de réservation", "varname": "form_url", "required": true}
|
||||
]
|
||||
},
|
||||
|
@ -171,6 +172,7 @@
|
|||
"url": "{{ passerelle_url }}toulouse-maelis/{{ slug }}/read-person-agenda?{% if is_portal_agent %}family_id={{ foyer_id }}{% else %}NameID={{ user_nameid }}{% endif %}&person_id={{ person_id }}{% now 'Y' as current_year %}{% now 'n' as current_month %}&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",
|
||||
"form": [
|
||||
{"label": "Identifiant du connecteur", "varname": "slug", "required": true},
|
||||
{"label": "Libellé du bouton vers la démarche de réservation", "varname": "edit_btn_label", "required": false},
|
||||
{"label": "URL de la démarche de réservation", "varname": "form_url", "required": true}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -40,7 +40,9 @@
|
|||
</div>
|
||||
<button class="{{ cell_prefix }}-agenda-cell--next-week">→</button>
|
||||
<a class="pk-button {{ cell_prefix }}-agenda-cell--edit-btn">
|
||||
Modifier l'agenda
|
||||
{% block edit_btn_label %}
|
||||
Modifier l'agenda
|
||||
{% endblock edit_btn_label %}
|
||||
</a>
|
||||
{% endspaceless %}
|
||||
{% endwith %}
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
{% 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 }}¤t={{ day|adjust_to_week_monday|date:"Y-m-d" }}"{% endblock edit_url %}
|
||||
|
||||
{% block edit_btn_label %}
|
||||
{{ edit_btn_label|default:'Gérer mes réservations' }}
|
||||
{% endblock edit_btn_label %}
|
||||
|
|
Loading…
Reference in New Issue