Resolve "Reorganise page 'Mes parcours'"

This commit is contained in:
2025-05-21 16:13:43 +00:00
committed by Julien Fastré
parent dc44c46667
commit 44a8ddeba4
6 changed files with 244 additions and 32 deletions

View File

@@ -19,14 +19,38 @@
<ul class="nav nav-pills justify-content-center">
<li class="nav-item">
<a class="nav-link {% if active == true %}active{% endif %}" aria-current="page" href="{{ chill_path_forward_return_path('chill_person_accompanying_period_user', {'active': true}) }}">{{ ['Confirmed'|trans, 'course.inactive_short'|trans, 'course.inactive_long'|trans]|join(', ') }}</a>
<a class="nav-link {% if activeTab == 'referrer' %}active{% endif %}"
aria-current="page"
href="{{ chill_path_forward_return_path('chill_person_accompanying_period_user', {'active': true, 'filter': 2}) }}">
{{ 'my_parcours_filters.referrer_parcours'|trans }}
</a>
</li>
<li class="nav-item ">
<a class="nav-link {% if active == false %}active{% endif %}" href="{{ chill_path_forward_return_path('chill_person_accompanying_period_user', {'active': false}) }}">{{ 'course.closed'|trans }}</a>
<li class="nav-item">
<a class="nav-link {% if activeTab == 'referrer_to_works' %}active{% endif %}"
aria-current="page"
href="{{ chill_path_forward_return_path('chill_person_accompanying_period_user', {'active': true, 'filter': 4}) }}">
{{ 'my_parcours_filters.referrer_acpw'|trans }}
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if activeTab == 'both' %}active{% endif %}"
aria-current="page"
href="{{ chill_path_forward_return_path('chill_person_accompanying_period_user', {'active': true, 'filter': 6}) }}">
{{ 'my_parcours_filters.referrer_parcours_and_acpw'|trans }}
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if activeTab == 'intervening' %}active{% endif %}"
aria-current="page"
href="{{ chill_path_forward_return_path('chill_person_accompanying_period_user', {'active': true, 'filter': 8}) }}">
{{ 'my_parcours_filters.parcours_intervening'|trans }}
</a>
</li>
</ul>
<p>{{ 'Number of periods'|trans }}: <span class="badge rounded-pill bg-primary">{{ pagination.totalItems }}</span></p>
{{ statusFilter|chill_render_filter_order_helper }}
<p>{{ 'Number of periods'|trans }}: <span class="badge rounded-pill bg-primary mt-3">{{ pagination.totalItems }}</span></p>
<div class="flex-table accompanyingcourse-list">
{% for period in accompanyingPeriods %}