Commit Graph

5205 Commits

Author SHA1 Message Date
Jeremy Stretch
3ae32221b4 Merge pull request #4385 from netbox-community/3351-plugins
Implements 3351 plugins
2020-03-27 14:19:11 -04:00
Jeremy Stretch
875fee166c Misc cleanup of PluginConfig processing logic 2020-03-27 13:57:11 -04:00
Jeremy Stretch
d1ece9f6fa Convert installed_plugins_admin_view to a class-based view 2020-03-27 13:35:25 -04:00
Jeremy Stretch
21341b576a Clean up plugin URL registration 2020-03-27 13:26:53 -04:00
Jeremy Stretch
a6b0249393 Expose regsitry in templates using existing context processor for settings 2020-03-27 13:18:51 -04:00
Jeremy Stretch
e861cd87bf Improved menu item/button validation 2020-03-27 13:12:58 -04:00
Jeremy Stretch
41fe395b2d Merge branch 'develop-2.8' into 3351-plugins 2020-03-27 13:05:34 -04:00
Jeremy Stretch
e836fe3378 Merge branch 'develop' into develop-2.8 2020-03-27 12:53:55 -04:00
Jeremy Stretch
565a4d9db1 Post-release version bump 2020-03-27 12:49:48 -04:00
Jeremy Stretch
ac28f44dda Release v2.7.11 2020-03-27 12:40:21 -04:00
Jeremy Stretch
ee0210c5d6 Closes #4404: Add cable trace button for circuit terminations 2020-03-27 12:35:36 -04:00
Daniel Sheppard
94bda93faa Fixes: #4415 - Add site on validate_unique() for device model 2020-03-27 08:37:48 -05:00
Jeremy Stretch
b27b3d5175 Rename obj to object; clean up docstrings 2020-03-26 21:46:56 -04:00
Jeremy Stretch
8aa97854c7 Avoid instantiating PluginTemplateExtension subclasses when the specified method has not been defined 2020-03-26 21:25:10 -04:00
Jeremy Stretch
56fde3f5b2 Restrict context data available to PluginTemplateExtensions 2020-03-26 16:50:55 -04:00
Jeremy Stretch
a9421e453b Extend menu items and buttons to accept a list of required permissions 2020-03-26 16:04:12 -04:00
Jeremy Stretch
90b7e0c003 Tweak variable naming 2020-03-26 13:37:52 -04:00
Jeremy Stretch
849598cb8e Remove unused PluginSignal class 2020-03-26 12:26:58 -04:00
Jeremy Stretch
82d98073ae Standardize naming of menu items 2020-03-26 12:25:36 -04:00
Jeremy Stretch
d315eda4fa Rename PluginTemplateContent to PluginTemplateExtension 2020-03-26 12:18:58 -04:00
Jeremy Stretch
ce5a0414a0 Convert PluginConfig attrs list to a table 2020-03-26 12:03:10 -04:00
Jeremy Stretch
4a6f82a2fd Fix up styling of tables in documentation 2020-03-26 11:54:58 -04:00
Jeremy Stretch
4f93c524e0 Rename PluginNavMenuButton to PluginMenuButton 2020-03-26 11:30:42 -04:00
Jeremy Stretch
5952f5f25d Rename PluginNavMenuLink to PluginMenuItem 2020-03-26 11:29:05 -04:00
Jeremy Stretch
77b1d11d27 Add a default button color 2020-03-26 11:26:11 -04:00
Jeremy Stretch
19bc8e70fa Revised plugins documentation 2020-03-26 11:09:20 -04:00
Jeremy Stretch
af7c6a51b3 Merge pull request #4407 from netbox-community/4402-plugins-template-content
Closes #4402: Rework template content registration for plugins
2020-03-26 09:05:07 -04:00
Jeremy Stretch
8c6380dfa7 Add documentation for PluginTemplateContent 2020-03-25 16:32:16 -04:00
Jeremy Stretch
f2bf5b5d07 Rework template content registration to work like menu items 2020-03-25 16:06:00 -04:00
Jeremy Stretch
e9528070a1 Merge pull request #4403 from netbox-community/4401-plugins-navlinks
Closes #4401: Simplify registration process for pluin menu items
2020-03-25 14:55:21 -04:00
Jeremy Stretch
c401c25a91 Update documentation for #4401 2020-03-25 14:33:32 -04:00
Jeremy Stretch
5210d17856 Replace get_menu_items() with static attribute 2020-03-25 13:51:37 -04:00
Jeremy Stretch
884b3fd046 Simplify the mechanism for plugins to register navigation menu items 2020-03-25 11:32:50 -04:00
Jeremy Stretch
7c81d67b0d Rename url_slug to base_url 2020-03-24 16:20:47 -04:00
Jeremy Stretch
a12420666a Merge pull request #4397 from netbox-community/plugins-docs
Add documentation for the plugins framework
2020-03-24 15:55:14 -04:00
Jeremy Stretch
2ef8e3d501 Get menu header via apps.get_config 2020-03-24 15:24:14 -04:00
Jeremy Stretch
56d55d481b Extend plugins docs to include nav menu links 2020-03-24 15:22:57 -04:00
Jeremy Stretch
8e289ab265 Tweak plugin template docs 2020-03-24 14:21:08 -04:00
Jeremy Stretch
cd540c43fe Incorporate John's feedback 2020-03-24 09:42:24 -04:00
Jeremy Stretch
418c971662 Add disclaimer/warning to PLUGINS_ENABLED 2020-03-24 09:41:46 -04:00
Jeremy Stretch
edf32590c5 Merge branch '3351-plugins' into plugins-docs 2020-03-23 14:03:35 -04:00
Jeremy Stretch
20e95f2059 Derive API URLs app_name for plugins from url_slug 2020-03-23 14:03:04 -04:00
Jeremy Stretch
7ceb20ab2b Add docs for plugin API endpoints 2020-03-23 13:58:45 -04:00
Jeremy Stretch
efb92b21d9 Add docs for plugin models, views 2020-03-23 13:28:56 -04:00
Jeremy Stretch
049a4638ce Merge branch '3351-plugins' into plugins-docs 2020-03-23 12:02:18 -04:00
Jeremy Stretch
5222458d86 Specify path to PluginConfig in INSTALLED_APPS 2020-03-23 12:01:24 -04:00
Jeremy Stretch
22a7d03986 More work on plugins development docs 2020-03-23 12:00:10 -04:00
Jeremy Stretch
a2119b1975 Merge branch '3351-plugins' into plugins-docs 2020-03-23 10:20:53 -04:00
John Anderson
9a06211883 remove duplicate import 2020-03-20 22:21:00 -04:00
John Anderson
b616758a34 added admin and api views for listing all plugins, and refactored urls import 2020-03-20 20:10:02 -04:00