From b3909e62f07221234a91dd2462bc967b0f7cbd55 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Tue, 20 Jul 2021 16:31:32 -0400 Subject: [PATCH] Add help text for custom links --- netbox/extras/forms.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netbox/extras/forms.py b/netbox/extras/forms.py index b5ec1f4a5..3f3dead0e 100644 --- a/netbox/extras/forms.py +++ b/netbox/extras/forms.py @@ -117,6 +117,11 @@ class CustomLinkForm(BootstrapMixin, forms.ModelForm): ('Custom Link', ('name', 'content_type', 'weight', 'group_name', 'button_class', 'new_window')), ('Templates', ('link_text', 'link_url')), ) + help_texts = { + 'link_text': 'Jinja2 template code for the link text. Reference the object as {{ obj }}. ' + 'Links which render as empty text will not be displayed.', + 'link_url': 'Jinja2 template code for the link URL. Reference the object as {{ obj }}.', + } class CustomLinkCSVForm(CSVModelForm):