title: $:/core/ui/EditTemplate/fields tags: $:/tags/EditTemplate \define lingo-base() $:/language/EditTemplate/ \define config-title() $:/config/EditTemplateFields/Visibility/$(currentField)$ \end \define config-filter() [[hide]] -[title{$(config-title)$}] \end \define current-tiddler-new-field-selector() [data-tiddler-title="$(currentTiddlerCSSescaped)$"] .tc-edit-field-add-name-wrapper input \end \define new-field-actions() <$action-sendmessage $message="tm-add-field" $name={{{ [get[text]] }}} $value={{{ [get[text]] }}}/> <$action-deletetiddler $tiddler=<>/> <$action-deletetiddler $tiddler=<>/> <$action-sendmessage $message="tm-focus-selector" $param=<>/> \end \define delete-state-tiddlers() <$action-deletetiddler $filter="[] [] []"/> \define cancel-search-actions-inner() <$list filter="[has[text]] [has[text]]" variable="ignore" emptyMessage="""<><$action-sendmessage $message="tm-cancel-tiddler"/>"""> <> \end \define cancel-search-actions() <$set name="userInput" value={{{ [get[text]] }}}> <$list filter="[get[text]!match]" emptyMessage="""<>"""> <$action-setfield $tiddler=<> text=<>/><$action-setfield $tiddler=<> text="yes"/> \end \define new-field() <$vars name={{{ [get[text]] }}}> <$reveal type="nomatch" text="" default=<>> <$button tooltip=<>> <$action-sendmessage $message="tm-add-field" $name=<> $value={{{ [get[text]] }}}/> <$action-deletetiddler $tiddler=<>/> <$action-deletetiddler $tiddler=<>/> <> <$reveal type="match" text="" default=<>> <$button> <> \end \whitespace trim
<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField" storyview="pop"> <$list filter=<> variable="temp">
<$text text=<>/>: <$keyboard key="((delete-field))" actions="""<$action-deletefield $field=<>/><$set name="currentTiddlerCSSescaped" value={{{ [escapecss[]] }}}><$action-sendmessage $message="tm-focus-selector" $param=<>/>"""> <$edit-text tiddler=<> field=<> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} tabindex={{$:/config/EditTabIndex}} cancelPopups="yes"/> <$button class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}> <$action-deletefield $field=<>/><$set name="currentTiddlerCSSescaped" value={{{ [escapecss[]] }}}><$action-sendmessage $message="tm-focus-selector" $param=<>/> {{$:/core/images/delete-button}}
<$fieldmangler>
<>
<$vars refreshTitle=<> storeTitle=<> searchListState=<>> <$macrocall $name="keyboard-driven-input" tiddler=<> storeTitle=<> refreshTitle=<> selectionStateTitle=<> tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} focusPopup=<> class="tc-edit-texteditor tc-popup-handle" tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[fields]then[true]] ~[[false]] }}} cancelPopups="yes" configTiddlerFilter="[[$:/config/EditMode/fieldname-filter]]" inputCancelActions=<> /> <$button popup=<> class="tc-btn-invisible tc-btn-dropdown tc-small-gap" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}} <$reveal state=<> type="nomatch" text="" default="">
<$set name="tv-show-missing-links" value="yes"> <$linkcatcher to=<>>
<>
<$set name="newFieldName" value={{{ [get[text]] }}}> <$list filter="[!is[shadow]!is[system]fields[]search:titlesort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type" variable="currentField"> <$list filter="[addsuffix[-primaryList]] -[get[text]]" emptyMessage="""<$link to=<> class="tc-list-item-selected"><$text text=<>/>"""> <$link to=<>> <$text text=<>/>
<>
<$list filter="[fields[]search:titlesort[]] -[!is[shadow]!is[system]fields[]]" variable="currentField"> <$list filter="[addsuffix[-secondaryList]] -[get[text]]" emptyMessage="""<$link to=<> class="tc-list-item-selected"><$text text=<>/>"""> <$link to=<>> <$text text=<>/>
<$set name="currentTiddlerCSSescaped" value={{{ [escapecss[]] }}}> <$keyboard key="((add-field))" actions=<>> <$edit-text tiddler=<> tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class="tc-edit-texteditor" tabindex={{$:/config/EditTabIndex}} cancelPopups="yes"/> <$macrocall $name="new-field"/>