2013-11-15 22:55:32 +00:00
|
|
|
title: $:/core/ui/EditTemplate/tags
|
|
|
|
tags: $:/tags/EditTemplate
|
2013-06-09 18:28:50 +00:00
|
|
|
|
2013-10-21 21:55:43 +00:00
|
|
|
\define tag-styles()
|
|
|
|
background-color:$(backgroundColor)$;
|
|
|
|
\end
|
2013-11-30 10:55:45 +00:00
|
|
|
<div class="tw-edit-tags"><$fieldmangler><$list filter="[is[current]tags[]sort[title]]" storyview="pop" itemClass="tw-tag-editor-label"><$set name="backgroundColor" value={{!!color}}><span style=<<tag-styles>> class="tw-tag-label"><$view field="title" format="text" /><$button message="tw-remove-tag" param={{!!title}} class="btn-invisible tw-remove-tag-button">×</$button></span></$set>
|
|
|
|
</$list>
|
2013-06-09 18:28:50 +00:00
|
|
|
|
2013-11-30 10:55:45 +00:00
|
|
|
<div class="tw-edit-add-tag"><span class="tw-add-tag-name"><$edit-text tiddler="$:/NewTagName" tag="input" default="" placeholder="tag name" focusPopup=<<qualify "$:/state/tagsAutoComplete">> class="tw-edit-texteditor"/></span> <$button popup=<<qualify "$:/state/tagsAutoComplete">> class="btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button> <span class="tw-add-tag-button"><$button message="tw-add-tag" param={{$:/NewTagName}} set="$:/NewTagName" setTo="" class="">add</$button></span></div>
|
2013-06-09 18:28:50 +00:00
|
|
|
|
2013-11-18 09:00:00 +00:00
|
|
|
<div class="tw-block-dropdown-wrapper">
|
2013-11-02 15:42:24 +00:00
|
|
|
<$reveal state=<<qualify "$:/state/tagsAutoComplete">> type="nomatch" text="" default="">
|
2013-11-18 09:00:00 +00:00
|
|
|
<div class="tw-block-dropdown">
|
2013-11-15 18:31:39 +00:00
|
|
|
<$linkcatcher set="$:/NewTagName" setTo="" message="tw-add-tag"><$list filter="[!is[shadow]tags[]search{$:/NewTagName}sort[title]]"><$link><$set name="backgroundColor" value={{!!color}}><span style=<<tag-styles>> class="tw-tag-label"><$view field="title" format="text"/></span></$set></$link>
|
2013-06-09 18:28:50 +00:00
|
|
|
</$list>
|
|
|
|
</$linkcatcher>
|
2013-10-21 21:55:43 +00:00
|
|
|
</div>
|
2013-06-09 18:28:50 +00:00
|
|
|
|
|
|
|
</$reveal>
|
|
|
|
</div>
|
|
|
|
</$fieldmangler>
|
2013-11-30 10:55:45 +00:00
|
|
|
</div>
|