Skip to content

Commit 0de217e

Browse files
committed
Add tag button see BT#13297
1 parent 73aa87a commit 0de217e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main/announcements/announcements.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,14 +502,16 @@
502502
);
503503
$form->addRule('title', get_lang('ThisFieldIsRequired'), 'required');
504504
$form->addElement('hidden', 'id');
505-
$htmlTags = "<b>".get_lang('Tags')."</b><br /><br />";
505+
$htmlTags = '';
506506
$tags = AnnouncementManager::getTags();
507-
508507
foreach ($tags as $tag) {
509508
$htmlTags .= "<b>".$tag."</b><br />";
510509
}
510+
$form->addButtonAdvancedSettings('tags', get_lang('Tags'));
511+
$form->addElement('html', '<div id="tags_options" style="display:none">');
512+
$form->addLabel('', Display::return_message($htmlTags, 'normal', false));
513+
$form->addElement('html', '</div>');
511514

512-
$form->addLabel('', "<div class='alert alert-info'>".$htmlTags."</div>");
513515
$form->addHtmlEditor(
514516
'content',
515517
get_lang('Description'),

0 commit comments

Comments
 (0)