From 266a0c4d2f1ad0a1f7ada42319f1a44322182e7c Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 20 Sep 2019 10:21:17 +0200 Subject: [PATCH] Agenda: Fix attachment link UI see BT#16127 --- main/calendar/agenda_js.php | 7 ++++--- main/template/default/agenda/month.tpl | 13 ++++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/main/calendar/agenda_js.php b/main/calendar/agenda_js.php index 21455e0003..118ea248e2 100755 --- a/main/calendar/agenda_js.php +++ b/main/calendar/agenda_js.php @@ -279,11 +279,12 @@ if ($agenda->type === 'course') { $form->addElement('checkbox', 'add_as_annonuncement', null, get_lang('AddAsAnnouncement')); $form->addHtml(''); $form->addElement('textarea', 'comment', get_lang('Comment'), ['id' => 'comment']); - $form->addHtml(''); } +$form->addHtml(''); + $tpl->assign('form_add', $form->returnForm()); $tpl->assign('legend_list', api_get_configuration_value('agenda_legend')); diff --git a/main/template/default/agenda/month.tpl b/main/template/default/agenda/month.tpl index 278dda4f11..9dc6e40a71 100755 --- a/main/template/default/agenda/month.tpl +++ b/main/template/default/agenda/month.tpl @@ -47,7 +47,7 @@ $(document).ready(function() { autoOpen : false, modal : false, width : 600, - height : 600, + height : 550, zIndex : 20000 // added because of qtip2 }); @@ -722,6 +722,8 @@ $(document).ready(function() { $("#simple_title").html(calEvent.title); $("#simple_content").html(calEvent.description); $("#simple_comment").html(calEvent.comment); + $("#simple_attachment").html(calEvent.attachment); + $("#simple-dialog-form").dialog("open"); $("#simple-dialog-form").dialog({ buttons: { @@ -818,6 +820,15 @@ $(document).ready(function() {
+ +
+ +
+
+
+