kopia lustrzana https://github.com/miklobit/TiddlyWiki5
71 wiersze
1.9 KiB
Plaintext
71 wiersze
1.9 KiB
Plaintext
title: $:/core/ui/ImportListing
|
|
|
|
\define lingo-base() $:/language/Import/
|
|
|
|
\define messageField()
|
|
message-$(payloadTiddler)$
|
|
\end
|
|
|
|
\define selectionField()
|
|
selection-$(payloadTiddler)$
|
|
\end
|
|
|
|
\define previewPopupState()
|
|
$(currentTiddler)$!!popup-$(payloadTiddler)$
|
|
\end
|
|
|
|
\define select-all-actions()
|
|
<$list filter="[all[current]plugintiddlers[]sort[title]]" variable="payloadTiddler">
|
|
<$action-setfield $field={{{ [<payloadTiddler>addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/>
|
|
</$list>
|
|
\end
|
|
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<th>
|
|
<$checkbox tiddler="$:/state/import/select-all" field="text" checked="checked" unchecked="unchecked" default="checked" actions=<<select-all-actions>>>
|
|
<<lingo Listing/Select/Caption>>
|
|
</$checkbox>
|
|
</th>
|
|
<th>
|
|
<<lingo Listing/Title/Caption>>
|
|
</th>
|
|
<th>
|
|
<<lingo Listing/Status/Caption>>
|
|
</th>
|
|
</tr>
|
|
<$list filter="[all[current]plugintiddlers[]sort[title]]" variable="payloadTiddler">
|
|
<tr>
|
|
<td>
|
|
<$checkbox field=<<selectionField>> checked="checked" unchecked="unchecked" default="checked"/>
|
|
</td>
|
|
<td>
|
|
<$reveal type="nomatch" stateTitle=<<previewPopupState>> text="yes" tag="div">
|
|
<$button class="tc-btn-invisible tc-btn-dropdown" setTitle=<<previewPopupState>> setTo="yes">
|
|
{{$:/core/images/right-arrow}} <$text text=<<payloadTiddler>>/>
|
|
</$button>
|
|
</$reveal>
|
|
<$reveal type="match" stateTitle=<<previewPopupState>> text="yes" tag="div">
|
|
<$button class="tc-btn-invisible tc-btn-dropdown" setTitle=<<previewPopupState>> setTo="no">
|
|
{{$:/core/images/down-arrow}} <$text text=<<payloadTiddler>>/>
|
|
</$button>
|
|
</$reveal>
|
|
</td>
|
|
<td>
|
|
<$view field=<<messageField>>/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3">
|
|
<$reveal type="match" text="yes" stateTitle=<<previewPopupState>> tag="div">
|
|
<$list filter="[{$:/state/importpreviewtype}has[text]]" variable="listItem" emptyMessage={{$:/core/ui/ImportPreviews/Text}}>
|
|
<$transclude tiddler={{$:/state/importpreviewtype}}/>
|
|
</$list>
|
|
</$reveal>
|
|
</td>
|
|
</tr>
|
|
</$list>
|
|
</tbody>
|
|
</table>
|