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

Standardize on get_FOO_color() method for returning ChoiceField colors

This commit is contained in:
jeremystretch
2022-02-11 14:25:13 -05:00
parent 9cf9f1bdba
commit 1319b62acb
31 changed files with 81 additions and 60 deletions

View File

@@ -40,15 +40,11 @@
</tr>
<tr>
<th scope="row">Type</th>
<td>
<span class="badge bg-{{ object.get_type_class }}">{{ object.get_type_display }}</span>
</td>
<td>{% badge object.get_type_display bg_color=object.get_type_color %}</td>
</tr>
<tr>
<th scope="row">Status</th>
<td>
<span class="badge bg-{{ object.get_status_class }}">{{ object.get_status_display }}</span>
</td>
<td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
</tr>
<tr>
<th scope="row">Connected Device</th>