2013-11-15 22:55:32 +00:00
|
|
|
title: $:/core/ui/EditTemplate/tags
|
|
|
|
tags: $:/tags/EditTemplate
|
2013-06-09 18:28:50 +00:00
|
|
|
|
2018-11-25 11:13:42 +00:00
|
|
|
\whitespace trim
|
|
|
|
|
2014-02-16 09:46:43 +00:00
|
|
|
\define lingo-base() $:/language/EditTemplate/
|
2016-11-28 19:17:25 +00:00
|
|
|
|
2013-10-21 21:55:43 +00:00
|
|
|
\define tag-styles()
|
|
|
|
background-color:$(backgroundColor)$;
|
2016-07-01 09:40:37 +00:00
|
|
|
fill:$(foregroundColor)$;
|
|
|
|
color:$(foregroundColor)$;
|
|
|
|
\end
|
2016-11-28 19:17:25 +00:00
|
|
|
|
2018-11-25 10:43:13 +00:00
|
|
|
\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon)
|
2018-11-25 11:13:42 +00:00
|
|
|
\whitespace trim
|
2016-07-01 09:40:37 +00:00
|
|
|
<$vars foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">> backgroundColor="""$colour$""">
|
2018-11-29 09:51:58 +00:00
|
|
|
<span style=<<tag-styles>> class="tc-tag-label tc-tag-list-item">
|
2019-11-07 12:39:14 +00:00
|
|
|
<$transclude tiddler="""$icon$"""/><$view field="title" format="text" />
|
2019-06-26 11:34:18 +00:00
|
|
|
<$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">{{$:/core/images/close-button}}</$button>
|
2016-07-01 09:40:37 +00:00
|
|
|
</span>
|
|
|
|
</$vars>
|
|
|
|
\end
|
2016-11-28 19:17:25 +00:00
|
|
|
|
2018-11-25 10:43:13 +00:00
|
|
|
\define tag-body(colour,palette,icon)
|
|
|
|
<$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon="""$icon$"""/>
|
2013-10-21 21:55:43 +00:00
|
|
|
\end
|
2016-11-28 19:17:25 +00:00
|
|
|
|
2014-08-28 17:47:21 +00:00
|
|
|
<div class="tc-edit-tags">
|
2014-03-26 13:06:11 +00:00
|
|
|
<$fieldmangler>
|
2016-07-01 09:40:37 +00:00
|
|
|
<$list filter="[all[current]tags[]sort[title]]" storyview="pop">
|
2018-11-25 10:43:13 +00:00
|
|
|
<$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}} icon={{!!icon}}/>
|
2014-04-10 21:49:46 +00:00
|
|
|
</$list>
|
2020-06-11 10:41:35 +00:00
|
|
|
<$vars tabIndex={{$:/config/EditTabIndex}} cancelPopups="yes">
|
2019-10-13 15:53:40 +00:00
|
|
|
<$macrocall $name="tag-picker"/>
|
2020-06-11 10:41:35 +00:00
|
|
|
</$vars>
|
2019-10-13 15:53:40 +00:00
|
|
|
</$fieldmangler>
|
2016-11-28 19:17:25 +00:00
|
|
|
</div>
|