mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-11 23:09:42 +00:00
![Simon Huber](/assets/img/avatar_default.png)
* replace by span.tc-small-gap-right * replace * replace * replace * replace * replace * replace * replace
32 lines
1.9 KiB
Plaintext
32 lines
1.9 KiB
Plaintext
title: $:/core/ui/EditTemplate/type
|
|
tags: $:/tags/EditTemplate
|
|
|
|
\define lingo-base() $:/language/EditTemplate/
|
|
\whitespace trim
|
|
<div class="tc-edit-type-selector-wrapper">
|
|
<em class="tc-edit tc-big-gap-right"><<lingo Type/Prompt>></em>
|
|
<div class="tc-type-selector-dropdown-wrapper">
|
|
<div class="tc-type-selector"><$fieldmangler>
|
|
<$edit-text field="type" tag="input" default="" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify "$:/state/popup/type-dropdown">> class="tc-edit-typeeditor tc-edit-texteditor tc-popup-handle" tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[type]then[true]] ~[[false]] }}} cancelPopups="yes"/><$button popup=<<qualify "$:/state/popup/type-dropdown">> class="tc-btn-invisible tc-btn-dropdown tc-small-gap" tooltip={{$:/language/EditTemplate/Type/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Type/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button><$button message="tm-remove-field" param="type" class="tc-btn-invisible tc-btn-icon" tooltip={{$:/language/EditTemplate/Type/Delete/Hint}} aria-label={{$:/language/EditTemplate/Type/Delete/Caption}}>{{$:/core/images/delete-button}}</$button>
|
|
</$fieldmangler></div>
|
|
|
|
<div class="tc-block-dropdown-wrapper">
|
|
<$set name="tv-show-missing-links" value="yes">
|
|
<$reveal state=<<qualify "$:/state/popup/type-dropdown">> type="nomatch" text="" default="">
|
|
<div class="tc-block-dropdown tc-edit-type-dropdown">
|
|
<$linkcatcher to="!!type">
|
|
<$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group-sort]]'>
|
|
<div class="tc-dropdown-item">
|
|
<$text text={{!!group}}/>
|
|
</div>
|
|
<$list filter="[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]group{!!group}] +[sort[description]]"><$link to={{!!name}}><$view field="description"/> (<$view field="name"/>)</$link>
|
|
</$list>
|
|
</$list>
|
|
</$linkcatcher>
|
|
</div>
|
|
</$reveal>
|
|
</$set>
|
|
</div>
|
|
</div>
|
|
</div>
|