title: $:/core/ui/EditTemplate/tags tags: $:/tags/EditTemplate \whitespace trim \define lingo-base() $:/language/EditTemplate/ \define tag-styles() background-color:$(backgroundColor)$; fill:$(foregroundColor)$; color:$(foregroundColor)$; \end \define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon,tagField:"tags") \whitespace trim <$vars foregroundColor=<> backgroundColor="""$colour$"""> > class="tc-tag-label tc-tag-list-item tc-small-gap-right"> <$transclude tiddler="""$icon$"""/><$view field="title" format="text" /> <$button class="tc-btn-invisible tc-remove-tag-button" style=<>><$action-listops $tiddler=<> $field=<<__tagField__>> $subfilter="-[{!!title}]"/>{{$:/core/images/close-button}} \end \define tag-body(colour,palette,icon,tagField:"tags") <$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon="""$icon$""" tagField=<<__tagField__>>/> \end \define edit-tags-template(tagField:"tags") \whitespace trim
<$list filter="[list[!!$tagField$]sort[title]]" storyview="pop"> <$macrocall $name="tag-body" colour={{{ [] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}} palette={{$:/palette}} icon={{{ [] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerIconFilter]!is[draft]get[text]] }}} tagField=<<__tagField__>>/> <$vars tabIndex={{$:/config/EditTabIndex}} cancelPopups="yes"> <$macrocall $name="tag-picker" tagField=<<__tagField__>>/>
\end <$set name="saveTiddler" value=<>> <$macrocall $name="edit-tags-template" tagField=<>/>