mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-19 22:26:18 +00:00
![Jermolene](/assets/img/avatar_default.png)
Prompted by this discussion: https://groups.google.com/d/topic/tiddlywiki/MYBWCxOc_gM/discussion
69 lines
1.7 KiB
Plaintext
69 lines
1.7 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" state=<<previewPopupState>> text="yes">
|
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<previewPopupState>> setTo="yes">
|
|
{{$:/core/images/right-arrow}} <$text text=<<payloadTiddler>>/>
|
|
</$button>
|
|
</$reveal>
|
|
<$reveal type="match" state=<<previewPopupState>> text="yes">
|
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<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" state=<<previewPopupState>>>
|
|
<$transclude subtiddler=<<payloadTiddler>> mode="block"/>
|
|
</$reveal>
|
|
</td>
|
|
</tr>
|
|
</$list>
|
|
</tbody>
|
|
</table>
|