68e03ccd97
Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
1.4 KiB
HTML
29 lines
1.4 KiB
HTML
{# 系统设置 · 导航显示开关(SSR 预渲染,保存仍走 API) #}
|
|
<div class="card settings-card settings-card--standalone" id="display-prefs-card">
|
|
<h2>导航显示</h2>
|
|
<p class="settings-env-hint">以下开关控制顶栏导航与系统设置内区块是否显示,保存后立即生效。关键位监控、实盘下单、系统设置为固定项。</p>
|
|
<div id="display-prefs-form" class="display-prefs-form" data-prefs-ssr="1">
|
|
{% if display_meta %}
|
|
{% for group in display_meta %}
|
|
<div class="display-prefs-group">
|
|
<h3 class="settings-subcard-title">{{ group.group }}</h3>
|
|
<div class="display-prefs-checks">
|
|
{% for item in group.items %}
|
|
<label class="chk-label">
|
|
<input type="checkbox" data-pref-key="{{ item.key }}"{% if display.get(item.key, true) %} checked{% endif %}>
|
|
{{ item.label }}
|
|
</label>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<div class="display-prefs-loading muted">加载中…</div>
|
|
{% endif %}
|
|
</div>
|
|
<div class="settings-actions-row">
|
|
<button type="button" class="btn-primary btn-sm" id="display-prefs-save">保存导航设置</button>
|
|
<span class="settings-status-line" id="display-prefs-status"></span>
|
|
</div>
|
|
</div>
|