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

Fixes: #3464 - Change color picker to dynamic coloring from static CSS

This commit is contained in:
Daniel Sheppard
2019-09-24 09:39:06 -05:00
parent 6fdd35785e
commit 17ec9aa170
3 changed files with 4 additions and 116 deletions

View File

@@ -1 +1,2 @@
<option value="{{ widget.value }}"{% include "django/forms/widgets/attrs.html" %} class="color-selection-{{ widget.value }}">{{ widget.label }}</option>
{% load helpers %}
<option value="{{ widget.value }}"{% include "django/forms/widgets/attrs.html" %} {% if widget.value %}style="color: {{ widget.value|fgcolor }}; background-color: #{{ widget.value }}"{% endif %}>{{ widget.label }}</option>