mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Add help text for custom links
This commit is contained in:
parent
74e0d0396a
commit
b3909e62f0
@ -117,6 +117,11 @@ class CustomLinkForm(BootstrapMixin, forms.ModelForm):
|
|||||||
('Custom Link', ('name', 'content_type', 'weight', 'group_name', 'button_class', 'new_window')),
|
('Custom Link', ('name', 'content_type', 'weight', 'group_name', 'button_class', 'new_window')),
|
||||||
('Templates', ('link_text', 'link_url')),
|
('Templates', ('link_text', 'link_url')),
|
||||||
)
|
)
|
||||||
|
help_texts = {
|
||||||
|
'link_text': 'Jinja2 template code for the link text. Reference the object as <code>{{ obj }}</code>. '
|
||||||
|
'Links which render as empty text will not be displayed.',
|
||||||
|
'link_url': 'Jinja2 template code for the link URL. Reference the object as <code>{{ obj }}</code>.',
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class CustomLinkCSVForm(CSVModelForm):
|
class CustomLinkCSVForm(CSVModelForm):
|
||||||
|
Loading…
Reference in New Issue
Block a user