fix user/form heading-icon; re-add button to set panel configured manually
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -108,6 +108,7 @@ if ($userinfo['change_serversettings'] == '1') {
|
|||||||
'config' => [
|
'config' => [
|
||||||
'title' => $lng['admin']['configfiles']['serverconfiguration'],
|
'title' => $lng['admin']['configfiles']['serverconfiguration'],
|
||||||
'image' => 'fa-solid fa-wrench',
|
'image' => 'fa-solid fa-wrench',
|
||||||
|
'description' => 'Configure the system services',
|
||||||
'sections' => [
|
'sections' => [
|
||||||
'section_config' => [
|
'section_config' => [
|
||||||
'fields' => [
|
'fields' => [
|
||||||
@@ -131,6 +132,12 @@ if ($userinfo['change_serversettings'] == '1') {
|
|||||||
UI::twigBuffer('user/form-note.html.twig', [
|
UI::twigBuffer('user/form-note.html.twig', [
|
||||||
'formaction' => $linker->getLink(array('section' => 'configfiles')),
|
'formaction' => $linker->getLink(array('section' => 'configfiles')),
|
||||||
'formdata' => $cfg_formfield['config'],
|
'formdata' => $cfg_formfield['config'],
|
||||||
|
'actions_links' => (int) Settings::Get('panel.is_configured') == 0 ? [[
|
||||||
|
'href' => $linker->getLink(['section' => 'configfiles', 'page' => 'overview', 'action' => 'setconfigured']),
|
||||||
|
'label' => $lng['panel']['ihave_configured'],
|
||||||
|
'class' => 'btn-outline-warning',
|
||||||
|
'icon' => 'fa fa-circle-check'
|
||||||
|
]] : [],
|
||||||
// alert
|
// alert
|
||||||
'type' => 'warning',
|
'type' => 'warning',
|
||||||
'alert_msg' => $lng['panel']['settings_before_configuration']
|
'alert_msg' => $lng['panel']['settings_before_configuration']
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
{% if formdata.title is not empty %}
|
{% if formdata.title is not empty %}
|
||||||
<div>
|
<div>
|
||||||
<h5 class="mb-1">
|
<h5 class="mb-1">
|
||||||
{% if form_data.image is not empty %}
|
{% if formdata.image is not empty %}
|
||||||
<i class="{{ form_data.image }} me-1"></i>
|
<i class="{{ formdata.image }} me-1"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ formdata.title }}
|
{{ formdata.title }}
|
||||||
</h5>
|
</h5>
|
||||||
|
|||||||
Reference in New Issue
Block a user