$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 '<div id="Event"' . ($active ? '' : ' style="display:none"') . '>';
require KRONOLITH_TEMPLATES . '/view/view.inc';
echo '</div>';
<input type="checkbox" class="checkbox" id="private" name="private"<?php if ($event->isPrivate()) echo ' checked="checked"' ?> />
</td>
</tr>
-<!-- tags -->
-<tr>
- <td class="rightAlign">
- <strong><?php echo Horde::label('tags', _("Tags"))?></strong>
- </td>
- <td colspan="4">
- <input type="text" name="tags" id="tags" value="<?php echo $tags?>" size="40" value="<?php echo $tags?>" />
- </td>
-</tr>
<?php require KRONOLITH_TEMPLATES . '/edit/edit_timespan.inc' ?>
<!-- alarm -->
</tr>
<?php endif; ?>
+<!-- tags -->
+<tr>
+<td colspan="5" class="control toggle" onclick="toggleSection('tags')">
+ <?php echo Horde::img('tree/blank.png', '', array('id' => 'toggle_tags'), $GLOBALS['registry']->getImageDir('horde')) . ' <strong>' . _("Tags") ?></strong>
+ <span class="extra" id="extra_tags"><?php echo $tags?></span>
+ </td>
+</tr>
+<tr id="section_tags">
+ <td class="rightAlign">
+ <strong><?php echo Horde::label('tags', _("Tags"))?></strong>
+ </td>
+ <td colspan="4">
+ <input type="text" name="tags" id="tags" value="<?php echo $tags?>" size="40" value="<?php echo $tags?>" />
+ </td>
+</tr>
+
<!-- spacer -->
<tr>
<td style="line-height:4px;"> </td>
toggleSection('description');
toggleSection('attendees');
toggleSection('recurrence');
+ toggleSection('tags');
<?php if ($GLOBALS['conf']['metadata']['keywords']): ?>
toggleSection('keywords');
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
+<!-- tags -->
+<?php if (!empty($tags)):?>
+ <tr>
+ <td colspan="2" class="control"><strong><?php echo _("Tags")?></strong></td>
+ </tr>
+ <tr>
+ <td colspan="2"><?php echo $tags?></td>
+ </tr>
+<?php endif;?>
<?php if (!$private && !empty($description)): ?>
<!-- description -->
<tr>