title: $:/core/ui/EditTemplate/fields tags: $:/tags/EditTemplate \whitespace trim \procedure lingo-base() $:/language/EditTemplate/ \procedure delete-state-tiddlers() <$action-deletetiddler $filter="[] [] []"/> \procedure focus-new-field-input() <$action-sendmessage $message="tm-focus-selector" $param=`[data-tiddler-title="$(storyTiddler)$"] .tc-edit-field-add-name-wrapper input` /> \procedure new-field-actions() <$action-setfield $tiddler=<> $field={{{ [get[text]] }}} $value={{{ [get[text]] }}} /> <$action-deletetiddler $filter="[prefix[$:/temp/NewFieldValue]prefix]"/> <> <> \end \procedure delete-field-actions() <$action-deletefield $field=<>/> <> \end \procedure cancel-search-actions() <$let userInput={{{ [get[text]] }}}> <%if [get[text]!match] %> <$action-setfield $tiddler=<> text=<>/> <$action-setfield $tiddler=<> text="yes"/> <%else%> <%if [has[text]] [has[text]] %> <> <%else%> <> <%endif%> <%endif%> \end \procedure new-field() <%if [get[text]!is[blank]] %> <$button actions="<>" tooltip={{$:/language/EditTemplate/Fields/Add/Button/Hint}}> <> <%else%> <$button> <> <%endif%> \end \function tf.config-filter() [lookup:show[$:/config/EditTemplateFields/Visibility/]!match[hide]] \function tf.field-cascade() [] :cascade[all[shadows+tiddlers]tag[$:/tags/FieldEditorFilter]!is[draft]get[text]] :and[!is[blank]else{$:/core/ui/EditTemplate/fieldEditor/default}] \end \function tf.get-field-editor() [get[text]else[]] :cascade[all[shadows+tiddlers]tag[$:/tags/FieldEditorFilter]!is[draft]get[text]] :and[!is[blank]else{$:/core/ui/EditTemplate/fieldEditor/default}] \end \function tf.primary-list-exceptions() created creator draft.of draft.title modified modifier tags text title type \function tf.list-selection-class(listSuffix) [get[text]removesuffixmatchthen[tc-list-item-selected]] <$let newFieldValueTiddlerPrefix={{{ [!is[blank]else] }}} >
<$list filter="[all[current]fields[]] :and[sort[title]]" variable="currentField" storyview="pop"> <%if [tf.config-filter[]] %> <%endif%>
<$text text=<>/>: <$keyboard key="((delete-field))" actions="<>"> <$transclude tiddler=<> /> <$button actions="<>" aria-label={{$:/language/EditTemplate/Field/Remove/Caption}} class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} > {{$:/core/images/delete-button}}
<> <$let refreshTitle=<> storeTitle=<> searchListState=<> >
<$transclude $variable="keyboard-driven-input" cancelPopups="yes" class=`tc-edit-texteditor tc-popup-handle ${ [get[text]] :intersection[fields[]] :then[[tc-edit-field-exists]] }$` configTiddlerFilter="[[$:/config/EditMode/fieldname-filter]]" default="" focus={{{ [{!!draft.of}is[tiddler]then{$:/config/AutoFocusEdit}match[fields]then[true]] :else[{$:/config/AutoFocus}match[fields]then[true]] :else[[false]] }}} focusPopup=<> inputAcceptVariantActions=<> inputCancelActions=<> placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} refreshTitle=<> selectionStateTitle=<> storeTitle=<> tag="input" tabindex={{$:/config/EditTabIndex}} tiddler=<> /> <$button aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}} class="tc-btn-invisible tc-btn-dropdown tc-small-gap" popup=<> tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} > {{$:/core/images/down-arrow}} <$reveal state=<> type="nomatch" text="" default="" tag="div" class="tc-block-dropdown tc-edit-type-dropdown"> <$let tv-show-missing-links="yes"> <$linkcatcher to=<>>
<>
<$let newFieldName={{{ [get[text]] }}} primaryListFields={{{ [!is[shadow]!is[system]fields[]format:titlelist[]join[ ]] }}} > <$list filter="[enlistsearch:titlesort[]] :except[tf.primary-list-exceptions[]]" variable="currentField"> <$link to=<> class=<> > <$text text=<>/>
<>
<$list filter="[fields[]search:title!enlistsort[]]" variable="currentField"> <$link to=<> class=<>> <$text text=<>/>
<$let currentFieldName={{{ [get[text]] }}} fieldEditor=<> newFieldValueTiddler={{{ [] [[/]] [sha256[16]] :and[join[]] }}} currentTiddler=<> > <$keyboard key="((add-field))" actions="<>"> <$transclude $tiddler=<> /> <$transclude $variable="new-field"/>