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"> <div class="social-actions mb-5">
<h2 class="mb-3">{{ 'Social actions'|trans }}</h2> <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> </div>
{% block contentActivity %} {% block contentActivity %}

View File

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