mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-23 12:08:43 -06:00
Add rack role & type layouts
This commit is contained in:
1
netbox/templates/ui/attrs/boolean.html
Normal file
1
netbox/templates/ui/attrs/boolean.html
Normal file
@@ -0,0 +1 @@
|
||||
{% checkmark object.desc_units %}
|
||||
1
netbox/templates/ui/attrs/color.html
Normal file
1
netbox/templates/ui/attrs/color.html
Normal file
@@ -0,0 +1 @@
|
||||
<span class="badge color-label" style="background-color: #{{ color }}"> </span>
|
||||
12
netbox/templates/ui/attrs/numeric.html
Normal file
12
netbox/templates/ui/attrs/numeric.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% load i18n %}
|
||||
<span{% if style %} class="{{ style }}"{% endif %}>
|
||||
<span{% if name %} id="attr_{{ name }}"{% endif %}>{{ value }}</span>
|
||||
{% if unit %}
|
||||
{{ unit|lower }}
|
||||
{% endif %}
|
||||
</span>
|
||||
{% if copy_button %}
|
||||
<a class="btn btn-sm btn-primary copy-content" data-clipboard-target="#attr_{{ name }}" title="{% trans "Copy to clipboard" %}">
|
||||
<i class="mdi mdi-content-copy"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user