Skip to content

Commit

Permalink
Settings UI improvements ⚙
Browse files Browse the repository at this point in the history
  • Loading branch information
jokob-sk committed Oct 14, 2023
1 parent 8ad63ba commit 7da9bf0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 24 deletions.
2 changes: 2 additions & 0 deletions front/css/pialert.css
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ height: 50px;
.settings-group
{
font-size: 20px;
padding-top: 7px;
padding-bottom: 9px;
}

.settings-group i{
Expand Down
54 changes: 30 additions & 24 deletions front/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,29 +72,35 @@
</h1>
<div class="settingsImported"><?= lang("settings_imported");?> <span id="lastImportedTime"></span></div>
</section>
<div class="content settingswrap col-sm-12" id="accordion_gen">

<div class ="settings-group col-sm-12" >
<?= lang("Plugins_type_core");?> (<i class="<?= lang("Plugins_type_core_icon");?>"></i>)
</div>
<div class =" col-sm-12" id="core_content"></div>


<div class ="settings-group col-sm-12" >
<?= lang("Plugins_type_system");?> (<i class="<?= lang("Plugins_type_system_icon");?>"></i>)
</div>
<div class =" col-sm-12" id="system_content"></div>

<div class ="settings-group col-sm-12" >
<?= lang("Plugins_type_scanner");?> (<i class="<?= lang("Plugins_type_scanner_icon");?>"></i>)
</div>
<div class =" col-sm-12" id="scanner_content"></div>

<div class ="settings-group col-sm-12" >
<?= lang("Plugins_type_publisher");?> (<i class="<?= lang("Plugins_type_publisher_icon");?>"></i>)
</div>
<div class =" col-sm-12" id="publisher_content"></div>

<div class="content settingswrap " id="accordion_gen">

<div class ="bg-grey-dark color-palette box panel panel-default col-sm-12 box-default box-info" >
<div class ="settings-group col-sm-12">
<i class="<?= lang("Plugins_type_core_icon");?>"></i> <?= lang("Plugins_type_core");?>
</div>
<div class =" col-sm-12" id="core_content"></div>
</div>

<div class ="bg-grey-dark color-palette box panel panel-default col-sm-12 box-default box-info" >
<div class ="settings-group col-sm-12">
<i class="<?= lang("Plugins_type_system_icon");?>"></i> <?= lang("Plugins_type_system");?>
</div>
<div class =" col-sm-12" id="system_content"></div>
</div>

<div class ="bg-grey-dark color-palette box panel panel-default col-sm-12 box-default box-info" >
<div class ="settings-group col-sm-12">
<i class="<?= lang("Plugins_type_scanner_icon");?>"></i> <?= lang("Plugins_type_scanner");?>
</div>
<div class =" col-sm-12" id="scanner_content"></div>
</div>

<div class ="bg-grey-dark color-palette box panel panel-default col-sm-12 box-default box-info" >
<div class ="settings-group col-sm-12">
<i class="<?= lang("Plugins_type_publisher_icon");?>"></i> <?= lang("Plugins_type_publisher");?>
</div>
<div class =" col-sm-12" id="publisher_content"></div>
</div>

</div>

Expand Down Expand Up @@ -187,7 +193,7 @@ function initSettingsPage(settingsData, pluginsData){
for (const group of settingGroups) {
let isPlugin = false;

headerHtml = `<div class="box panel panel-default">
headerHtml = `<div class="box box-solid box-primary panel panel-default">
<a data-toggle="collapse" data-parent="#accordion_gen" href="#${group}">
<div class="panel-heading">
<h4 class="panel-title">${getString(group+"_icon")} ${getString(group+"_display_name")}</h4>
Expand Down

0 comments on commit 7da9bf0

Please sign in to comment.