ACL added and buttons to download and edit document

This commit is contained in:
Julie Lenaerts 2022-03-10 14:30:19 +01:00
parent bf2d9acc5a
commit 9284a4bc29

View File

@ -1,7 +1,9 @@
{%- import "@ChillDocStore/Macro/macro.html.twig" as m -%}
<div class="flex-table accompanying_course_work-list">
<div class="item-bloc evaluation-item bg-chill-llight-gray">
<div class="item-row mb-2">
<h1>{{ doc.title }}</h1>
<h1>{{ doc.title }}</h1>git st
</div>
<div class="item-row mb-2">
<h2 class="badge-title">
@ -113,12 +115,19 @@
</div>
{% if display_action is defined and display_action == true %}
{# TODO add acl #}
{% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_UPDATE', evaluation.accompanyingPeriodWork) %}
<ul class="record_actions">
<li>{{ m.download_button(doc.storedObject, doc.title) }}</li>
{# {% if chill_document_is_editable(doc.storedObject) %} #}
<li>
{{ doc.storedObject|chill_document_edit_button }}
</li>
{# {% endif %} #}
<li>
<a class="btn btn-show" href="{{ path('chill_person_accompanying_period_work_edit', {'id': evaluation.accompanyingPeriodWork.id}) }}">
{{ 'Show'|trans }}
</a>
</li>
</ul>
{% endif %}
{% endif %}