2013-06-08 16:34:51 +00:00
|
|
|
title: $:/core/ui/FieldEditor
|
|
|
|
|
2013-08-15 17:17:11 +00:00
|
|
|
\define renderfield(title)
|
|
|
|
<div class="tw-edit-field"><span class="tw-edit-field-name">$title$:</span> <span class="tw-edit-field-value"><$edit field="$title$" placeholder="field value"/></span> <span class="tw-edit-field-remove"><$button message="tw-remove-field" param="$title$" class="btn-invisible">{{$:/core/images/delete-button}}</$button></span></div>
|
|
|
|
\end
|
|
|
|
<$fieldmangler><div class="tw-edit-fields">
|
|
|
|
<$list filter="[is[current]fields[]] -title -tags -text -creator -created -modified -modifier -[[draft.title]] -[[draft.of]]" macro="renderfield" itemClass="tw-fieldlist"/>
|
2013-06-08 16:34:51 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tw-edit-field-add">Add a new field: <span class="tw-edit-field-add-name"><$edit tiddler="$:/NewFieldName" type="input" default="" placeholder="field name"/></span> <span class="tw-edit-field-add-button"><$button message="tw-add-field" param={{$:/NewFieldName}} set="$:/NewFieldName" setTo="" class="">add</$button></span></div>
|
|
|
|
|
|
|
|
</$fieldmangler>
|