1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-03 14:59:57 +00:00

first run: adjust layout if type and sort parameter are "hardcoded"

This commit is contained in:
pmario 2024-04-30 12:03:37 +02:00
parent c3d0d2432b
commit 91672ab8c5

View File

@ -214,12 +214,6 @@ tags: $:/tags/Global
<!-- ================================== --> <!-- ================================== -->
\procedure dv-search-input-box() \procedure dv-search-input-box()
<%if [<sort>!is[blank]] %>
<code class="tc-small-gap">sort:<<_tf.dv-sort>></code>
<%endif%>
<%if [<type>!is[blank]] %>
<code class="tc-small-gap">type:<<_tf.dv-type>></code>
<%endif%>
<span class="x-txt"><$text text={{$:/language/Search/Variables/Filter}}/></span> <span class="x-txt"><$text text={{$:/language/Search/Variables/Filter}}/></span>
<$edit-text tiddler=<<tf.dv-searchText>> <$edit-text tiddler=<<tf.dv-searchText>>
tag=input tag=input
@ -253,6 +247,11 @@ tags: $:/tags/Global
} }
</style> </style>
<span class="t-txt"><<lingo Option/Type>></span> <span class="t-txt"><<lingo Option/Type>></span>
<%if [<type>!is[blank]] %>
<$list filter="[<_tf.dv-type>split[ ]]" variable="option">
<code class=<<tf.dv-opt-class>> ><<option>></code>
</$list>
<% else %>
<$list filter="[enlist<DV-VAR-FILTER-OPTIONS>]" variable="option"> <$list filter="[enlist<DV-VAR-FILTER-OPTIONS>]" variable="option">
<%if [<DV-TYPE-CONFIG>get[text]match[checkbox]] %> <%if [<DV-TYPE-CONFIG>get[text]match[checkbox]] %>
<$checkbox tiddler=<<tf.dv-tmpTypeOptions>> <$checkbox tiddler=<<tf.dv-tmpTypeOptions>>
@ -275,12 +274,16 @@ tags: $:/tags/Global
</$radio> </$radio>
<% endif %> <% endif %>
</$list> </$list>
<% endif %>
\end \end
\procedure dv-sortOptions() \procedure dv-sortOptions()
<span class="sel-txt"> <span class="sel-txt">
<<lingo Option/Sort>> <<lingo Option/Sort>>
</span> </span>
<%if [<sort>!is[blank]] %>
<code class="sel-drop"><<_tf.dv-sort>></code>
<% else %>
<$select tiddler=<<tf.dv-tmpSortOptions>> <$select tiddler=<<tf.dv-tmpSortOptions>>
default="alphabetical" default="alphabetical"
class="sel-drop" class="sel-drop"
@ -288,6 +291,7 @@ tags: $:/tags/Global
<option value="alphabetical">alphabetical</option> <option value="alphabetical">alphabetical</option>
<option value="raw">raw</option> <option value="raw">raw</option>
</$select> </$select>
<% endif %>
\end \end
\procedure dv-expandFoldOption() \procedure dv-expandFoldOption()