From 40c6b6cb8f950393ff08f56df5460ee1989218e2 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 21 Oct 2013 23:10:20 +0100 Subject: [PATCH] Guts of the field editor Styling is a bit squiffy --- core/ui/FieldEditor.tid | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/core/ui/FieldEditor.tid b/core/ui/FieldEditor.tid index 03af4a349..b28bb3cfd 100644 --- a/core/ui/FieldEditor.tid +++ b/core/ui/FieldEditor.tid @@ -1,12 +1,14 @@ title: $:/core/ui/FieldEditor -\define renderfield(title) -
$title$: <$edit field="$title$" placeholder="field value"/> <$button message="tw-remove-field" param="$title$" class="btn-invisible">{{$:/core/images/delete-button}}
-\end -<$fieldmangler>
-<$list filter="[is[current]fields[]] -title -tags -text -creator -created -modified -modifier -[[draft.title]] -[[draft.of]]" macro="renderfield" itemClass="tw-fieldlist"/> +<$fieldmangler><$setvariable name="targetTiddler" value=<>>
+<$list filter="[is[current]fields[]] -title -tags -text -creator -created -modified -modifier -[[draft.title]] -[[draft.of]]"> + + + +
<><$edit-text title=<> field=<> placeholder="field value"/><$button message="tw-remove-field" param=<> class="btn-invisible">{{$:/core/images/delete-button}}
+ -
Add a new field: <$edit tiddler="$:/NewFieldName" type="input" default="" placeholder="field name"/> <$button message="tw-add-field" param={{$:/NewFieldName}} set="$:/NewFieldName" setTo="" class="">add
+
Add a new field: <$edit-text title="$:/NewFieldName" tag="input" default="" placeholder="field name" class="tw-edit-texteditor"/> <$button message="tw-add-field" param={{$:/NewFieldName}} set="$:/NewFieldName" setTo="" class="">add