core/tunables: Integrate layout_partials/base_apply_button (#8312)

This commit is contained in:
Monviech 2025-02-12 08:52:00 +01:00 committed by GitHub
parent 79e887241f
commit bf952c2c32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,22 +89,8 @@
<i class="fa fa-trash-o fa-fw"></i>
</button>
</div>
<div class="tab-content content-box">
<div class="content-box __mb">
{{ partial('layout_partials/base_bootgrid_table', formGridTunable)}}
<div class="col-md-12">
<div id="{{formGridTunable['edit_alert_id']}}" class="alert alert-info" style="display: none" role="alert">
{{ lang._('After changing settings, please remember to apply them with the button below') }}
</div>
<hr/>
<button class="btn btn-primary" id="reconfigureAct"
data-endpoint='/api/core/tunables/reconfigure'
data-label="{{ lang._('Apply') }}"
data-error-title="{{ lang._('Error reconfiguring Tunables') }}"
type="button"
></button>
<br/><br/>
</div>
</div>
{{ partial('layout_partials/base_apply_button', {'data_endpoint': '/api/core/tunables/reconfigure'}) }}
{{ partial("layout_partials/base_dialog",['fields':formDialogTunable,'id':formGridTunable['edit_dialog_id'],'label':lang._('Edit Tunable')])}}