From 5868f472f852217accc3b562fe3c74b8b55a2326 Mon Sep 17 00:00:00 2001 From: Philip Joseph Date: Wed, 9 Sep 2026 14:54:26 +0530 Subject: [PATCH] Changes for Bootstrap and Symfony compatibility fix for sysadmin dependency --- Console/Firewall.class.php | 4 ++-- assets/css/firewall.css | 29 +++++++++++++++++++++++++++++ views/intrusion_detection.php | 19 +++++++++---------- views/page.about.php | 4 ++-- 4 files changed, 42 insertions(+), 14 deletions(-) diff --git a/Console/Firewall.class.php b/Console/Firewall.class.php index e11d307e..f6d5d1ca 100644 --- a/Console/Firewall.class.php +++ b/Console/Firewall.class.php @@ -28,7 +28,7 @@ class Firewall extends Command { ]; // This is the fwconsole __construct equivalent - protected function configure(){ + protected function configure(): void{ $this->setName('firewall') ->setDescription(_('Firewall functions')) ->addOption('force', 'f', InputOption::VALUE_NONE, _('Force Add/Removal of entry')) @@ -40,7 +40,7 @@ protected function configure(){ } // We've been called - protected function execute(InputInterface $input, OutputInterface $output){ + protected function execute(InputInterface $input, OutputInterface $output): int{ $cmd = $input->getArgument('cmd'); switch ($cmd) { case "stop": diff --git a/assets/css/firewall.css b/assets/css/firewall.css index bcb77848..c788f02f 100644 --- a/assets/css/firewall.css +++ b/assets/css/firewall.css @@ -50,6 +50,35 @@ tr[zone='other']>td { background-color: #ede7f6; } // Dont' display the action bar unless we've explictly asked for it. #action-bar{ display: none; } +.alert .btn-close, +.alert .btn-close-sm { + width: 10px; + height: 10px; + padding: 0.4em; + background-size: 10px; +} + +#whitelisttable, +#banlisttable, +#whitelisttable th, +#whitelisttable td, +#banlisttable th, +#banlisttable td, +.bootstrap-table:has(#whitelisttable), +.bootstrap-table:has(#banlisttable), +.bootstrap-table:has(#whitelisttable) .fixed-table-container, +.bootstrap-table:has(#banlisttable) .fixed-table-container, +.bootstrap-table:has(#whitelisttable) .table > :not(caption) > * > *, +.bootstrap-table:has(#banlisttable) .table > :not(caption) > * > * { + --bs-table-border-color: rgba(94, 156, 125, 0.9); + --bt-table-border-color: rgba(94, 156, 125, 0.9); + border-color: rgba(94, 156, 125, 0.9) !important; +} +#whitelisttable, +#banlisttable { + border-collapse: collapse; +} + diff --git a/views/intrusion_detection.php b/views/intrusion_detection.php index 0a0416d7..3f042367 100644 --- a/views/intrusion_detection.php +++ b/views/intrusion_detection.php @@ -6,8 +6,8 @@ echo ''; echo ''; ?> -
- + -
+
- +