mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
18417 review changes
This commit is contained in:
parent
be9b35c3a4
commit
3967efb5f1
@ -62,15 +62,15 @@ class RackTypeTable(NetBoxTable):
|
|||||||
template_code="{{ value }}U",
|
template_code="{{ value }}U",
|
||||||
verbose_name=_('Height')
|
verbose_name=_('Height')
|
||||||
)
|
)
|
||||||
outer_width = tables.TemplateColumn(
|
outer_width = columns.TemplateColumn(
|
||||||
template_code=OUTER_UNIT,
|
template_code=OUTER_UNIT,
|
||||||
verbose_name=_('Outer Width')
|
verbose_name=_('Outer Width')
|
||||||
)
|
)
|
||||||
outer_height = tables.TemplateColumn(
|
outer_height = columns.TemplateColumn(
|
||||||
template_code=OUTER_UNIT,
|
template_code=OUTER_UNIT,
|
||||||
verbose_name=_('Outer Height')
|
verbose_name=_('Outer Height')
|
||||||
)
|
)
|
||||||
outer_depth = tables.TemplateColumn(
|
outer_depth = columns.TemplateColumn(
|
||||||
template_code=OUTER_UNIT,
|
template_code=OUTER_UNIT,
|
||||||
verbose_name=_('Outer Depth')
|
verbose_name=_('Outer Depth')
|
||||||
)
|
)
|
||||||
@ -163,15 +163,15 @@ class RackTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable):
|
|||||||
tags = columns.TagColumn(
|
tags = columns.TagColumn(
|
||||||
url_name='dcim:rack_list'
|
url_name='dcim:rack_list'
|
||||||
)
|
)
|
||||||
outer_width = tables.TemplateColumn(
|
outer_width = columns.TemplateColumn(
|
||||||
template_code=OUTER_UNIT,
|
template_code=OUTER_UNIT,
|
||||||
verbose_name=_('Outer Width')
|
verbose_name=_('Outer Width')
|
||||||
)
|
)
|
||||||
outer_height = tables.TemplateColumn(
|
outer_height = columns.TemplateColumn(
|
||||||
template_code=OUTER_UNIT,
|
template_code=OUTER_UNIT,
|
||||||
verbose_name=_('Outer Height')
|
verbose_name=_('Outer Height')
|
||||||
)
|
)
|
||||||
outer_depth = tables.TemplateColumn(
|
outer_depth = columns.TemplateColumn(
|
||||||
template_code=OUTER_UNIT,
|
template_code=OUTER_UNIT,
|
||||||
verbose_name=_('Outer Depth')
|
verbose_name=_('Outer Depth')
|
||||||
)
|
)
|
||||||
|
@ -111,7 +111,7 @@ LOCATION_BUTTONS = """
|
|||||||
|
|
||||||
OUTER_UNIT = """
|
OUTER_UNIT = """
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% if value %}{{ value }} {{ record.outer_unit }}{% else %}{{ ''|placeholder }}{% endif %}
|
{% if value %}{{ value }} {{ record.outer_unit }}{% endif %}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user