39 Commits

Author SHA1 Message Date
XhmikosR
8529cb067c Fix a few HTML validation issues
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-16 09:32:51 +03: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
38f41e1db2 settings-dhcp: drop unused lookatme-text attribute
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-18 22:50:36 +03:00
XhmikosR
4ef92fc5e4 Add missing display: none for collapsed boxes
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-30 19:04:09 +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
Alex Whitman
dc0dc62151 Fix typo in DHCP settings page
Signed-off-by: Alex Whitman <alex@alexwhitman.com>
2025-03-04 18:34:57 +00: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
RD WebDesign
09d7aa5602 Rewording and better format for the last sentence
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2024-05-31 17:35:15 -03:00
RD WebDesign
f0fc7b093d DHCP Settings - add option to ignore unknown DHCP clients
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2024-05-31 16:55:38 -03:00
RD WebDesign
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
Dominik
7d51f40274 Tweak settings level and add changed-only toggle (#2882) 2024-03-17 20:35:47 +01:00
DL6ER
7d97b44c8e Fix missing inclusion of the IP address sorting plugin on the Settings -> DHCP page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-02-28 17:52:41 +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
DL6ER
64679c57cd Clarify what an empty netmask field does (Settings -> DHCP page)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-02-04 11:18:10 +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
Christian König
48622a3fa0 Add hint about dnsmasq default lease time
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-16 21:59:38 +01:00
DL6ER
5cd1b2e16b Add DHCP netmask field and nicely format API errors (#2805) 2023-11-15 11:09:46 +01:00
DL6ER
0feb021eb8 dhcp.domain -> dns.domain
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-13 09:16:35 +01:00
Christian König
e3ca1d99e0 Add missing data-configkey dhcp.hosts
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-12 21:56:28 +01:00
DL6ER
16ec7448c7 Rename DHCP from-to -> start-end to match the API/config keys
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-07 21:18:05 +01:00
DL6ER
8b8b412ab8 Add dhcp.netmask field
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-04 12:55:51 +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
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 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
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
18f52bacbe Improve handling of settings levels
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-22 19:26:48 +02:00
DL6ER
60737f9c39 Finish DNS, DHCP and API settings pages
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-09 10:07:14 +02:00
DL6ER
b30c1e0433 Finish settings-advanced.lp
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-08 13:10:39 +02:00
DL6ER
7156cc541f Port PHP to Lua Pages
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-04-26 21:57:11 +02:00