Commit Graph
39 Commits
Author SHA1 Message Date
RD WebDesignandAdam Warner 61f6c982b7 Use the new AdminLTE header structure
- remove old `.page-title` from all pages;
- add the the new header structure and place the title inside the new
  `.app-content-header` element;

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-17 22:43:25 +01:00
RD WebDesignandAdam Warner 48d17c7eb0 Replace the old .btn-button class with Bootstrap 5 class.
This class job was basically make the element 100% wide.
We can replace it with the Bootstrap class: `w-100`, or (if the element
already has its own class) we add `width: 100%`.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-17 22:40:01 +01:00
0153772cf5 Swap remaining jQuery plugins for Bootstrap 5-compatible versions
- DataTables: replace the combined BS3 download-builder bundles with
  the official core + Bootstrap 5 styling-adapter package pairs
  (datatables.net(-buttons/-select) + datatables.net-bs5/-buttons-bs5/
  -select-bs5), loaded core-then-adapter.
- bootstrap-select -> Tom Select: bootstrap-select has no Bootstrap 5
  build. Add utils.createGroupSelect(), a small wrapper around Tom
  Select that recreates bootstrap-select's actionsBox (Select all/
  Select none) via a couple of buttons injected into the dropdown, and
  use it for all four "assign to group(s)" multi-selects (groups,
  groups/clients, groups/domains, groups/lists). Two behavioral fixes
  were needed to match the old widget: `hideSelected: false` (Tom
  Select refuses to open its dropdown once every option is already
  selected, which made the actions box unreachable) and
  `dropdownParent: "body"` (otherwise the dropdown is clipped by the
  surrounding .table-responsive/.card ancestors' overflow, same reason
  bootstrap-select was configured with container: "body").
- bootstrap-toggle -> bootstrap5-toggle: drop-in replacement, same
  $.fn.bootstrapToggle() API and onstyle/offstyle option names (all
  call sites already used Bootstrap 5-valid color names).
- select2: bump to 4.1.0 and add the select2-bootstrap-5-theme package
  for correct Bootstrap 5 styling; wire theme: "bootstrap-5" into both
  call sites.
- Remove now-dead bootstrap-select cleanup code (the
  "$('body > .bootstrap-select.dropdown').remove()" DataTables
  drawCallback lines across 8 files) and dead icheck/bootstrap-select
  CSS in pi-hole.css.

Also fixed a Phase 1 regression surfaced by this pass: utils.js's
loadingOverlay() still targeted the old ".wrapper" class instead of
".app-wrapper", throwing whenever a settings page triggered the
Save & Apply overlay.

Verified against a live container: groups/clients' per-row Tom Select
multiselect (open dropdown, Select all/none, Apply, restore-on-cancel),
bootstrap5-toggle switches on groups, select2 filters on the query log,
and DataTables' select/export button row on groups/lists all work with
zero console errors. Settings pages' Save & Apply overlay confirmed
fixed and no longer throwing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2026-07-17 22:39:57 +01:00
3149820eb4 Convert box/panel markup to Bootstrap 5 cards across all pages
Convert the remaining 20 .lp templates from AdminLTE 2's .box/.panel
component family to Bootstrap 5 .card markup, matching the pattern
established in index.lp/queries.lp during the layout migration:
box/box-header/box-title/box-body/box-footer -> card equivalents,
box-info/-danger/-warning etc. -> card-info/-danger/-warning +
card-outline for the non-solid variant, collapsed-box + data-widget
-> collapsed-card + data-lte-toggle="card-collapse" with the dual
expand/collapse icon AdminLTE 4 expects. Also renames the accompanying
Bootstrap-3-isms throughout (col-xs-*, pull-left/right, input-group-addon,
data-toggle/-dismiss/-backdrop/-keyboard, label -> badge, btn-default,
BS3 modal close-button markup).

Fix the JS-side selectors that referenced the old markup and would have
silently broken once the classes changed: charts.js's tooltip anchor
lookup, footer.js's "no visible cards" redirect check, login.js's
2FA/forgot-password card color swap (plus made both boxes consistently
non-solid so the swap doesn't need to touch card-outline), and
settings-advanced.js's dynamically generated settings cards and its
manual Bootstrap 3 "in"/"active" tab-pane class toggling (Bootstrap 5
renamed .in to .show). Rewrite settings-dhcp.js's jQuery-plugin tooltip
delegation (`$("body").tooltip(...)`, `.tooltip("hide")`) as a small
lazily-instantiating delegated listener plus direct bootstrap.Tooltip
calls, since Bootstrap 5 dropped jQuery integration entirely and the
DHCP lease action buttons are added to the DOM dynamically. Restore
Bootstrap 3's .has-error/.has-warning/.has-success form-validation
color feedback in pi-hole.css, since Bootstrap 5 dropped those classes
in favor of .is-invalid/.is-valid and a couple of pages still toggle
the old class names for simple color-coded feedback.

Refresh package-lock.json for the admin-lte/bootstrap version bump from
the previous commit.

Verified against a live container: dashboard, query log (incl. the
collapsible advanced-filter card and populated DataTable), groups/lists,
groups/domains, and settings/dns all render correctly with zero console
errors; card-collapse toggling confirmed working on the query log's
filter card. Plugin-styled elements (select2/bootstrap-select dropdowns,
DataTables chrome, icheck checkboxes, bootstrap-toggle switches, nav-tabs)
still look wrong until the JS-plugin-swap phase lands, as expected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2026-07-17 22:38:11 +01:00
c280cb5c49 Apply suggestions from code review
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-03-25 08:53:37 +01:00
yubiuser 74f68fba89 Remove the loggingButton from Settings > System > Actions
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-03-25 08:23:18 +01:00
yubiuser bc681503c3 Clarify uptime in container matching the host uptime with a tooltip
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-10-11 09:50:42 +02:00
yubiuser 1eb64c3bf8 Remove superfluosus ettings-level-expert class
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-06-05 12:26:32 +02:00
Adam WarnerandGitHub abd4d9d3b9 settings-level-expert: hide them by default (#3487) 2025-05-30 21:35:56 +01:00
casperklein f3fd182d00 Add rel="noreferrer" to external hyperlinks
Signed-off-by: casperklein <casperklein@users.noreply.github.com>
2025-05-29 22:57:36 +02:00
XhmikosR a18629193a settings-level-expert: hide them by default
Matches the previous behavior before 8556b65

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-27 20:59:05 +03:00
XhmikosRandGitHub 851cdf42e9 settings-system: drop unused lookatme-text attribute
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-18 22:43:36 +03:00
XhmikosR 5b1d4f6e50 settings-system: remove unneeded span elements
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-18 22:37:06 +03:00
XhmikosR 1728aa4153 disabled and checked are boolean attributes
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-04 10:08:26 +03:00
XhmikosRandGitHub 1155c4866e settings-system: fix span end tag typo
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-01 22:10:26 +03:00
XhmikosR 2dd128fbfb Revert the defer addition for now
There are still cases we are getting TypeErrors. We should try again after grouping our assets together in all pages.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-03 07:52:28 +03:00
XhmikosR 1acb80536b Refactor assets loading
* move fonts first
* move CSS and JS along with the rest
* move default auto theme media checks to the HEAD instead of imports

Also, use `script defer`. This makes the JS files non-blocking.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-23 07:08:37 +02:00
yubiuser 1e922a8b29 Move all files from /scripts/pi-hole/ to /scripts/
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-10-28 20:22:09 +01:00
yubiuser 4c21641663 Unify vendor file location
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-10-28 20:12:11 +01:00
DL6ER ac341cf934 Support systems without IPv4 or IPv6 gateways
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-18 18:15:13 +02:00
DL6ER b732092348 Add basic interface information on Settings->System page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-14 17:33:55 +02:00
DL6ER 52991f495c Merge branch 'development-v6' into tweak/settings_changed_only
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-01-07 14:04:11 +01:00
Christian König 24ce60e9b9 Move the title attribute of the DNS metrics to the table row
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-01-05 22:38:46 +01:00
f8f38f1957 Update settings-system.lp
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: Dominik <DL6ER@users.noreply.github.com>
2024-01-01 21:38:54 +01:00
DL6ER edbcfd1ca7 Add descriptions to DHCP metrics on the settings page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-01-01 21:08:03 +01:00
DL6ER ce96e15d59 Remove settings-level-1 and rename level 0 to basic, level 2 to expert
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-29 13:11:27 +01:00
DL6ER ceb1118c0b Add settings level and only-changed settings toggle
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-29 13:10:18 +01:00
Adam Warner 66401ee222 In addition to adding the readonly icon, we can also add the other icons with teh same method.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-10-29 15:21:18 +00:00
Adam WarnerandGitHub 0f6b917ae1 Improve settings level select location (#2720) 2023-10-06 13:21:14 +01:00
Christian König 58a6de6daf Remove shutdown and reboot button
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-07-28 23:09:07 +02:00
RD WebDesign b26dcf36b8 Settings pages: move level selector from top bar and add page titles
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-07-19 00:39:35 -03:00
DL6ER a69726b4da Fix typo and clarify the expired cache entries count
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-06-15 13:45:00 +02:00
DL6ER c790232de4 Fix typo and clarify the expired cache entries count
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-06-14 15:20:19 +02:00
DL6ER 8ba58eabcc Implement Settings -> System buttons
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-24 20:32:19 +02:00
DL6ER fa37930066 Rename DNS cache efficiency -> utilization because this is more accurate
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-18 12:13:58 +02:00
DL6ER 63697d8c19 Ensure legend stays next (not below) cache content doughnut chart
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-12 14:15:55 +02:00
DL6ER c99eca3aee Add DNS cache efficiency metric
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-11 13:53:01 +02:00
DL6ER f454617f9c Add cache content pie chart on settings->system page and move all chart-related code into a shared file pi-hole/js/chart.js
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-11 10:39:38 +02:00
DL6ER 7156cc541f Port PHP to Lua Pages
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-04-26 21:57:11 +02:00