mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
ACL added and buttons to download and edit document
This commit is contained in:
parent
bf2d9acc5a
commit
9284a4bc29
@ -1,7 +1,9 @@
|
|||||||
|
{%- import "@ChillDocStore/Macro/macro.html.twig" as m -%}
|
||||||
|
|
||||||
<div class="flex-table accompanying_course_work-list">
|
<div class="flex-table accompanying_course_work-list">
|
||||||
<div class="item-bloc evaluation-item bg-chill-llight-gray">
|
<div class="item-bloc evaluation-item bg-chill-llight-gray">
|
||||||
<div class="item-row mb-2">
|
<div class="item-row mb-2">
|
||||||
<h1>{{ doc.title }}</h1>
|
<h1>{{ doc.title }}</h1>git st
|
||||||
</div>
|
</div>
|
||||||
<div class="item-row mb-2">
|
<div class="item-row mb-2">
|
||||||
<h2 class="badge-title">
|
<h2 class="badge-title">
|
||||||
@ -113,12 +115,19 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if display_action is defined and display_action == true %}
|
{% 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">
|
<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>
|
<li>
|
||||||
<a class="btn btn-show" href="{{ path('chill_person_accompanying_period_work_edit', {'id': evaluation.accompanyingPeriodWork.id}) }}">
|
<a class="btn btn-show" href="{{ path('chill_person_accompanying_period_work_edit', {'id': evaluation.accompanyingPeriodWork.id}) }}">
|
||||||
{{ 'Show'|trans }}
|
{{ 'Show'|trans }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user