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-04-06 21:49:59 +00:00
|
|
|
<$fieldmangler>
|
|
|
|
<div class="tw-edit-fields">
|
|
|
|
<table class="tw-edit-fields">
|
|
|
|
<tbody>
|
2014-04-09 10:31:27 +00:00
|
|
|
<$list filter="[all[current]fields[]] -title -tags -text -creator -created -modified -modifier -type -[[draft.title]] -[[draft.of]] +[sort[title]]" variable="currentField">
|
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">
|
|
|
|
<$button message="tw-remove-field" param=<<currentField>> class="btn-invisible">{{$:/core/images/delete-button}}</$button>
|
|
|
|
</td>
|
2013-10-21 22:10:20 +00:00
|
|
|
</tr>
|
|
|
|
</$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">
|
|
|
|
<$edit-text tiddler="$:/temp/NewFieldName" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} class="tw-edit-texteditor"/>
|
|
|
|
</span> <span class="tw-edit-field-add-button">
|
|
|
|
<$button message="tw-add-field" param={{$:/temp/NewFieldName}} set="$:/temp/NewFieldName" setTo="" class="">
|
|
|
|
<<lingo Fields/Add/Button>>
|
|
|
|
</$button>
|
|
|
|
</span>
|
|
|
|
</div>
|
2013-06-08 16:34:51 +00:00
|
|
|
|
|
|
|
</$fieldmangler>
|