2013-11-15 22:55:32 +00:00
|
|
|
title: $:/core/ui/EditTemplate/fields
|
|
|
|
tags: $:/tags/EditTemplate
|
2013-06-08 16:34:51 +00:00
|
|
|
|
2014-02-16 09:46:43 +00:00
|
|
|
\define lingo-base() $:/language/EditTemplate/
|
2014-08-01 16:03:53 +00:00
|
|
|
\define config-title()
|
|
|
|
$:/config/EditTemplateFields/Visibility/$(currentField)$
|
|
|
|
\end
|
2014-08-10 08:13:56 +00:00
|
|
|
\define config-filter()
|
|
|
|
[[hide]] -[title{$(config-title)$}]
|
|
|
|
\end
|
2014-04-06 21:49:59 +00:00
|
|
|
<$fieldmangler>
|
|
|
|
<div class="tw-edit-fields">
|
|
|
|
<table class="tw-edit-fields">
|
|
|
|
<tbody>
|
2014-08-01 16:03:53 +00:00
|
|
|
<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField">
|
2014-08-10 08:13:56 +00:00
|
|
|
<$list filter=<<config-filter>> variable="temp">
|
2014-04-06 21:49:59 +00:00
|
|
|
<tr class="tw-edit-field">
|
|
|
|
<td class="tw-edit-field-name">
|
|
|
|
<$text text=<<currentField>>/>:</td>
|
|
|
|
<td class="tw-edit-field-value">
|
|
|
|
<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>
|
|
|
|
</td>
|
|
|
|
<td class="tw-edit-field-remove">
|
2014-08-28 16:28:32 +00:00
|
|
|
<$button message="tw-remove-field" param=<<currentField>> class="tc-btn-invisible">{{$:/core/images/delete-button}}</$button>
|
2014-04-06 21:49:59 +00:00
|
|
|
</td>
|
2013-10-21 22:10:20 +00:00
|
|
|
</tr>
|
2014-08-10 08:13:56 +00:00
|
|
|
</$list>
|
2013-10-21 22:10:20 +00:00
|
|
|
</$list>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2013-06-08 16:34:51 +00:00
|
|
|
</div>
|
|
|
|
|
2014-04-06 21:49:59 +00:00
|
|
|
<div class="tw-edit-field-add">
|
|
|
|
<em class="tw-edit">
|
|
|
|
<<lingo Fields/Add/Prompt>>
|
|
|
|
</em> <span class="tw-edit-field-add-name">
|
2014-05-16 05:54:46 +00:00
|
|
|
<$edit-text tiddler="$:/temp/newfieldname" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} class="tw-edit-texteditor"/>
|
2014-04-06 21:49:59 +00:00
|
|
|
</span> <span class="tw-edit-field-add-button">
|
2014-05-16 05:54:46 +00:00
|
|
|
<$button message="tw-add-field" param={{$:/temp/newfieldname}} set="$:/temp/newfieldname" setTo="" class="">
|
2014-04-06 21:49:59 +00:00
|
|
|
<<lingo Fields/Add/Button>>
|
|
|
|
</$button>
|
|
|
|
</span>
|
|
|
|
</div>
|
2013-06-08 16:34:51 +00:00
|
|
|
|
|
|
|
</$fieldmangler>
|