FEATURE add download button to document listing

This commit is contained in:
Julie Lenaerts 2023-03-07 14:25:17 +01:00 committed by Julien Fastré
parent 23cee274a5
commit 3aac4d5d35
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
4 changed files with 20 additions and 10 deletions

View File

@ -88,3 +88,17 @@ div.flex-bloc.concerned-groups {
font-size: 120%;
}
}
/// DOCUMENT LIST IN ACTIVITY ITEM
li.document-list-item {
display: flex;
width: 100%;
justify-content: space-between;
margin-bottom: 0.3rem;
.dropdown-toggle {
border-radius: 5px;
line-height: 1rem;
}
}

View File

@ -158,14 +158,6 @@
</div>
{% endif %}
{# Only if ACL SEE_DETAILS AND/OR only on template SHOW ??
durationTime
travelTime
comment
documents
attendee
#}
{% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) and activity.documents|length > 0 %}
<div class="wl-row">
<div class="wl-col title">
@ -174,7 +166,7 @@
<div class="wl-col list">
<ul>
{% for d in activity.documents %}
<li>{{ d.title }}</li>
<li class="document-list-item">{{ d.title }} {{ d|chill_document_button_group() }}</li>
{% endfor %}
</ul>
</div>

View File

@ -8,11 +8,13 @@
{% block js %}
{{ parent() }}
{{ encore_entry_script_tags('mod_notification_toggle_read_status') }}
{{ encore_entry_script_tags('mod_document_action_buttons_group') }}
{% endblock %}
{% block css %}
{{ parent() }}
{{ encore_entry_link_tags('mod_notification_toggle_read_status') }}
{{ encore_entry_link_tags('mod_document_action_buttons_group') }}
{% endblock %}
{% block content %}

View File

@ -23,11 +23,13 @@
{% block js %}
{{ parent() }}
{{ encore_entry_script_tags('mod_notification_toggle_read_status') }}
{{ encore_entry_script_tags('mod_document_action_buttons_group') }}
{% endblock %}
{% block css %}
{{ parent() }}
{{ encore_entry_link_tags('mod_notification_toggle_read_status') }}
{{ encore_entry_link_tags('mod_document_action_buttons_group') }}
{% endblock %}
{% block content %}