diff --git a/plugin/zoom/lib/DisplayableMeetingTrait.php b/plugin/zoom/lib/DisplayableMeetingTrait.php index 778b9d7613..136755292b 100644 --- a/plugin/zoom/lib/DisplayableMeetingTrait.php +++ b/plugin/zoom/lib/DisplayableMeetingTrait.php @@ -28,9 +28,6 @@ trait DisplayableMeetingTrait /** @var string meeting formatted duration */ public $formattedDuration; - /** @var string meeting details URL */ - public $detailURL; - /** * @throws Exception on unexpected start_time or duration */ @@ -58,8 +55,5 @@ trait DisplayableMeetingTrait $this->durationInterval = $later->diff($now); $this->formattedDuration = $this->durationInterval->format(get_lang('%Hh%I')); } - if (property_exists($this, 'id')) { - $this->detailURL = 'meeting.php?meetingId=' . $this->id; - } } } diff --git a/plugin/zoom/meeting.php b/plugin/zoom/meeting.php index 83ad4309fb..a0b22f0bb8 100755 --- a/plugin/zoom/meeting.php +++ b/plugin/zoom/meeting.php @@ -1,9 +1,11 @@ 'Videoconference Zoom', @@ -49,7 +51,10 @@ if ($plugin->userIsConferenceManager()) { $meeting->agenda = $editMeetingForm->getSubmitValue('agenda'); try { $plugin->updateMeeting($meeting->id, $meeting); - $meeting = $plugin->getMeeting($meeting->id); + Display::addFlash( + Display::return_message(get_lang('MeetingUpdated'), 'confirm') + ); + location($returnURL); } catch (Exception $exception) { Display::addFlash( Display::return_message($exception->getMessage(), 'error') @@ -83,7 +88,7 @@ if ($plugin->userIsConferenceManager()) { Display::addFlash( Display::return_message(get_lang('MeetingDeleted'), 'confirm') ); - location(api_get_course_url() ?: (api_is_platform_admin() ? 'admin.php' : api_get_path(WEB_PATH))); + location($returnURL); } catch (Exception $exception) { Display::addFlash( Display::return_message($exception->getMessage(), 'error') diff --git a/plugin/zoom/meeting_from_admin.php b/plugin/zoom/meeting_from_admin.php new file mode 100644 index 0000000000..bd47f54776 --- /dev/null +++ b/plugin/zoom/meeting_from_admin.php @@ -0,0 +1,6 @@ +{{ meeting.session ? meeting.session.name : '-' }} {{ meeting.topic }} - + {{ 'Details'|get_lang }} diff --git a/plugin/zoom/view/start.tpl b/plugin/zoom/view/start.tpl index ef1d280c1e..95ecc70f9b 100644 --- a/plugin/zoom/view/start.tpl +++ b/plugin/zoom/view/start.tpl @@ -1,45 +1,44 @@ {% if createInstantMeetingForm %} {{ createInstantMeetingForm }} {% endif %} -
- {% if scheduledMeetings %} - - - - - - - - - - - {% for meeting in scheduledMeetings %} - - - - - - - - - {% endfor %} -
{{ 'StartTime'|get_lang }}{{ 'Duration'|get_lang }}{{ 'TopicAndAgenda'|get_lang }}
{{ meeting.formattedStartTime }}{{ meeting.formattedDuration }} - {{ meeting.topic }} -

{{ meeting.agenda| nl2br }}

-
- - {{ 'Details'|get_lang }} - - - {{ 'Join'|get_lang }} - -
- {% else %} - - {% endif %} - {% if scheduleMeetingForm %} -

{{ 'ScheduleMeeting'|get_lang }}

- {{ scheduleMeetingForm }} +{% if scheduledMeetings %} + + + + + + + + + + + {% for meeting in scheduledMeetings %} + + + + + + + + + {% endfor %} +
{{ 'StartTime'|get_lang }}{{ 'Duration'|get_lang }}{{ 'TopicAndAgenda'|get_lang }}
{{ meeting.formattedStartTime }}{{ meeting.formattedDuration }} + {{ meeting.topic }} +

{{ meeting.agenda|nl2br }}

+
+ + {{ 'Details'|get_lang }} + + + {{ 'Join'|get_lang }} + +
+{% else %} + +{% endif %} +{% if scheduleMeetingForm %} +

{{ 'ScheduleMeeting'|get_lang }}

+{{ scheduleMeetingForm }} {% endif %} \ No newline at end of file