mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 23:04:50 +00:00
09a3f94d79
Fixes for accessibility issues raised here: https://groups.google.com/d/topic/tiddlywiki/C6lSabtpdEI/discussion
54 lines
1.8 KiB
Plaintext
54 lines
1.8 KiB
Plaintext
title: $:/core/ui/EditTemplate/fields
|
|
tags: $:/tags/EditTemplate
|
|
|
|
\define lingo-base() $:/language/EditTemplate/
|
|
\define config-title()
|
|
$:/config/EditTemplateFields/Visibility/$(currentField)$
|
|
\end
|
|
\define config-filter()
|
|
[[hide]] -[title{$(config-title)$}]
|
|
\end
|
|
<div class="tc-edit-fields">
|
|
<table class="tc-edit-fields">
|
|
<tbody>
|
|
<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField">
|
|
<$list filter=<<config-filter>> variable="temp">
|
|
<tr class="tc-edit-field">
|
|
<td class="tc-edit-field-name">
|
|
<$text text=<<currentField>>/>:</td>
|
|
<td class="tc-edit-field-value">
|
|
<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>
|
|
</td>
|
|
<td class="tc-edit-field-remove">
|
|
<$button class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>
|
|
<$action-deletefield $field=<<currentField>>/>
|
|
{{$:/core/images/delete-button}}
|
|
</$button>
|
|
</td>
|
|
</tr>
|
|
</$list>
|
|
</$list>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tc-edit-field-add">
|
|
<em class="tc-edit">
|
|
<<lingo Fields/Add/Prompt>>
|
|
</em>
|
|
<span class="tc-edit-field-add-name">
|
|
<$edit-text tiddler="$:/temp/newfieldname" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} class="tc-edit-texteditor"/>
|
|
</span>
|
|
<span class="tc-edit-field-add-value">
|
|
<$edit-text tiddler="$:/temp/newfieldvalue" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class="tc-edit-texteditor"/>
|
|
</span>
|
|
<span class="tc-edit-field-add-button">
|
|
<$button>
|
|
<$action-setfield $field={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/>
|
|
<$action-deletetiddler $tiddler="$:/temp/newfieldname"/>
|
|
<$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/>
|
|
<<lingo Fields/Add/Button>>
|
|
</$button>
|
|
</span>
|
|
</div>
|