Feature: [Calendar doc] show an alert when document is linked to a previous datetime version of the calendar

This commit is contained in:
Julien Fastré 2022-11-28 14:40:33 +01:00
parent 39f410dc8f
commit 6cac298724
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 4 additions and 5 deletions

View File

@ -3,11 +3,6 @@
{% import "@ChillDocStore/Macro/macro.html.twig" as m %}
{% import "@ChillDocStore/Macro/macro_mimeicon.html.twig" as mm %}
<style lang="css">
--bs-btn-padding-y: .25rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .75rem;
</style>
<div class="accompanying_course_work-list">
<table class="obj-res-eval my-3">
<thead>
@ -24,6 +19,9 @@
<li>
{{ mm.mimeIcon(d.storedObject.type) }}
{{ d.storedObject.title }}
{% if d.dateTimeVersion < d.calendar.dateTimeVersion %}
<span class="badge bg-danger">{{ 'chill_calendar.Document outdated'|trans }}</span>
{% endif %}
<ul class="record_actions small inline">
{% if chill_document_is_editable(d.storedObject) and is_granted('CHILL_CALENDAR_DOC_EDIT', d) %}

View File

@ -62,6 +62,7 @@ chill_calendar:
Upload a document: Téléverser un document
Remove a calendar document: Supprimer un document d'un rendez-vous
Are you sure you want to remove the doc?: Êtes-vous sûr·e de vouloir supprimer le document associé ?
Document outdated: La date et l'heure du rendez-vous ont été modifiés après la création du document
remote_ms_graph: