mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* 4751 add plugin buttons to list templates * 4751 add plugin buttons to list templates * 4751 add documentation * 4751 fix object reference * 4751 update docs
24 lines
515 B
Python
24 lines
515 B
Python
from extras.plugins import PluginTemplateExtension
|
|
|
|
|
|
class SiteContent(PluginTemplateExtension):
|
|
model = 'dcim.site'
|
|
|
|
def left_page(self):
|
|
return "SITE CONTENT - LEFT PAGE"
|
|
|
|
def right_page(self):
|
|
return "SITE CONTENT - RIGHT PAGE"
|
|
|
|
def full_width_page(self):
|
|
return "SITE CONTENT - FULL WIDTH PAGE"
|
|
|
|
def buttons(self):
|
|
return "SITE CONTENT - BUTTONS"
|
|
|
|
def list_buttons(self):
|
|
return "SITE CONTENT - LIST BUTTONS"
|
|
|
|
|
|
template_extensions = [SiteContent]
|