Commit Graph
55 Commits
Author SHA1 Message Date
RD WebDesign bc01ac0ce0 Fix modal markup
- move buttons to the end of the modal-header
- remove the "hidden" attribute from the QR code element
- replace the old `.col-md-offset-3` class with the new `.offset-md-3`

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-29 01:31:14 -03:00
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
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
3d5193154a Replace icheck-bootstrap checkboxes/radios with native Bootstrap 5 form-check
Convert all 35 static checkbox/radio inputs across 9 templates (queries,
search, settings-api, settings-dhcp, groups-domains, settings-dns,
settings-privacy, settings-teleporter) plus the dynamically-generated
ones (settings-advanced.js's per-setting boolean/enum controls,
settings-dns.js's DNS-upstream picker) from icheck-bootstrap's
JS-post-processed styling to Bootstrap 5's native .form-check/
.form-check-input/.form-check-label markup, which needs no JS at all.

Remove footer.js's applyCheckboxRadioStyle() (and its call sites in
settings-advanced.js/settings-dns.js) entirely - it used to strip and
re-add classes on every checkbox/radio's parent after page load, which
would have destroyed the new static .form-check classes at runtime.
Drop the icheck-bootstrap dependency, its vendor CSS and the <link> in
header.lp, and replace its now-dead pseudo-element checkbox styling in
pi-hole.css with a couple of plain .form-check-input/.form-check-label
rules for the one spot that needs a smaller checkbox size (the domain
list's filter-by-type row).

Two "no-icheck"-excluded checkboxes (a table-header select-all in both
settings-dns.lp and settings-dns.js) are left as bare native checkboxes,
matching their original deliberate exclusion.

Also confirmed pi-hole's own text-red/text-green/bg-*/etc. color utility
classes are unaffected by the AdminLTE core removal - each theme file
already defines them fully rather than only overriding an AdminLTE base,
so no fix was needed there.

Verified against a live container: settings/dns (checkbox/radio styling,
custom-servers card-collapse toggle) and settings/privacy (privacy-level
radios) render correctly with zero console errors.

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
Jon d4441bd4aa Adjust BitWarden to Bitwarden
Signed-off-by: Jonathan Prusik <jprusik@classynemesis.com>
2025-10-11 19:31:42 -04:00
idotj ee02f1aea8 Remove CSS
Signed-off-by: idotj <info@idotj.com>
2025-08-20 14:20:11 +02:00
idotj 2768c44d24 Fix typo
Signed-off-by: idotj <info@idotj.com>
2025-08-19 18:47:21 +02:00
idotj 21a65be5a7 Fix 2FA icon styles #3431
Signed-off-by: idotj <info@idotj.com>
2025-08-19 18:41:54 +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
XhmikosR 8556b65b2e settings-level-expert: only toggle the expert elements
Show the basic ones by default. Also, reduce jQuery usage in those functions while at it.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-19 09:49:10 +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 9ec528fd54 settings-api: add missing end closing p tag
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-01 22:20:23 +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
XhmikosR c003548906 Remove trailing slash from void elements
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-10 22:15:01 +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
yubiuser 1e651f25ea Remove api.localAPIauth checkbox
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-10-25 20:40:54 +02:00
RD WebDesign 571b3121f8 Remove temperature settings leftover
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2024-09-27 13:03:54 -03:00
DominikandGitHub 330845b577 Show CLI sessions property (#3056) 2024-06-30 20:25:48 +02:00
DL6ER 76a7248e6b Show CLI sessions property
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-20 19:59:32 +02:00
RD WebDesign 94b49ce89f Use only one button class per button to fix button text color
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2024-06-17 15:45:02 -03:00
d7ca2da627 Update settings-api.lp
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: Dominik <DL6ER@users.noreply.github.com>
2024-06-16 07:54:48 +02:00
DL6ER 3681d7187a Show warning if user already set an application password
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-15 11:25:29 +02:00
RD WebDesign 5ceb046f73 Move temperature options to the Theme box (they are not advanced options)
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2024-06-05 15:15:23 -03:00
RD WebDesign 1ba4e573ec Simplify structure and reorder some boxes
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2024-06-04 19:34:17 -03:00
RD WebDesignandGitHub f842c72236 Settings Pages - small adjustments (#3000)
- Fix buttons in high contrast themes
- consistent indentation and widths for fields and labels
- use class `form-control` to format every form field
- add some line breaks to improve readability
- use colors in "Currently active sessions" table
2024-04-03 16:27:35 -03:00
RD WebDesign 6f65368759 Settings Page - Apply small adjustments
- consistent indentation and widths for fields and labels
- use class `form-control` to format every form field
- add some line breaks to improve readability

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2024-04-02 21:28:26 -03:00
DL6ER 64ccce4bd5 Add field-sizing-content class that makes input and textarea fields it is applied to automatically scale to the size of their content.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-04-01 19:52:22 +01:00
DL6ER 2f44fc63cc Merge branch 'development-v6' into tweak/settings_changed_only
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-02-11 10:14:49 +01:00
Christian König dee7c2bb67 Add regex hint to domain/client exclusion box
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-01-19 22:21:37 +01: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
RD WebDesign 89866fab77 Adding a container and a semi-transparent background
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-12-02 03:30:35 -03: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
RD WebDesign db0c333d6b Add a data-configkeys attribute to titles in settings pages
Separate real classes from config keys.
Use class attribute only for styles.
2023-11-01 18:33:58 -03:00
DL6ERandGitHub 0d827b00f2 Add app password support (#2793) 2023-10-29 19:43:55 +01:00
Adam Warner fef945c49f Disable settings inputs if they are already set by environment variable. Add a padlock icon to the setting section title if any of the settings contained therin are set by environment variable 2023-10-29 15:21:18 +00:00
DL6ER b5678b65f1 Add app password support and add robot column to the session table
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-27 16:12:20 +02:00
Christian König 744f8b8b2f temp.limit needs to be data-type="integer"
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-27 13:03:47 +02:00
Christian König 95650820dc Active Sessions are an expert's thing
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-12 12:08:33 +02:00
Christian König 1376f0a41e Show Theme Selector at basic level
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-12 10:23:56 +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 7c000230c0 Show Save & Apply button also in Basic settings level
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-03-07 21:05:55 +01:00
RD WebDesign ef513c2c48 Fix previous spellcheck errors
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-06-30 20:35:34 -03:00
DL6ER f2d129025f Add "permit destructive actions" checkbot to Settings -> API page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-24 20:35:55 +02:00
DL6ER 3e2d3b2275 Add description to settings-api.lp session table
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-22 20:18:13 +02:00