1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-05 18:26:56 +00:00

Fix formatting of edit fields

This commit is contained in:
Jermolene 2014-08-10 09:13:56 +01:00
parent 1892f33ae6
commit be8c753f28

View File

@ -5,12 +5,15 @@ tags: $:/tags/EditTemplate
\define config-title()
$:/config/EditTemplateFields/Visibility/$(currentField)$
\end
\define config-filter()
[[hide]] -[title{$(config-title)$}]
\end
<$fieldmangler>
<div class="tw-edit-fields">
<table class="tw-edit-fields">
<tbody>
<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField">
<$reveal type="nomatch" state=<<config-title>> text="hide">
<$list filter=<<config-filter>> variable="temp">
<tr class="tw-edit-field">
<td class="tw-edit-field-name">
<$text text=<<currentField>>/>:</td>
@ -21,7 +24,7 @@ $:/config/EditTemplateFields/Visibility/$(currentField)$
<$button message="tw-remove-field" param=<<currentField>> class="btn-invisible">{{$:/core/images/delete-button}}</$button>
</td>
</tr>
</$reveal>
</$list>
</$list>
</tbody>
</table>