209f596397
15815 convert dashboard widgets for users/groups ( #15839 )
...
* 15815 convert dashboard widgets for users/groups
* 15815 review fixes
* 15815 catch DoesNotExist for widget content type
* 15815 add logging
2024-05-01 09:56:46 -04:00
6ac700e43f
Move object_type_identifier() & object_type_name() to utilities.object_types
2024-03-22 08:59:52 -04:00
8ad73e3f90
Rename content_type_identifier() and content_type_name()
2024-03-22 08:59:52 -04:00
a49eb80f9e
Move dict_to_querydict() and normalize_querydict() to utilities.querydict
2024-03-22 08:59:52 -04:00
3547ea376c
Move utilities.utils.get_viewname() to utilities.views
2024-03-22 08:59:52 -04:00
a9bb4c5c3e
Move choice sets from utilities.choices to netbox.choices
2024-03-22 08:59:52 -04:00
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -05:00
3ddacf4b88
Merge branch 'develop' into feature
2024-02-21 16:24:23 -05:00
af27bf5eff
15094 Add missing gettext to error strings for internationalization ( #15155 )
...
* 15049 add missing gettext to error strings
* 15049 add missing gettext to error strings
* 15094 review change
* 15094 review change
* Formatting cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-20 09:44:02 -05:00
da085e60c2
Closes #14740 : Remove BootstrapMixin ( #14841 )
...
* Introduce custom form widget templates to apply CSS classes
* Apply both mandatory and optional CSS classes to form widgets
* Omit required & placeholder attrs
* Move annotation of field validation failures to CSS
* Remove BootstrapMixin class
* Remove obsolete ComponentTemplateImportForm class
* Remove obsolete custom forms for login & password change
* Clean up obsolete accommodations for 'required' widget attr
2024-01-19 14:02:33 -05:00
e15647a2ce
Closes #14153 : Filter ContentTypes by supported feature ( #14191 )
...
* WIP
* Remove FeatureQuery
* Standardize use of proxy ContentType for models
* Remove TODO
* Correctly filter BookmarksWidget object_types choices
* Add feature-specific object type validation
2023-11-16 12:12:51 -05:00
8dcbd66de6
Closes #13427 : Public model registration ( #14152 )
...
* Initial work on #13427
* Clarify documentation
* Reference public models registry when populating models for ConfigTemplate context
2023-11-03 10:32:59 -04:00
6939bf8aed
Fixes #12219 : Ensure dashboard widget heading text has sufficient contrast ( #13753 )
...
* Fixes #12219 : Ensure dashboard widget heading text has sufficient contrast in both light & dark modes
* Change foreground color for teal background
2023-09-13 10:56:03 -04:00
7d7e8127f5
Fixes #13513 : Prevent exception when rendering bookmarks widget for anonymous user
2023-08-23 10:53:56 -04:00
837be4d45f
Merge branch 'develop' into feature
2023-07-11 10:09:26 -04:00
6e222f8dce
Closes #8248 : User bookmarks ( #13035 )
...
* Initial work on #8248
* Add tests
* Fix tests
* Add feature query for bookmarks
* Add BookmarksWidget
* Correct generic relation name
* Add docs for bookmarks
* Remove inheritance from ChangeLoggedModel
2023-06-29 14:36:11 -04:00
290ffd408a
Fixes #12977 : Fix URL parameters for object count dashboard widgets ( #12991 )
...
* Fixes #12977 : Introduce dict_to_querydict() to ensure proper handling of QueryDicts
* Remove unused import
2023-06-26 14:21:26 -04:00
bca9d0fa8a
Closes #12599 : Apply filter parameters to links in object count dashboard widgets
2023-05-30 16:31:34 -04:00
9b8ab1c1f7
Fixes #12742 : Object counts dashboard widget should support URL-compatible query filters
2023-05-30 15:44:43 -04:00
eeb15ab5d1
12594 add config context to object count / list widget
2023-05-16 10:52:23 -04:00
5036020dc0
12433 update object list widget to correctly parameterize urls ( #12434 )
...
* 12433 update object list widget to correctly parameterize urls
* Update netbox/extras/dashboard/widgets.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* 12433 fix indent
* Correct per_page query parameter
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-05-03 09:20:53 -04:00
9319cffb1c
Fixes #12384 : Add a three-second timeout for RSS reader widget
2023-05-01 16:19:39 -04:00
aabaeec1d7
Add ObjectChange as a valid option for ObjectListWidget and ObjectCountsWidget
2023-04-28 12:17:39 +02:00
2fe5592c3c
Fixes #12299 : Fix object list widget support for filtering by multiple values
2023-04-21 11:54:28 -04:00
53abcc0f5c
Closes #12136 : Extend object count & list widgets to support filters
2023-04-03 15:02:11 -04:00
0676ed45c7
Closes #12107 : Document support for plugin-provided dashboard widgets
2023-04-03 14:15:18 -04:00
8d6c591535
Fixes #12103 : Limit the types of objects available for object count & list widgets
2023-03-31 15:30:40 -04:00
eb77c0e920
Fixes #12106 : Fix exception when saving dashboard widget with minimum width/height
2023-03-31 09:34:50 -04:00
6e6e8fa2d9
Set user agent for RSS feed requests
2023-03-30 12:44:36 -04:00
424b336536
Fixes #12061 : Improve handling of insufficient permissions for widget content
2023-03-30 10:03:41 -04:00
669cfe8952
Closes #12062 : Avoid caching invalid RSS feed content
2023-03-27 09:29:51 -04:00
e176c7d906
#9416 : cleanup & widget improvements
2023-03-22 15:44:01 -04:00
8bd0a2ef9d
Closes #11826 : RSS feed widget ( #11976 )
...
* Add feedparser as a dependency
* Introduce RSSFeedWidget
* Clean up widget templates
2023-03-14 11:59:27 -04:00
af63ac693e
Closes #11893 : Convert ChangeLogWidget for use with all models
2023-03-14 08:39:18 -04:00
084a2cc52c
Closes #9416 : Dashboard widgets ( #11823 )
...
* Replace masonry with gridstack
* Initial work on dashboard widgets
* Implement function to save dashboard layout
* Define a default dashboard
* Clean up widgets
* Implement widget configuration views & forms
* Permit merging dict value with existing dict in user config
* Add widget deletion view
* Enable HTMX for widget configuration
* Implement view to add dashboard widgets
* ObjectCountsWidget: Identify models by app_label & name
* Add color customization to dashboard widgets
* Introduce Dashboard model to store user dashboard layout & config
* Clean up utility functions
* Remove hard-coded API URL
* Use fixed grid cell height
* Add modal close button
* Clean up dashboard views
* Rebuild JS
2023-02-24 16:04:00 -05:00