1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-02 14:29:55 +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,41 +247,51 @@ tags: $:/tags/Global
} }
</style> </style>
<span class="t-txt"><<lingo Option/Type>></span> <span class="t-txt"><<lingo Option/Type>></span>
<$list filter="[enlist<DV-VAR-FILTER-OPTIONS>]" variable="option"> <%if [<type>!is[blank]] %>
<%if [<DV-TYPE-CONFIG>get[text]match[checkbox]] %> <$list filter="[<_tf.dv-type>split[ ]]" variable="option">
<$checkbox tiddler=<<tf.dv-tmpTypeOptions>> <code class=<<tf.dv-opt-class>> ><<option>></code>
listField="text" </$list>
checked=<<option>> <% else %>
default="all" <$list filter="[enlist<DV-VAR-FILTER-OPTIONS>]" variable="option">
class=<<tf.dv-opt-class>> <%if [<DV-TYPE-CONFIG>get[text]match[checkbox]] %>
data-gap="right" <$checkbox tiddler=<<tf.dv-tmpTypeOptions>>
> listField="text"
<<option>> checked=<<option>>
</$checkbox> default="all"
<% else %> class=<<tf.dv-opt-class>>
<$radio tiddler=<<tf.dv-tmpTypeOptions>> data-gap="right"
listField="text" value=<<option>> >
default="all" <<option>>
class=<<tf.dv-opt-class>> </$checkbox>
data-gap="right" <% else %>
> <$radio tiddler=<<tf.dv-tmpTypeOptions>>
<<option>> listField="text" value=<<option>>
</$radio> default="all"
<% endif %> class=<<tf.dv-opt-class>>
</$list> data-gap="right"
>
<<option>>
</$radio>
<% endif %>
</$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>
<$select tiddler=<<tf.dv-tmpSortOptions>> <%if [<sort>!is[blank]] %>
default="alphabetical" <code class="sel-drop"><<_tf.dv-sort>></code>
class="sel-drop" <% else %>
> <$select tiddler=<<tf.dv-tmpSortOptions>>
<option value="alphabetical">alphabetical</option> default="alphabetical"
<option value="raw">raw</option> class="sel-drop"
</$select> >
<option value="alphabetical">alphabetical</option>
<option value="raw">raw</option>
</$select>
<% endif %>
\end \end
\procedure dv-expandFoldOption() \procedure dv-expandFoldOption()