Commit Graph

1735 Commits

Author SHA1 Message Date
DL6ER c81d690be4 Add /etc/hosts to teleporter export.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-28 13:30:57 +00:00
DL6ER 9b7daa324a Do not go back to page 1 when deleting an item.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-28 13:21:53 +00:00
XhmikosR cee3d536bc Move fonts to the header.php
`@import` is discouraged because it's blocking.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-26 18:00:21 +02:00
DL6ER b840d2103b Do not reload table on successfull edits and deletions.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-23 15:38:59 +00:00
DL6ER a80355cf2f Improve error messages.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-23 15:19:52 +00:00
DL6ER cce7c928d5 We have to get the group's ID from the hidden field now that we removed/hide the IP column by default.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-23 15:13:51 +00:00
DL6ER da1276363d Ensure added domains are lower-case.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-23 09:33:30 +00:00
DL6ER 563aaa14df Convert domains to lower-case and validate them before adding them.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-23 09:07:13 +00:00
Ghalid 1df9c4049b There should only be one search input on each page so there doesn't need to be an array anyway, remove arrow functions as per https://github.com/pi-hole/AdminLTE/pull/1100\#pullrequestreview-335618314
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>

Remove const

Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-21 14:51:34 -05:00
Ghalid 40d7e1498e Disable autocorrect in search boxes
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-21 12:06:48 -05:00
DL6ER deb50a8e4a Ensure Actions column is not sortable.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 16:14:17 +00:00
DL6ER 6ad0960a77 Add a nicer domain/IP adding block.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 16:12:10 +00:00
DL6ER ee91b3bc87 Update nav icons.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 12:12:14 +00:00
DL6ER 772d52c09a Reset visibility of ID column on table loading
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:52:21 +00:00
DL6ER 7dc5c5cb94 Fix navigation submenu.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:40:45 +00:00
DL6ER ede9d41341 Add "Reset Sorting" button to remaining pages.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:35:29 +00:00
DL6ER 4f54796286 Add auto-saving to all group management pages.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:30:47 +00:00
DL6ER 26c9a55ad5 Add tooltip to group name input fields.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:20:44 +00:00
DL6ER 1c3d635d2b Include but hide ID column on the group management page. Add "Reset sorting" button enabling the user to go back to ID sorting (initial behavior, makes sure group 0 is at the top).
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:16:28 +00:00
DL6ER 4aa3551734 Remove ID displaying for groups from all pages.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 00:42:17 +00:00
DL6ER 5e2561aa91 Remove ID column from group management page.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 00:38:37 +00:00
DL6ER 5aa6b1de59 Sort by first column by default (zero-indexed)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-19 20:04:29 +00:00
DL6ER a2031c0d1f Replace pencil button by automatic saving (so far, only for the groups.php page)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-19 17:30:18 +00:00
DL6ER 050021827f Show host names (if known) on the Clients management page.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-19 16:56:44 +00:00
DL6ER 1849e8a9c6 Remove unused variable.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-19 15:45:37 +00:00
DL6ER 4f42ebcbca Add interval directly without extending the prototype.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-19 08:54:24 +00:00
DL6ER aca6461468 Change over-time graphs from line to stacked bar representation. This is much more natural for this kind of data. Also, improve DB graphs to always generate a meaningful display (always generate about 200 bars). This graph was basically unusable when specifying a larger range than, say, one week.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-18 13:22:33 +00:00
DL6ER 8898a742d2 Use one variable less.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-17 18:14:49 +02:00
XhmikosR d017c57f84 Fix buttons appearance
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 17:50:50 +02:00
XhmikosR f96d6cc0f0 Remove more unused variables
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 17:15:59 +02:00
DL6ER ae08443fa5 Merge branch 'devel' into new/group-management 2019-12-17 15:06:45 +00:00
DL6ER 59b04047d6 Merge pull request #1086 from pi-hole/js-license-header
Add missing license header
2019-12-17 15:56:31 +01:00
DL6ER aad00db5b6 Merge pull request #1085 from pi-hole/reuse-dateformat
Reuse the `dateformat` variable
2019-12-17 15:55:41 +01:00
DL6ER f9496c5c6e Merge pull request #1087 from pi-hole/let
Use var instead of let.
2019-12-17 15:54:01 +01:00
DL6ER 49df077a66 Merge pull request #1089 from pi-hole/XhmikosR-patch-2
Reuse variable and make code clearer
2019-12-17 15:53:32 +01:00
DL6ER f084fa1991 Merge pull request #1091 from pi-hole/text
Use `text()` for the token
2019-12-17 15:49:05 +01:00
XhmikosR f486935eb8 Use text() for the token
We don't need any HTML.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 15:57:50 +02:00
DL6ER 51edb07537 Use titles in notifications.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-17 13:56:32 +00:00
DL6ER da2d92ebd7 Prevent users from adding empty groups/domains/clients/adlists.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-17 12:57:45 +00:00
DL6ER d0d1174010 Use bootstrap notify for notifications.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-17 12:48:25 +00:00
DL6ER 232cfdb326 Also show database ID in tooltip.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-17 11:35:57 +00:00
XhmikosR 18cfd8dab1 Reuse variable and make code clearer
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 12:19:43 +02:00
XhmikosR 2ba18a1b58 Be explicit about window.location
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 12:14:37 +02:00
DL6ER 18682eb61d Also delete assignments form domains, adlists and clients to a group when it is deleted.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-17 09:56:55 +00:00
XhmikosR ef396ede5b Use var instead of let.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 10:47:01 +02:00
XhmikosR 689aa6afd6 Add missing license headers
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 10:46:36 +02:00
XhmikosR 7d9e32bac6 Reuse the dateformat variable
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 09:59:01 +02:00
XhmikosR 19da9999df New favicons.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-16 23:18:28 +02:00
Adam Warner d966c7f534 Merge pull request #1073 from XhmikosR/js-2
Assorted JS tweaks
2019-12-16 19:21:42 +00:00
Adam Warner 6864aacca3 Merge pull request #1082 from pi-hole/header
header: hide `hostname` on small devices
2019-12-16 19:21:34 +00:00