Coverage for tenancy/ui/panels.py: 100%
14 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
1from django.utils.translation import gettext_lazy as _
3from netbox.ui import attrs, panels
6class TenantPanel(panels.ObjectAttributesPanel):
7 group = attrs.NestedObjectAttr('group', linkify=True)
8 description = attrs.TextAttr('description')
11class ContactPanel(panels.ObjectAttributesPanel):
12 groups = attrs.RelatedObjectListAttr('groups', linkify=True, label=_('Groups'))
13 name = attrs.TextAttr('name')
14 title = attrs.TextAttr('title')
15 phone = attrs.TemplatedAttr('phone', label=_('Phone'), template_name='tenancy/attrs/phone.html')
16 email = attrs.TemplatedAttr('email', label=_('Email'), template_name='tenancy/attrs/email.html')
17 address = attrs.AddressAttr('address', map_url=False)
18 link = attrs.TemplatedAttr('link', label=_('Link'), template_name='tenancy/attrs/link.html')
19 description = attrs.TextAttr('description')