1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #3580: Render text and URL fields as textareas in the custom link form

This commit is contained in:
Jeremy Stretch
2019-10-09 09:40:24 -04:00
parent 4c677e7fe6
commit 6068b1a275
2 changed files with 5 additions and 0 deletions

View File

@ -86,6 +86,10 @@ class CustomLinkForm(forms.ModelForm):
class Meta:
model = CustomLink
exclude = []
widgets = {
'text': forms.Textarea,
'url': forms.Textarea,
}
help_texts = {
'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.',