init new AccompanyingCourse (parcours) section

This commit is contained in:
2021-04-15 11:46:08 +02:00
parent 083f56bff0
commit 16b155d449
13 changed files with 337 additions and 17 deletions

View File

@@ -18,7 +18,7 @@
<th class="chill-orange">{{ 'Remark'|trans }}</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% for accompanying_period in accompanying_periods %}
@@ -27,7 +27,7 @@
{% if accompanying_period.closingDate == null %}
{{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|format_date('long') } ) }}
{% else %}
{{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({
{{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({
'%opening_date%': accompanying_period.openingDate|format_date('long'),
'%closing_date%': accompanying_period.closingDate|format_date('long')}
) }}
@@ -61,6 +61,12 @@
</td>
<td>
<ul class="record_actions">
{# TODO if enable_accompanying_course_with_multiple_persons is true ... #}
<li>
<a href="{{ path('chill_person_accompanying_course_index', { 'accompanying_period_id': accompanying_period.id }) }}" class="sc-button bt-show"></a>
</li>
<li>
<a href="{{ path('chill_person_accompanying_period_update', {'person_id' : person.id, 'period_id' : accompanying_period.id } ) }}" class="sc-button bt-update no-content"></a>
</li>
@@ -79,7 +85,7 @@
</li>
{% endif %}
</ul>
</td>
</tr>
{% endfor %}
@@ -106,7 +112,7 @@
</a>
</li>
{% endif %}
</ul>
</ul>
</div>
{% endblock personcontent %}