title: $:/core/ui/EditTemplate/fields tags: $:/tags/EditTemplate \procedure lingo-base() $:/language/EditTemplate/ \function tf.config-title() [[$:/config/EditTemplateFields/Visibility/]addsuffix[$(currentField)$]substitute[]get[text]] \function tf.config-filter() [[hide]] :except[title] \procedure get-field-value-tiddler-filter() [subfiltersha256[16]addprefix[/]addprefix] \procedure get-field-editor-filter() [get[text]else[]] :cascade[all[shadows+tiddlers]tag[$:/tags/FieldEditorFilter]!is[draft]get[text]] :and[!is[blank]else{$:/core/ui/EditTemplate/fieldEditor/default}] \procedure prefix.bracket() [ \procedure suffix.bracket() ] \function tf.current-tiddler-new-field-selector() [[data-tiddler-title=]addprefix[$(prefix.bracket)$]substitute[]addsuffixaddsuffix[$(suffix.bracket)$]substitute[]] .tc-edit-field-add-name-wrapper input :and[join[ ]] \procedure new-field-actions() \whitespace trim <$action-sendmessage $message="tm-add-field" $name={{{ [get[text]] }}} $value={{{ [get[text]] :map[subfilterget[text]] }}}/> <$set name="safeNewFieldValueTiddlerPrefix" value=<> emptyValue=<> > <$action-deletetiddler $filter="[] [prefix[$:/temp/NewFieldValue]prefix] [] []"/> <$action-sendmessage $message="tm-focus-selector" $param=<>/> \end \procedure delete-state-tiddlers() <$action-deletetiddler $filter="[] [] []"/> \procedure cancel-search-actions-inner() \whitespace trim <$list filter="[has[text]] [has[text]]" variable="ignore" emptyMessage="<>"> <> \end \procedure cancel-search-actions() \whitespace trim <$set name="userInput" value={{{ [get[text]] }}}> <$list filter="[get[text]!match]" emptyMessage="<>"> <$action-setfield $tiddler=<> text=<>/><$action-setfield $tiddler=<> text="yes"/> \end \procedure new-field() \whitespace trim <$vars name={{{ [get[text]] }}}> <$reveal type="nomatch" text="" default=<>> <$button tooltip={{$:/language/EditTemplate/Fields/Add/Button/Hint}}> <$action-sendmessage $message="tm-add-field" $name=<> $value={{{ [subfilterget[text]] }}}/> <$set name="safeNewFieldValueTiddlerPrefix" value=<> emptyValue=<> > <$action-deletetiddler $filter="[] [prefix[$:/temp/NewFieldValue]prefix] [] []"/> <> <$reveal type="match" text="" default=<>> <$button> <> \end \whitespace trim <$set name="newFieldValueTiddlerPrefix" value=<> emptyValue=<> >
<$list filter="[all[current]fields[]] :and[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=<>/>"""> <$transclude tiddler={{{ [] :cascade[all[shadows+tiddlers]tag[$:/tags/FieldEditorFilter]!is[draft]get[text]] :and[!is[blank]else{$:/core/ui/EditTemplate/fieldEditor/default}] }}} /> <$button class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}> <$action-deletefield $field=<>/> {{$:/core/images/delete-button}}
<$fieldmangler>
<> <$vars refreshTitle=<> storeTitle=<> searchListState=<>>
<$transclude $variable="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]] :else[[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[]] :except[[created]] :except[[creator]] :except[[draft.of]] :except[[draft.title]] :except[[modified]] :except[[modifier]] :except[[tags]] :except[[text]] :except[[title]] :except[[type]]" variable="currentField"> <$list filter="[addsuffix[-primaryList]] :except[get[text]]" emptyMessage="""<$link to=<> class="tc-list-item-selected"><$text text=<>/>"""> <$link to=<>> <$text text=<>/>
<>
<$list filter="[fields[]search:titlesort[]] :except[!is[shadow]!is[system]fields[]]" variable="currentField"> <$list filter="[addsuffix[-secondaryList]] :except[get[text]]" emptyMessage="""<$link to=<> class="tc-list-item-selected"><$text text=<>/>"""> <$link to=<>> <$text text=<>/>
<$let currentTiddlerCSSescaped={{{ [escapecss[]] }}} currentTiddler={{{ [subfilter] }}} currentField="text" currentFieldName={{{ [get[text]] }}}> <$keyboard key="((add-field))" actions=<>> <$transclude tiddler={{{ [subfilter] }}} /> <$transclude $variable="new-field"/>