mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Only show merge button if there are more than 1 works attached to the parcours
This commit is contained in:
parent
85781c8e14
commit
2a7fa517ee
@ -68,12 +68,14 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</li>
|
||||
{% if work.accompanyingPeriod.getWorks|length > 1 %}
|
||||
<li>
|
||||
<a class="btn btn-misc" href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_assign_duplicate', { 'id': work.id }) }}">
|
||||
<i class="bi bi-chevron-contract"></i>
|
||||
{{ 'Merge'|trans }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_UPDATE', work) %}
|
||||
<li>
|
||||
<a class="btn btn-edit"
|
||||
|
Loading…
x
Reference in New Issue
Block a user