Yonas Habteab
b619dd2186
Add activateEntry()
& getActiveEntry()
interface methods
2023-07-14 20:05:35 +02:00
Yonas Habteab
67b9d58557
Forms: Unify notification messages & add some return type declarations
2023-07-14 20:05:35 +02:00
Yonas Habteab
d0d33d990c
Ensure to load dashlets of the current pane before creating/updating a dashlet
2023-07-14 20:05:34 +02:00
Yonas Habteab
51370a9e37
Don't perform DB updates when the home/pane hasn't been changed
2023-07-14 20:05:34 +02:00
Yonas Habteab
89cbc9f644
SetupNewDashbaordForm: Remove superfluous control sturcture
2023-07-14 20:05:34 +02:00
Yonas Habteab
a726348718
Drop all dashboards related legacy codes
2023-07-14 20:05:34 +02:00
raviks789
533d329810
Revert "Add form controls in the correct order"
...
This reverts commit 61c3469fc63e559164016784034bcae18b3a2e04.
2023-07-14 20:05:34 +02:00
raviks789
8f9a55fcbf
Allow adding and editing of dashlet description.
2023-07-14 20:05:34 +02:00
Yonas Habteab
a2e9d3c946
Allow creating same dashlets from different modules
2023-07-14 20:05:34 +02:00
Yonas Habteab
ec4d246a3c
Add minimal layout for the welcome page
2023-07-14 20:05:34 +02:00
Yonas Habteab
4fa5d5d717
Add form controls in the correct order
2023-07-14 20:05:34 +02:00
Yonas Habteab
61cd09ab42
Ensure not to render custom url when updating a dashlet (caused by f8b9b02)
2023-07-14 20:05:34 +02:00
raviks789
f91e2769fb
Show custom dashlet in case no dashlets are selected.
2023-07-14 20:05:34 +02:00
raviks789
abb78bb9ee
Replace spl_object_hash($dashlet)
with bin2hex($dashlet->getUuid())
and make $moduleDashlets
attribute non-static
2023-07-14 20:05:34 +02:00
Yonas Habteab
0c91a8a283
Adjust disabled input style sheets & remove unnecessary control structure within the WelcomeForm::onSuccess()
method
2023-07-14 20:05:34 +02:00
Yonas Habteab
af062b8cb2
Add missing LICENSE header & adjust some notifcation messages
2023-07-14 20:05:34 +02:00
Yonas Habteab
ea4e0b8719
SetupNewDashboardForm: Use SPL object hash as an element name
2023-07-14 20:05:34 +02:00
Yonas Habteab
e8741c961f
DashboardsController: Preserve params when redirecting after successfully performed dashboard actions
2023-07-14 20:05:34 +02:00
Yonas Habteab
9f7eba4cf8
WelcomeForm: Don't raise sys errors directly but use notifications to notify the user
2023-07-14 19:51:08 +02:00
Yonas Habteab
2105541493
DashletForm: Don't override populated value with the request param
2023-07-14 19:51:08 +02:00
Yonas Habteab
be973d29e2
Use own form class for all dashboard types & cleanup Dashlet-/SetupNewDashboardForm classes
2023-07-14 19:51:08 +02:00
Yonas Habteab
c577e2f279
Forms: Introduce RemovePaneForm
class
2023-07-14 19:51:08 +02:00
Yonas Habteab
3f4c0a8de6
Forms: Introduce PaneForm
class
2023-07-14 19:51:08 +02:00
Yonas Habteab
c382d0fbaa
Forms: Introduce RemoveHomeForm
class
2023-07-14 19:51:08 +02:00
Yonas Habteab
4f98b0c696
Forms: Introduce HomeForm class
2023-07-14 19:51:08 +02:00
Yonas Habteab
04495e6276
Adjust Dashboard::getConn() calls & filtering by username
2023-07-14 19:51:08 +02:00
Johannes Meyer
3041d7d3c1
dashboards/settings: Cleanup HTML and CSS
...
Well what should I say..
* There should be nothing else inside a `ul` than `li` elements
* If that's not feasible, don't use a `ul` but a `div`
* If adjusting a stylesheet, don't add new stuff to it without
making sure that redundant/obsolete stuff is removed
* Restructure your stylesheet once you notice you're adding
one rule after another to counteract the one before it.
There was way too much code smell
* Only be as specific in CSS rules as you absolutely need to.
Classes are usually enough. Only add tags if you use the same
classes on different tags.
* Ensure that your CSS makes as less assumptions as possible
2023-07-14 19:51:08 +02:00
Johannes Meyer
8bd82ff97c
Cleanup dashboard welcome page
...
* The `h1` is the tab or page title, the welcome message is at most a `h2?`
* It's not necessary to mention that the welcome page is only shown as
long as there are no dashboards/dashlets, if the very next statement
explains this already
* The icinga form layout is not relevant here, so there's no need to
work-around/counteract it
* The text opacity just reduced the contrast needlessly
2023-07-14 19:51:08 +02:00
Johannes Meyer
9a1f8816ae
There can only be a single active home at a time
...
Cleans up various usages of `setActive` calls.
2023-07-14 19:51:08 +02:00
Yonas Habteab
178cd7408a
Ensure to rerender dashlet parts with custom_url upon autosubmit
2023-07-14 19:51:08 +02:00
Johannes Meyer
930898fd2f
Decouple menu and dashboard code
2023-07-14 19:51:08 +02:00
Yonas Habteab
66904f483a
Don't render the initial modal view over again when autosubmitting the form
2023-07-14 19:51:08 +02:00
Yonas Habteab
9f54c210f9
DashletForm: Ensure to dump unselected dashlets before updating the DB
2023-07-14 19:51:08 +02:00
Yonas Habteab
ee75d53daf
Merge some related classes
2023-07-14 19:51:08 +02:00
Yonas Habteab
cba8fbdd1c
Fix code styling issue
2023-07-14 19:51:08 +02:00
Yonas Habteab
d859522c31
Allow browsing predefined dashlets when creating a new dashlet
2023-07-14 19:51:08 +02:00
Yonas Habteab
c082ad3d24
Regroup dashboard input elements
2023-07-14 19:51:08 +02:00
Yonas Habteab
c635102d4e
Simulate removal of dashboard home Default Home
2023-07-14 19:51:08 +02:00
Yonas Habteab
50c19af224
Remove obsolete button styles & add a proper button class names
2023-07-14 19:51:08 +02:00
Yonas Habteab
4d47f710ae
Clean up codes
2023-07-14 19:51:08 +02:00
Yonas Habteab
fd9c547dde
Fix typo
2023-07-14 19:51:07 +02:00
Yonas Habteab
98028d740c
Introduce new-home action
2023-07-14 19:51:07 +02:00
Yonas Habteab
0a638302c9
BaseDashboardForm: Make cancel-button of type button
2023-07-14 19:51:07 +02:00
Yonas Habteab
c53c084846
DashletForm: Ensure to pre-select a dashboard when clicking add-dashlet
2023-07-14 19:51:07 +02:00
Yonas Habteab
f1bef3c52c
DeshletForm: Don't re-populate dashboard pane element
2023-07-14 19:51:07 +02:00
Yonas Habteab
ac1534ab0d
Use Menu class instead of HomeMenu
2023-07-14 19:51:07 +02:00
Yonas Habteab
a733c6f66d
Delay sorting events for 100ms
2023-07-14 19:51:07 +02:00
Yonas Habteab
cdd60f965b
Do some code refactoring
2023-07-14 19:51:07 +02:00
Yonas Habteab
8b510e3163
Forms: Introduce NewHomePaneForm class
2023-07-14 19:51:07 +02:00
Yonas Habteab
14bc749556
Dashboard: Provide mini welcome wizard for new users
2023-07-14 19:51:07 +02:00