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 new-field-inner() <$reveal type="nomatch" text="" default=<>> <$button> <$action-sendmessage $message="tm-add-field" $name=<> $value=<>/> <$action-deletetiddler $tiddler="$:/temp/newfieldname"/> <$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/> <> <$reveal type="match" text="" default=<>> <$button> <> \end \define new-field() <$set name="name" value={{$:/temp/newfieldname}}> <$set name="value" value={{$:/temp/newfieldvalue}}> <> \end
<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField"> <$list filter=<> variable="temp">
<$text text=<>/>: <$edit-text tiddler=<> field=<> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/> <$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>
<> <$edit-text tiddler="$:/temp/newfieldname" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} class="tc-edit-texteditor"/> <$edit-text tiddler="$:/temp/newfieldvalue" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class="tc-edit-texteditor"/> <$macrocall $name="new-field"/>