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')],
|
'args': [Accessor('device_id')],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
maximum_draw = columns.TemplateColumn(
|
maximum_draw = tables.Column(
|
||||||
template_code='''{% if record.maximum_draw %}{{ value }} W{% endif %}''',
|
verbose_name=_('Maximum draw (watts)')
|
||||||
verbose_name=_('Maximum draw')
|
|
||||||
)
|
)
|
||||||
allocated_draw = columns.TemplateColumn(
|
allocated_draw = tables.Column(
|
||||||
template_code='''{% if record.allocated_draw %}{{ value }} W{% endif %}''',
|
verbose_name=_('Allocated draw (watts)')
|
||||||
verbose_name=_('Allocated draw')
|
|
||||||
)
|
)
|
||||||
tags = columns.TagColumn(
|
tags = columns.TagColumn(
|
||||||
url_name='dcim:powerport_list'
|
url_name='dcim:powerport_list'
|
||||||
|
Loading…
Reference in New Issue
Block a user