2013-05-31 14:38:27 +00:00
|
|
|
title: $:/core/ui/EditTemplate
|
2012-04-30 11:23:03 +00:00
|
|
|
|
2016-10-08 10:53:20 +00:00
|
|
|
\define actions()
|
|
|
|
<$action-sendmessage $message="tm-add-tag" $param={{$:/temp/NewTagName}}/>
|
|
|
|
<$action-deletetiddler $tiddler="$:/temp/NewTagName"/>
|
|
|
|
<$action-sendmessage $message="tm-add-field" $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/>
|
|
|
|
<$action-deletetiddler $tiddler="$:/temp/newfieldname"/>
|
|
|
|
<$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/>
|
|
|
|
<$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>
|
2014-02-20 22:22:45 +00:00
|
|
|
<$set name="storyTiddler" value=<<currentTiddler>>>
|
2016-04-22 07:36:29 +00:00
|
|
|
<$keyboard key="((cancel-edit-tiddler))" message="tm-cancel-tiddler">
|
2016-10-08 10:53:20 +00:00
|
|
|
<$keyboard key="((save-tiddler))" actions=<<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>
|
2014-02-20 22:22:45 +00:00
|
|
|
</$set>
|
2016-10-08 10:53:20 +00:00
|
|
|
</$fieldmangler>
|
2015-02-27 03:41:10 +00:00
|
|
|
</div>
|