mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
This commit is contained in:
@ -105,6 +105,7 @@ Custom field UI visibility has no impact on API operation.
|
|||||||
* [#9765](https://github.com/netbox-community/netbox/issues/9765) - Report correct segment count under cable trace UI view
|
* [#9765](https://github.com/netbox-community/netbox/issues/9765) - Report correct segment count under cable trace UI view
|
||||||
* [#9794](https://github.com/netbox-community/netbox/issues/9794) - Fix link to connect a rear port to a circuit termination
|
* [#9794](https://github.com/netbox-community/netbox/issues/9794) - Fix link to connect a rear port to a circuit termination
|
||||||
* [#9818](https://github.com/netbox-community/netbox/issues/9818) - Fix circuit side selection when connecting a cable to a circuit termination
|
* [#9818](https://github.com/netbox-community/netbox/issues/9818) - Fix circuit side selection when connecting a cable to a circuit termination
|
||||||
|
* [#9843](https://github.com/netbox-community/netbox/issues/9843) - Fix rendering of custom field values (regression from #9647)
|
||||||
* [#9844](https://github.com/netbox-community/netbox/issues/9844) - Fix interface api request when creating/editing L2VPN termination
|
* [#9844](https://github.com/netbox-community/netbox/issues/9844) - Fix interface api request when creating/editing L2VPN termination
|
||||||
|
|
||||||
### Plugins API
|
### Plugins API
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
{% if field.type == 'integer' and value is not None %}
|
{% if customfield.type == 'integer' and value is not None %}
|
||||||
{{ value }}
|
{{ value }}
|
||||||
{% elif field.type == 'longtext' and value %}
|
{% elif customfield.type == 'longtext' and value %}
|
||||||
{{ value|markdown }}
|
{{ value|markdown }}
|
||||||
{% elif field.type == 'boolean' and value == True %}
|
{% elif customfield.type == 'boolean' and value == True %}
|
||||||
{% checkmark value true="True" %}
|
{% checkmark value true="True" %}
|
||||||
{% elif field.type == 'boolean' and value == False %}
|
{% elif customfield.type == 'boolean' and value == False %}
|
||||||
{% checkmark value false="False" %}
|
{% checkmark value false="False" %}
|
||||||
{% elif field.type == 'url' and value %}
|
{% elif customfield.type == 'url' and value %}
|
||||||
<a href="{{ value }}">{{ value|truncatechars:70 }}</a>
|
<a href="{{ value }}">{{ value|truncatechars:70 }}</a>
|
||||||
{% elif field.type == 'json' and value %}
|
{% elif customfield.type == 'json' and value %}
|
||||||
<pre>{{ value|json }}</pre>
|
<pre>{{ value|json }}</pre>
|
||||||
{% elif field.type == 'multiselect' and value %}
|
{% elif customfield.type == 'multiselect' and value %}
|
||||||
{{ value|join:", " }}
|
{{ value|join:", " }}
|
||||||
{% elif field.type == 'object' and value %}
|
{% elif customfield.type == 'object' and value %}
|
||||||
{{ value|linkify }}
|
{{ value|linkify }}
|
||||||
{% elif field.type == 'multiobject' and value %}
|
{% elif customfield.type == 'multiobject' and value %}
|
||||||
{% for object in value %}
|
{% for object in value %}
|
||||||
{{ object|linkify }}{% if not forloop.last %}<br />{% endif %}
|
{{ object|linkify }}{% if not forloop.last %}<br />{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% elif value %}
|
{% elif value %}
|
||||||
{{ value }}
|
{{ value }}
|
||||||
{% elif field.required %}
|
{% elif customfield.required %}
|
||||||
<span class="text-warning"><i class="mdi mdi-alert"></i> Not defined</span>
|
<span class="text-warning"><i class="mdi mdi-alert"></i> Not defined</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ ''|placeholder }}
|
{{ ''|placeholder }}
|
||||||
|
Reference in New Issue
Block a user