minor layout improvement show parcours btn in task

This commit is contained in:
Julie Lenaerts 2022-06-01 15:43:01 +02:00
parent 8d70562132
commit d9dfe75378

View File

@ -27,11 +27,7 @@
} %} } %}
</span> </span>
{% elseif task.course is not null %} {% elseif task.course is not null %}
<a href="{{ path('chill_person_accompanying_course_index', { 'accompanying_period_id': task.course.id }) }}" <div style="margin-bottom: 1rem;">
class="btn btn-sm btn-outline-primary" title="{{ 'See accompanying period'|trans }}">
<i class="fa fa-random fa-fw"></i>
</a>
{% for part in task.course.currentParticipations %} {% for part in task.course.currentParticipations %}
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
targetEntity: { name: 'person', id: part.person.id }, targetEntity: { name: 'person', id: part.person.id },
@ -41,7 +37,11 @@
isDead: part.person.deathdate is not null isDead: part.person.deathdate is not null
} %} } %}
{% endfor %} {% endfor %}
</div>
<a href="{{ path('chill_person_accompanying_course_index', { 'accompanying_period_id': task.course.id }) }}"
class="btn btn-sm btn-outline-primary" title="{{ 'See accompanying period'|trans }}">
<i class="fa fa-random fa-fw"></i>
</a>
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
@ -80,6 +80,13 @@
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
{# {% if task.course is not null %}
<a href="{{ path('chill_person_accompanying_course_index', { 'accompanying_period_id': task.course.id }) }}"
class="btn btn-sm btn-outline-primary" style="float:right;" title="{{ 'See accompanying period'|trans }}">
<i class="fa fa-random fa-fw"></i>
</a>
{% endif %} #}
</div> </div>
</div> </div>