Parcourir la source

#1033: Tweak SelectWithDisabled option template

Jeremy Stretch il y a 8 ans
Parent
commit
ae5bf747c9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      netbox/utilities/templates/selectwithdisabled_option.html

+ 1 - 1
netbox/utilities/templates/selectwithdisabled_option.html

@@ -1 +1 @@
-<option value="{{ widget.value }}"{% include "django/forms/widgets/attrs.html" %}{% if widget.label.disabled %} disabled="disabled"{% endif %}>{{ widget.label.label }}</option>
+<option value="{{ widget.value }}"{% include "django/forms/widgets/attrs.html" %}{% if widget.label.disabled %} disabled="disabled"{% endif %}>{{ widget.label.label|default:widget.label }}</option>