From: Michael J. Rubinsky Date: Thu, 29 Jan 2009 19:52:42 +0000 (-0500) Subject: Move the tag section into it's own toggle-able node for events. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=783d7b851f42dfddc5c6395ebc33468526916537;p=horde.git Move the tag section into it's own toggle-able node for events. The keyword section will probably go away --- diff --git a/kronolith/lib/Views/Event.php b/kronolith/lib/Views/Event.php index 2587ed96c..1aee04985 100644 --- a/kronolith/lib/Views/Event.php +++ b/kronolith/lib/Views/Event.php @@ -112,6 +112,12 @@ class Kronolith_View_Event { $dateFormat = $prefs->getValue('date_format'); $timeFormat = $prefs->getValue('twentyFour') ? 'G:i' : 'g:ia'; + // Tags + $tagger = new Kronolith_Tagger(); + $tags = $tagger->getTags($this->event->getUID(), 'event'); + $tags = implode(',', array_values($tags)); + + echo ''; diff --git a/kronolith/templates/edit/edit.inc b/kronolith/templates/edit/edit.inc index f5842a9fe..500739355 100644 --- a/kronolith/templates/edit/edit.inc +++ b/kronolith/templates/edit/edit.inc @@ -123,15 +123,6 @@ isPrivate()) echo ' checked="checked"' ?> /> - - - - - - - - - @@ -414,6 +405,22 @@ endif; + + + + 'toggle_tags'), $GLOBALS['registry']->getImageDir('horde')) . ' ' . _("Tags") ?> + + + + + + + + + + + +   diff --git a/kronolith/templates/edit/javascript.inc b/kronolith/templates/edit/javascript.inc index 936fb91a2..32a8c392e 100644 --- a/kronolith/templates/edit/javascript.inc +++ b/kronolith/templates/edit/javascript.inc @@ -279,6 +279,7 @@ Event.observe(window, 'load', function() { toggleSection('description'); toggleSection('attendees'); toggleSection('recurrence'); + toggleSection('tags'); toggleSection('keywords'); diff --git a/kronolith/templates/view/view.inc b/kronolith/templates/view/view.inc index 9c8f424de..2aa6b5513 100644 --- a/kronolith/templates/view/view.inc +++ b/kronolith/templates/view/view.inc @@ -151,6 +151,15 @@ if ($this->event->isInitialized() && $this->event->alarm > 0): + + + + + + + + +