mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
53 lines
1.5 KiB
Twig
53 lines
1.5 KiB
Twig
{% extends "@ChillPerson/AccompanyingCourse/layout.html.twig" %}
|
|
|
|
{% set activeRouteKey = '' %}
|
|
|
|
{% block title %}
|
|
{{ 'Documents' }}
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
{{ parent() }}
|
|
{{ encore_entry_script_tags('mod_async_upload') }}
|
|
{{ encore_entry_script_tags('mod_docgen_picktemplate') }}
|
|
{{ encore_entry_script_tags('mod_entity_workflow_pick') }}
|
|
{% endblock %}
|
|
|
|
{% block css %}
|
|
{{ parent() }}
|
|
{{ encore_entry_link_tags('mod_async_upload') }}
|
|
{{ encore_entry_link_tags('mod_docgen_picktemplate') }}
|
|
{{ encore_entry_link_tags('mod_entity_workflow_pick') }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="col-md-10 col-xxl">
|
|
<h1>{{ 'Documents' }}</h1>
|
|
|
|
{% if documents|length == 0 %}
|
|
<p class="chill-no-data-statement">{{ 'No documents'|trans }}</p>
|
|
{% else %}
|
|
<div class="flex-table chill-task-list">
|
|
{% for document in documents %}
|
|
{% include 'ChillDocStoreBundle:List:list_item.html.twig' %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{{ chill_pagination(pagination) }}
|
|
|
|
<div data-docgen-template-picker="data-docgen-template-picker" data-entity-class="Chill\PersonBundle\Entity\AccompanyingPeriod" data-entity-id="{{ accompanyingCourse.id }}"></div>
|
|
|
|
{% if is_granted('CHILL_ACCOMPANYING_COURSE_DOCUMENT_CREATE', accompanyingCourse) %}
|
|
<ul class="record_actions sticky-form-buttons">
|
|
<li class="create">
|
|
<a href="{{ path('accompanying_course_document_new', {'course': accompanyingCourse.id}) }}" class="btn btn-create">
|
|
{{ 'Create'|trans }}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
{% endif %}
|
|
|
|
</div>
|
|
{% endblock %}
|