ipsec: move swanctl.conf download button to the tab

This aligns with the aliases actions tab.

(cherry picked from commit e44a05a0de)
This commit is contained in:
Franco Fichtner 2026-05-20 09:29:28 +02:00
parent 227942338e
commit f963e5bd33

View file

@ -110,10 +110,6 @@
});
}
});
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
$('#downloadConfig').toggle(e.target.id === 'config_tab');
});
});
</script>
@ -125,12 +121,17 @@
<form id="mainform">
<div class="content-box tab-content">
{{ partial("layout_partials/base_tabs_content",['formData':formSettings]) }}
<div id="configTab" class="tab-pane fade"></div>
<div id="configTab" class="tab-pane fade">
<div class="content-box">
<div class="col-md-12">
<br/>
<button class="btn btn-primary" id="downloadConfig">{{ lang._('Download') }}</button>
<br/>
<br/>
</div>
</div>
</div>
</div>
</form>
<button class="btn btn-primary" id="downloadConfig" style="display: none;">
{{ lang._('Download') }}
</button>
{{ partial('layout_partials/base_apply_button', {'data_endpoint': '/api/ipsec/service/reconfigure', 'data_exclude_scope': 'config_tab'}) }}