diff --git a/src/Bundle/ChillCalendarBundle/Form/CalendarDocEditType.php b/src/Bundle/ChillCalendarBundle/Form/CalendarDocEditType.php index 26a9d59e2..34a501028 100644 --- a/src/Bundle/ChillCalendarBundle/Form/CalendarDocEditType.php +++ b/src/Bundle/ChillCalendarBundle/Form/CalendarDocEditType.php @@ -26,9 +26,6 @@ class CalendarDocEditType extends AbstractType ->add('title', TextType::class, [ 'label' => 'chill_calendar.Document title', 'required' => true, - ]) - ->add('doc', StoredObjectType::class, [ - 'label' => 'chill_calendar.Document object', ]); } diff --git a/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_documents.twig.html b/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_documents.twig.html index 09824b5cc..c295d31a1 100644 --- a/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_documents.twig.html +++ b/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_documents.twig.html @@ -20,15 +20,24 @@
{{ d.storedObject.title }} - {% if d.dateTimeVersion < d.calendar.dateTimeVersion %} +
+ {% if d.dateTimeVersion < d.calendar.dateTimeVersion %} +
{{ 'chill_calendar.Document outdated'|trans }} - {% endif %} -
-
- {{ mm.mimeIcon(d.storedObject.type) }}
+ {% endif %}
- {{ d.storedObject|chill_document_button_group(d.storedObject.title, is_granted('CHILL_CALENDAR_DOC_EDIT', d), {'small': true}) }} +
diff --git a/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig b/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig index c09be27b7..2c3cde01a 100644 --- a/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig +++ b/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig @@ -103,6 +103,13 @@ {% endif %} +
+
+ + {{ include('@ChillCalendar/Calendar/_documents.twig.html') }} +
+
+ {% if calendar.activity is not null %}
@@ -121,16 +128,19 @@ -
@@ -139,14 +149,7 @@ {% endif %} -
-
- - {{ include('@ChillCalendar/Calendar/_documents.twig.html') }} -
-
- -
+