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">
|
||||
<span>Strategy mode</span>
|
||||
<select name="strategy_mode">
|
||||
<option
|
||||
value="incremental"
|
||||
{%
|
||||
if
|
||||
strategy_mode=""
|
||||
="incremental"
|
||||
%}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>
|
||||
{% set sel = "selected" if strategy_mode == "incremental" else "" %}
|
||||
<option value="incremental" {{ sel }}>incremental</option>
|
||||
{% set sel = "selected" if strategy_mode == "paper" else "" %}
|
||||
<option value="paper" {{ sel }}>paper</option>
|
||||
{% set sel = "selected" if strategy_mode == "live" else "" %}
|
||||
<option value="live" {{ sel }}>live</option>
|
||||
</select>
|
||||
</label>
|
||||
<label class="field">
|
||||
|
||||
Reference in New Issue
Block a user