mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Clean up spacing for nav pills Markdown fields should default to using monospace font Wrap action buttons in object page header Fix page link style for non-HTMX paginators Clean up styling of Markdown preview widget Fix spacing around placeholder text for empty panel tables Remove obsolete templates Tweak checkbox input spacing Fix toggling of clear button for quick search Fix positioning of quick search filter dropdown Fix positioning of 'highlight device' button Fix styling for custom field group names Widen buttons on nav menu items Restyle the login page Fix active nav-pill background color in dark mode Fix spacing around 'map' button for sites
37 lines
1.2 KiB
HTML
37 lines
1.2 KiB
HTML
{% load helpers %}
|
|
{% load i18n %}
|
|
|
|
{% with custom_fields=object.get_custom_fields_by_group %}
|
|
{% if custom_fields %}
|
|
<div class="card">
|
|
<h5 class="card-header">{% trans "Custom Fields" %}</h5>
|
|
<table class="table table-hover attr-table">
|
|
{% for group_name, fields in custom_fields.items %}
|
|
{% if group_name %}
|
|
<tr>
|
|
<th scope="row" colspan="2" class="fw-bold">{{ group_name }}</th>
|
|
</tr>
|
|
{% endif %}
|
|
{% for field, value in fields.items %}
|
|
<tr>
|
|
<th scope="row"{% if group_name %} class="ps-3"{% endif %}>{{ field }}
|
|
{% if field.description %}
|
|
<i
|
|
class="mdi mdi-information text-primary"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="right"
|
|
title="{{ field.description|escape }}"
|
|
></i>
|
|
{% endif %}
|
|
</th>
|
|
<td>
|
|
{% customfield_value field value %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|