mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 07:56:44 -06:00
moved units to header #13587
This commit is contained in:
parent
92cdf420bb
commit
da7ef1fbd3
@ -466,13 +466,11 @@ class PowerPortTable(ModularDeviceComponentTable, PathEndpointTable):
|
||||
'args': [Accessor('device_id')],
|
||||
}
|
||||
)
|
||||
maximum_draw = columns.TemplateColumn(
|
||||
template_code='''{% if record.maximum_draw %}{{ value }} W{% endif %}''',
|
||||
verbose_name=_('Maximum draw')
|
||||
maximum_draw = tables.Column(
|
||||
verbose_name=_('Maximum draw (watts)')
|
||||
)
|
||||
allocated_draw = columns.TemplateColumn(
|
||||
template_code='''{% if record.allocated_draw %}{{ value }} W{% endif %}''',
|
||||
verbose_name=_('Allocated draw')
|
||||
allocated_draw = tables.Column(
|
||||
verbose_name=_('Allocated draw (watts)')
|
||||
)
|
||||
tags = columns.TagColumn(
|
||||
url_name='dcim:powerport_list'
|
||||
|
Loading…
Reference in New Issue
Block a user