ac work list: add an option to mask button text

This commit is contained in:
Mathieu Jaumotte 2021-08-22 20:34:27 +02:00
parent 3894c7a56d
commit 52fa4b5549
2 changed files with 4 additions and 5 deletions

View File

@ -131,7 +131,7 @@
<div class="social-actions mb-5">
<h2 class="mb-3">{{ 'Social actions'|trans }}</h2>
{% include 'ChillPersonBundle:AccompanyingCourseWork:list_by_accompanying_period.html.twig' %}
{% include 'ChillPersonBundle:AccompanyingCourseWork:list_by_accompanying_period.html.twig' with {'buttonText': false } %}
</div>
{% block contentActivity %}

View File

@ -101,10 +101,9 @@
</div>
<ul class="record_actions">
<li>
<a class="btn btn-edit"
href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_edit', { 'id': w.id }) }}">
{{ 'Edit'|trans }}
</a>
<a class="btn btn-edit" title="{{ 'Edit'|trans }}"
href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_edit', { 'id': w.id }) }}"
>{% if buttonText is not defined or buttonText == true %}{{ 'Edit'|trans }}{% endif %}</a>
</li>
</ul>