[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH][UI] Hide list view navigation in calendar event modal

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a3907c010f94_3819701c829ab@gitlab-sidekiq-low-urgency-cpu-bound-v2-5998bd8468-86gmc.mail>

ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
0e57b6b2 by Alvin Bauma at 2026-06-22T09:42:53+00:00
[ENH][UI] Hide list view navigation in calendar event modal
---
* [ENH][UI] Hide list view navigation in calendar event modal

See merge request tikiwiki/tiki!10571

- - - - -


3 changed files:

- lib/core/Services/Calendar/Controller.php
- templates/calendar/view_item.tpl
- templates/calendar_header.tpl


Changes:

=====================================
lib/core/Services/Calendar/Controller.php
=====================================
@@ -753,6 +753,7 @@ class Services_Calendar_Controller extends Services_Calendar_BaseController
             'daynames'             => $this->daynamesPlural,
             'monthnames'           => $this->monthnames,
             'preview'              => $preview,
+            'modal'                => $input->modal->int(),
             // related tracker items
             'trackerItems'        => ! empty($trackerItems) ? $trackerItems : [],
             // legacy names expected by templates/calendar/view_item.tpl


=====================================
templates/calendar/view_item.tpl
=====================================
@@ -5,10 +5,12 @@
 {/block}
 
 {block name="content"}
-    {include 
-        file='calendar_header.tpl'
-        viewlist='listEventView'
-    }
+    {if not $modal and not $preview}
+        {include
+            file='calendar_header.tpl'
+            viewlist='listEventView'
+        }
+    {/if}
 
     {if not $preview}
         <div class="float-end">


=====================================
templates/calendar_header.tpl
=====================================
@@ -25,7 +25,7 @@
             {button _class="mt-2" href=$smarty.capture.href _text='{tr}Calendar View{/tr}' _icon_name='calendar' _type='info'}
         {/if}
     {elseif $viewlist eq 'listEventView'}
-        {button _class="mt-2" href='tiki-calendar.php' _text='{tr}List View{/tr}' _icon_name='list' _type='info'}
+        {button _class="mt-2" href='tiki-calendar.php?viewlist=list' _text='{tr}List View{/tr}' _icon_name='list' _type='info'}
     {else}
         {capture name=href}?viewlist=list{if !empty($smarty.request.todate)}&amp;todate={$smarty.request.todate}{/if}{/capture}
         



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/0e57b6b20fcefb20edca189afc6c4b4c84e0a4c4
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
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.