Keep settings on transfer tab after manual USDT transfer redirect.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,9 +6,16 @@
|
||||
</div>
|
||||
|
||||
{% if settings_tabs %}
|
||||
{% set active_settings_tab = (request.args.get('tab') or '').strip() %}
|
||||
{% set ns = namespace(active_idx=0) %}
|
||||
{% for tab in settings_tabs %}
|
||||
{% if active_settings_tab and tab.key == active_settings_tab %}
|
||||
{% set ns.active_idx = loop.index0 %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<div class="env-config-body card settings-config-body">
|
||||
{% for tab in settings_tabs %}
|
||||
<input type="radio" name="settings-section" id="settings-sec-{{ loop.index0 }}" class="env-tab-radio"{% if loop.first %} checked{% endif %}>
|
||||
<input type="radio" name="settings-section" id="settings-sec-{{ loop.index0 }}" class="env-tab-radio"{% if loop.index0 == ns.active_idx %} checked{% endif %}>
|
||||
{% endfor %}
|
||||
<div class="env-config-tabs" role="tablist" aria-label="系统设置分类">
|
||||
{% for tab in settings_tabs %}
|
||||
|
||||
Reference in New Issue
Block a user