[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX][UI] Cypht + Tiki Calendar: information about the event no longer appears in tiki-webmail

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6911f56ebce05_2ce2b942426c@gitlab-sidekiq-low-urgency-cpu-bound-v2-fc49d4986-sxf26.mail>

Victor Emanouilov pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
bf2c68f6 by christer77 at 2025-11-10T14:17:03+00:00
[FIX][UI] Cypht + Tiki Calendar: information about the event no longer appears in tiki-webmail
---
* [FIX][UI] calendar: information about the event no longer appears in tiki-webmail

See merge request tikiwiki/tiki!8317

- - - - -


1 changed file:

- lib/cypht/modules/tiki/calendar_modules.php


Changes:

=====================================
lib/cypht/modules/tiki/calendar_modules.php
=====================================
@@ -424,12 +424,7 @@ class Hm_Output_add_rsvp_actions extends Hm_Output_Module
                     $res .= sprintf('<div class="row g-0 py-0 py-sm-1 small_header d-flex" id="event_calendar_to_rsvp" style="display:none"><div class="col-md-12"><span class="text-muted">%s</span><span class="text-danger">*</span><select class="event_calendar_select_rsvp">%s</select></div></div>', tr('Calendar'), implode('', array_slice($options, 1)));
                 } else {
                     $existing = TikiLib::lib('calendar')->get_item($existing['calitemId']);
-                    $res .= sprintf(
-                        '<tr><th>%s</th><td class="header_links"><a href="tiki-calendar.php?calitemId=%s" data-external="1">%s</a></td></tr>',
-                        tr('Event'),
-                        $existing['calitemId'],
-                        tr('View event in my calendar')
-                    );
+                    $res .= sprintf('<div class="row g-0 py-0 py-sm-1 small_header d-flex"><div class="col-md-2"><span class="text-muted">%s</span></div><div class="col-md-10 col-12 header_links"><a href="tiki-calendar.php?calitemId=%s" data-external="1">%s</a></div></div>', tr('Event'), $existing['calitemId'], tr('View event in my calendar'));
                     foreach (['start', 'end', 'name', 'description', 'participants'] as $field) {
                         $val1 = $existing[$field];
                         $val2 = $event[$field];
@@ -444,10 +439,7 @@ class Hm_Output_add_rsvp_actions extends Hm_Output_Module
                             sort($val2);
                         }
                         if ($val1 != $val2) {
-                            $res .= sprintf(
-                                '<tr class="header_event_addtocal"><th>&nbsp;</th><td class="header_links"><a href="#" class="event_calendar_update">%s</a></td></tr>',
-                                tr('Update in my calendar')
-                            );
+                            $res .= sprintf('<div class="row g-0 py-0 py-sm-1 small_header d-flex header_event_addtocal"><div class="col-md-2"><span class="text-muted">&nbsp;</span></div><div class="col-md-10 col-12 header_links"><a href="#" class="event_calendar_update">%s</a></div></div>', tr('Update in my calendar'));
                             break;
                         }
                     }
@@ -498,28 +490,16 @@ class Hm_Output_add_rsvp_actions extends Hm_Output_Module
                         $event_update_participant_class = 'event_participant_status_updated';
                         $event_update_participant_text = 'Participant status updated';
                     }
-
-
-                    $res .= sprintf(
-                        '<tr>
-                            <th colspan="2" class="header_links">
-                            <a href="#" class="' . $event_update_participant_class . '">%s</a>
-                            </th>
-                        </tr>',
-                        tr($event_update_participant_text)
-                    );
+                    $res .= sprintf('<div class="row g-0 py-0 py-sm-1 small_header d-flex"><div class="col-md-2 header_links"><a href="#" class="' . $event_update_participant_class . '">%s</a></div><div class="col-md-10 col-12"></div></div>', tr($event_update_participant_text));
                 }
             }
             if ($prefs['feature_calendar'] == 'y' && $method == 'CANCEL') {
                 $existing = TikiLib::lib('calendar')->find_by_uid(null, $event['uid']);
                 if ($existing) {
-                    $res .= sprintf(
-                        '<tr><th colspan="2" class="header_links"><a href="#" class="event_remove_from_calendar">%s</a></th></tr>',
-                        tr('Remove from calendar')
-                    );
+                    $res .= sprintf('<div class="row g-0 py-0 py-sm-1 small_header d-flex"><div class="col-md-2 header_links"><a href="#" class="event_remove_from_calendar">%s</a></div><div class="col-md-10 col-12"></div></div>', tr('Remove from calendar'));
                 }
             }
-            $headers = preg_replace("#<tr><td[^>]*header_space[^>]*>.*?</td></tr>#", $res . "\\0", $headers);
+            $headers = preg_replace("#<div[^>]*event_calendar_section[^>]*>.*?</div>#", $res . "\\0", $headers);
         }
         $this->out('msg_headers', $headers, false);
     }



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/bf2c68f6e65e824b5d022dcdfe1ef8ec36231b31

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/bf2c68f6e65e824b5d022dcdfe1ef8ec36231b31
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.