refactor: Simplify strategy mode selection logic in controls template
CI / lint-test-build (push) Successful in 54s
CI / lint-test-build (push) Successful in 54s
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user