2013-05-31 14:38:27 +00:00
|
|
|
title: $:/core/ui/EditTemplate
|
2012-04-30 11:23:03 +00:00
|
|
|
|
2019-10-14 13:31:57 +00:00
|
|
|
\define save-tiddler-actions()
|
|
|
|
<$action-sendmessage $message="tm-add-tag" $param={{{ [<newTagNameTiddler>get[text]] }}}/>
|
|
|
|
<$action-deletetiddler $tiddler=<<newTagNameTiddler>>/>
|
|
|
|
<$action-sendmessage $message="tm-add-field" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/>
|
|
|
|
<$action-deletetiddler $tiddler=<<newFieldNameTiddler>>/>
|
|
|
|
<$action-deletetiddler $tiddler=<<newFieldValueTiddler>>/>
|
2016-10-08 10:53:20 +00:00
|
|
|
<$action-sendmessage $message="tm-save-tiddler"/>
|
|
|
|
\end
|
2013-10-15 13:32:45 +00:00
|
|
|
\define frame-classes()
|
2014-08-28 17:59:35 +00:00
|
|
|
tc-tiddler-frame tc-tiddler-edit-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$
|
2013-10-15 13:32:45 +00:00
|
|
|
\end
|
2018-03-13 14:07:29 +00:00
|
|
|
<div class=<<frame-classes>> data-tiddler-title=<<currentTiddler>>>
|
2016-10-08 10:53:20 +00:00
|
|
|
<$fieldmangler>
|
2019-10-14 13:31:57 +00:00
|
|
|
<$vars storyTiddler=<<currentTiddler>> newTagNameTiddler=<<qualify "$:/temp/NewTagName">> newFieldNameTiddler=<<qualify "$:/temp/NewFieldName">> newFieldValueTiddler=<<qualify "$:/temp/NewFieldValue">>>
|
2016-04-22 07:36:29 +00:00
|
|
|
<$keyboard key="((cancel-edit-tiddler))" message="tm-cancel-tiddler">
|
2019-10-14 13:31:57 +00:00
|
|
|
<$keyboard key="((save-tiddler))" actions=<<save-tiddler-actions>>>
|
2014-04-18 08:28:14 +00:00
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]" variable="listItem">
|
2017-08-08 17:25:45 +00:00
|
|
|
<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]">
|
2014-02-20 22:22:45 +00:00
|
|
|
<$transclude tiddler=<<listItem>>/>
|
2017-08-08 17:25:45 +00:00
|
|
|
</$set>
|
2014-02-20 22:22:45 +00:00
|
|
|
</$list>
|
|
|
|
</$keyboard>
|
2014-05-27 14:42:33 +00:00
|
|
|
</$keyboard>
|
2019-10-14 13:31:57 +00:00
|
|
|
</$vars>
|
2016-10-08 10:53:20 +00:00
|
|
|
</$fieldmangler>
|
2015-02-27 03:41:10 +00:00
|
|
|
</div>
|