mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-06-06 08:34:08 +00:00
Fix formatting of edit fields
This commit is contained in:
parent
1892f33ae6
commit
be8c753f28
@ -5,12 +5,15 @@ tags: $:/tags/EditTemplate
|
|||||||
\define config-title()
|
\define config-title()
|
||||||
$:/config/EditTemplateFields/Visibility/$(currentField)$
|
$:/config/EditTemplateFields/Visibility/$(currentField)$
|
||||||
\end
|
\end
|
||||||
|
\define config-filter()
|
||||||
|
[[hide]] -[title{$(config-title)$}]
|
||||||
|
\end
|
||||||
<$fieldmangler>
|
<$fieldmangler>
|
||||||
<div class="tw-edit-fields">
|
<div class="tw-edit-fields">
|
||||||
<table class="tw-edit-fields">
|
<table class="tw-edit-fields">
|
||||||
<tbody>
|
<tbody>
|
||||||
<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField">
|
<$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">
|
<tr class="tw-edit-field">
|
||||||
<td class="tw-edit-field-name">
|
<td class="tw-edit-field-name">
|
||||||
<$text text=<<currentField>>/>:</td>
|
<$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>
|
<$button message="tw-remove-field" param=<<currentField>> class="btn-invisible">{{$:/core/images/delete-button}}</$button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</$reveal>
|
</$list>
|
||||||
</$list>
|
</$list>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user