rights added to links in activity templates

This commit is contained in:
Julie Lenaerts 2022-02-17 09:19:54 +01:00
parent d47fdc768e
commit b32ecf98f2
2 changed files with 8 additions and 8 deletions

View File

@ -35,7 +35,7 @@
<ul class="record_actions sticky-form-buttons">
<li>
<a href="{{ path('chill_activity_activity_new', {'person_id': person_id, 'accompanying_period_id': accompanying_course_id}) }}"
class="btn btn-create">{{ 'Create'|trans }}
class="btn btn-create">{{ 'Create'|trans }}
</a>
</li>
</ul>

View File

@ -47,13 +47,13 @@
{% include 'ChillActivityBundle:Activity:list.html.twig' with {'context': 'person'} %}
{% if is_granted('CHILL_ACTIVITY_CREATE', person) %}
<ul class="record_actions sticky-form-buttons">
<li>
<a href="{{ path('chill_activity_activity_new', {'person_id': person_id, 'accompanying_period_id': accompanying_course_id}) }}"
class="btn btn-create" tabindex="-1" role="button" aria-disabled="true">{{ 'Create'|trans }}
</a>
</li>
</ul>
<ul class="record_actions sticky-form-buttons">
<li>
<a href="{{ path('chill_activity_activity_new', {'person_id': person_id, 'accompanying_period_id': accompanying_course_id}) }}"
class="btn btn-create" tabindex="-1" role="button" aria-disabled="true">{{ 'Create'|trans }}
</a>
</li>
</ul>
{% endif %}
{% endblock %}