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

Closes #7452: Add JSON custom field type

This commit is contained in:
jeremystretch
2021-10-28 10:29:14 -04:00
parent a173083e5b
commit 15e011ae52
8 changed files with 51 additions and 8 deletions

View File

@@ -20,6 +20,8 @@
<i class="mdi mdi-close-thick text-danger" title="False"></i>
{% elif field.type == 'url' and value %}
<a href="{{ value }}">{{ value|truncatechars:70 }}</a>
{% elif field.type == 'json' and value %}
<pre>{{ value|render_json }}</pre>
{% elif field.type == 'multiselect' and value %}
{{ value|join:", " }}
{% elif value is not None %}