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

Merge tags fields with primary object fields in form display

This commit is contained in:
Jeremy Stretch
2021-02-25 14:03:14 -05:00
parent 42e82f0ead
commit cef8204f40
14 changed files with 28 additions and 71 deletions

View File

@ -105,7 +105,7 @@ class ClusterForm(BootstrapMixin, TenancyForm, CustomFieldModelForm):
'name', 'type', 'group', 'tenant', 'region', 'site', 'comments', 'tags',
)
fieldsets = (
('Cluster', ('name', 'type', 'group', 'region', 'site')),
('Cluster', ('name', 'type', 'group', 'region', 'site', 'tags')),
('Tenancy', ('tenant_group', 'tenant')),
)
@ -326,7 +326,7 @@ class VirtualMachineForm(BootstrapMixin, TenancyForm, CustomFieldModelForm):
'primary_ip6', 'vcpus', 'memory', 'disk', 'comments', 'tags', 'local_context_data',
]
fieldsets = (
('Virtual Machine', ('name', 'role', 'status')),
('Virtual Machine', ('name', 'role', 'status', 'tags')),
('Cluster', ('cluster_group', 'cluster')),
('Management', ('platform', 'primary_ip4', 'primary_ip6')),
('Resources', ('vcpus', 'memory', 'disk')),