1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 15:24:50 +00:00
TiddlyWiki5/core/ui/EditTemplate/fields.tid

46 lines
1.4 KiB
Plaintext
Raw Normal View History

title: $:/core/ui/EditTemplate/fields
tags: $:/tags/EditTemplate
\define lingo-base() $:/language/EditTemplate/
\define config-title()
$:/config/EditTemplateFields/Visibility/$(currentField)$
\end
2014-08-10 08:13:56 +00:00
\define config-filter()
[[hide]] -[title{$(config-title)$}]
\end
<$fieldmangler>
2014-08-28 17:47:21 +00:00
<div class="tc-edit-fields">
<table class="tc-edit-fields">
<tbody>
<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField">
2014-08-10 08:13:56 +00:00
<$list filter=<<config-filter>> variable="temp">
2014-08-28 17:47:21 +00:00
<tr class="tc-edit-field">
<td class="tc-edit-field-name">
<$text text=<<currentField>>/>:</td>
2014-08-28 17:47:21 +00:00
<td class="tc-edit-field-value">
<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>
</td>
2014-08-28 17:47:21 +00:00
<td class="tc-edit-field-remove">
2014-08-28 20:43:44 +00:00
<$button message="tm-remove-field" param=<<currentField>> class="tc-btn-invisible">{{$:/core/images/delete-button}}</$button>
</td>
</tr>
2014-08-10 08:13:56 +00:00
</$list>
</$list>
</tbody>
</table>
</div>
2014-08-28 17:47:21 +00:00
<div class="tc-edit-field-add">
<em class="tc-edit">
<<lingo Fields/Add/Prompt>>
2014-08-28 17:47:21 +00:00
</em> <span class="tc-edit-field-add-name">
<$edit-text tiddler="$:/temp/newfieldname" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} class="tc-edit-texteditor"/>
</span> <span class="tc-edit-field-add-button">
2014-08-28 20:43:44 +00:00
<$button message="tm-add-field" param={{$:/temp/newfieldname}} set="$:/temp/newfieldname" setTo="" class="">
<<lingo Fields/Add/Button>>
</$button>
</span>
</div>
</$fieldmangler>