refactor: Simplify strategy mode selection logic in controls template
CI / lint-test-build (push) Successful in 54s

This commit is contained in:
2026-06-01 16:56:43 +02:00
parent 9e2f08d40a
commit 2845721797
+6 -36
View File
@@ -125,42 +125,12 @@
<label class="field"> <label class="field">
<span>Strategy mode</span> <span>Strategy mode</span>
<select name="strategy_mode"> <select name="strategy_mode">
<option {% set sel = "selected" if strategy_mode == "incremental" else "" %}
value="incremental" <option value="incremental" {{ sel }}>incremental</option>
{% {% set sel = "selected" if strategy_mode == "paper" else "" %}
if <option value="paper" {{ sel }}>paper</option>
strategy_mode="" {% set sel = "selected" if strategy_mode == "live" else "" %}
="incremental" <option value="live" {{ sel }}>live</option>
%}selected{%
endif
%}
>
incremental
</option>
<option
value="paper"
{%
if
strategy_mode=""
="paper"
%}selected{%
endif
%}
>
paper
</option>
<option
value="live"
{%
if
strategy_mode=""
="live"
%}selected{%
endif
%}
>
live
</option>
</select> </select>
</label> </label>
<label class="field"> <label class="field">