2014-02-25 20:14:16 +00:00
|
|
|
title: $:/TagManager
|
|
|
|
|
2014-03-20 20:55:59 +00:00
|
|
|
\define lingo-base() $:/language/TagManager/
|
2014-08-09 19:50:28 +00:00
|
|
|
\define iconEditorTab(type)
|
|
|
|
<$list filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]">
|
|
|
|
<$link to={{!!title}}>
|
|
|
|
<$transclude/> <$view field="title"/>
|
|
|
|
</$link>
|
|
|
|
</$list>
|
|
|
|
\end
|
2014-03-12 21:56:46 +00:00
|
|
|
\define iconEditor(title)
|
2014-08-28 17:21:08 +00:00
|
|
|
<div class="tc-drop-down-wrapper">
|
2014-11-03 22:07:00 +00:00
|
|
|
<$button popup=<<qualify "$:/state/popup/icon/$title$">> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button>
|
2014-08-09 12:12:23 +00:00
|
|
|
<$reveal state=<<qualify "$:/state/popup/icon/$title$">> type="popup" position="belowleft" text="" default="">
|
2014-08-28 17:21:08 +00:00
|
|
|
<div class="tc-drop-down">
|
2014-03-12 21:56:46 +00:00
|
|
|
<$linkcatcher to="$title$!!icon">
|
2014-08-09 19:50:28 +00:00
|
|
|
<<iconEditorTab type:"!">>
|
2014-08-09 19:52:31 +00:00
|
|
|
<hr/>
|
2014-08-09 19:50:28 +00:00
|
|
|
<<iconEditorTab type:"">>
|
2014-03-12 21:56:46 +00:00
|
|
|
</$linkcatcher>
|
2014-08-09 12:12:23 +00:00
|
|
|
</div>
|
2014-03-12 21:56:46 +00:00
|
|
|
</$reveal>
|
|
|
|
</div>
|
|
|
|
\end
|
2014-11-03 22:39:05 +00:00
|
|
|
\define qualifyTitle(title)
|
2014-11-03 22:07:00 +00:00
|
|
|
$title$$(currentTiddler)$
|
|
|
|
\end
|
|
|
|
\define toggleButton(state)
|
2014-11-03 22:39:05 +00:00
|
|
|
<$reveal state="$state$" type="match" text="closed" default="closed">
|
2014-11-04 12:35:46 +00:00
|
|
|
<$button set="$state$" setTo="open" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected">
|
|
|
|
{{$:/core/images/info-button}}
|
2014-11-03 22:39:05 +00:00
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal state="$state$" type="match" text="open" default="closed">
|
2014-11-04 12:35:46 +00:00
|
|
|
<$button set="$state$" setTo="closed" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected">
|
|
|
|
{{$:/core/images/info-button}}
|
2014-11-03 22:39:05 +00:00
|
|
|
</$button>
|
|
|
|
</$reveal>
|
2014-11-03 22:07:00 +00:00
|
|
|
\end
|
2014-02-25 20:14:16 +00:00
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2014-03-20 20:55:59 +00:00
|
|
|
<th><<lingo Colour/Heading>></th>
|
2014-11-03 22:07:00 +00:00
|
|
|
<th class="tc-tag-manager-tag"><<lingo Tag/Heading>></th>
|
2014-03-20 20:55:59 +00:00
|
|
|
<th><<lingo Icon/Heading>></th>
|
2014-11-04 12:35:46 +00:00
|
|
|
<th><<lingo Info/Heading>></th>
|
2014-02-25 20:14:16 +00:00
|
|
|
</tr>
|
2014-03-12 20:05:34 +00:00
|
|
|
<$list filter="[tags[]!is[system]sort[title]]">
|
2014-02-25 20:14:16 +00:00
|
|
|
<tr>
|
2014-11-03 22:07:00 +00:00
|
|
|
<td><$edit-text field="color" tag="input" type="color"/></td>
|
2014-02-25 21:22:15 +00:00
|
|
|
<td><$transclude tiddler="$:/core/ui/TagTemplate"/></td>
|
2014-11-03 22:07:00 +00:00
|
|
|
<td>
|
2014-11-03 22:39:05 +00:00
|
|
|
<$macrocall $name="iconEditor" title={{!!title}}/>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<$macrocall $name="toggleButton" state=<<qualifyTitle "$:/state/tag-manager/">> />
|
2014-11-03 22:07:00 +00:00
|
|
|
</td>
|
2014-02-25 20:14:16 +00:00
|
|
|
</tr>
|
2014-11-03 22:39:05 +00:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
2014-11-03 22:07:00 +00:00
|
|
|
<td>
|
2014-11-03 22:39:05 +00:00
|
|
|
<$reveal state=<<qualifyTitle "$:/state/tag-manager/">> type="match" text="open" default="">
|
2014-11-03 22:07:00 +00:00
|
|
|
<table>
|
|
|
|
<tbody>
|
2014-11-04 12:35:46 +00:00
|
|
|
<tr><td><<lingo Colour/Heading>></td><td><$edit-text field="color" tag="input" type="text" size="9"/></td></tr>
|
|
|
|
<tr><td><<lingo Icon/Heading>></td><td><$edit-text field="icon" tag="input" size="45"/></td></tr>
|
2014-11-03 22:07:00 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</$reveal>
|
2014-11-03 22:39:05 +00:00
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2014-02-25 20:14:16 +00:00
|
|
|
</$list>
|
|
|
|
</tbody>
|
|
|
|
</table>
|