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

update templates & rendering for bootstrap 5

This commit is contained in:
checktheroads
2021-03-13 02:27:32 -07:00
parent ec38ec8004
commit 94c25b0ff4
5 changed files with 20 additions and 33 deletions

View File

@ -214,7 +214,7 @@ class CommentField(forms.CharField):
widget = forms.Textarea
default_label = ''
# TODO: Port Markdown cheat sheet to internal documentation
default_helptext = '<i class="mdi mdi-information-outline"></i> '\
default_helptext = '<i class="bi bi-info-circle"></i> '\
'<a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet" target="_blank">'\
'Markdown</a> syntax is supported'
@ -390,7 +390,8 @@ class JSONField(_JSONField):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if not self.help_text:
self.help_text = 'Enter context data in <a href="https://json.org/">JSON</a> format.'
self.help_text = 'Enter context data in <a target="_blank" href="https://json.org/">JSON</a> format.'
self.widget.attrs['placeholder'] = ''
def prepare_value(self, value):